# propeller clock using pic16f84A

Discussion in 'Embedded Systems and Microcontrollers' started by chua, Mar 21, 2010.

Mar 21, 2010
3
0

Sep 26, 2009
2,675
234
3. ### longcrystal New Member

Mar 22, 2010
20
0
i am chuackl friend i want post futhermore information for this topic

Propeller clock
source code this link: http://www.bobblick.com/techref/projects/propclock/mclock8.asm

schematic circuit diagram this link: http://www.bobblick.com/techref/projects/propclock/mclksch2.gif

http://www3.sympatico.ca/surfin.dude/creative/clocks/propclk/flowchrt.PDF

we couldn't understand the flowchart about second page
someone can try to analyze easy way to explanation for us??
actually we cannot understand the equation why must use this way to calculate it for this pattern: 0x000000 - 0x039387 = 0xFC6C79
why need to (0x00000-0x039387) .Why cannot 0x000001 - 0x039387
someone else can understand this equation can explain for us. we are feel grateful to each other.

4. ### Markd77 Senior Member

Sep 7, 2009
2,803
594
It's just using the way microcontrollers count:
if the count is 0xFFFFFF and you add 1 it becomes 0x000000
so it is just counting up until it overflows and becomes 0 again.
Really the calculation is 0x1000000 - 0x039387 but the leftmost digit is ignored.