The oClock Object takes a frequency of 283Hz and divides it by a value determined by subtracting the Rate property from 256. [Freq = 283 / (256-Rate)] It then updates the Result property with the resulting clock. The Output property can be used to copy the value of the Result property to an oLogic Object. The Rate property is a clock divider value that specifies the frequency. The Rate can be calculated for the desired frequency using the following formula: Rate = [256 - (283 / Frequency) The lowest frequency that can be generated is 1.1Hz [Freq = 283 / (256-0)] The highest frequency that can be generated is 283Hz [Freq = 283 / (256-255)] If the Shape property is set to 1, then the duration of the high-going portion of the clock cycle will only last for 1 Object List Loop. By setting the InvertOut property to 1, this can be switched so that the low-going portion of the clock cycle will only last for 1 Object List Loop. |