propeller clock using pic16f84A

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

  1. chua

    chua Thread Starter New Member

    Joined:
    Mar 21, 2010
    Messages:
    3
  2. BMorse

    BMorse Senior Member

    Joined:
    Sep 26, 2009
    Messages:
    2,673
    Location:
    Vermontville, Michigan (GMT -5)
  3. longcrystal

    longcrystal New Member

    Joined:
    Mar 22, 2010
    Messages:
    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.
  4. Markd77

    Markd77 Senior Member

    Joined:
    Sep 7, 2009
    Messages:
    2,801
    Location:
    Birmingham
    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.
Similar Threads
Forum Title Date
Embedded Systems and Microcontrollers Propeller clock Mar 1, 2014
Embedded Systems and Microcontrollers Mobile app to talk to PIC 32 or Propeller Dec 6, 2013
Embedded Systems and Microcontrollers Arudino or Propeller? May 16, 2009
Embedded Systems and Microcontrollers arduino shield with magnetometer,clock,and OLED Nov 6, 2014
Embedded Systems and Microcontrollers STM32F407 Clock bus speeds Oct 6, 2014

Related Site Pages

Share This Page