propeller clock using pic16f84A

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

  1. chua

    Thread Starter New Member

    Mar 21, 2010
  2. BMorse

    AAC Fanatic!

    Sep 26, 2009
  3. longcrystal

    New Member

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

    Propeller clock
    source code this link:

    schematic circuit diagram this link:

    flowchart this link:

    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
    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.