propeller clock using pic16f84A

longcrystal

Joined Mar 22, 2010
20
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

flowchart this link:
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.
 

Markd77

Joined Sep 7, 2009
2,806
actually we cannot understand the equation why must use this way to calculate it for this pattern: 0x000000 - 0x039387 = 0xFC6C79
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.
 
Top