Shop OBEX P1 Docs P2 Docs Learn Events
Application Note AN008 — Parallax Forums

Application Note AN008

jdoleckijdolecki Posts: 726
edited 2012-05-14 11:48 in Propeller 1
Did I read this Correctly


Counter Registers
The Propeller provides the necessary hardware to perform sigma-delta analog-to-digital conversions quite easily. To do so requires using the global count register, CNT, along with one of the cog’s configurable counters. The global count register increments by one with each “tick” of the internal clock, rolling over to zero after reaching a count of $FFFF_FFFF (232 – 1). With an 80 MHz internal clock, one complete cycle of CNT takes about 53 seconds.


The last 3 words " About 53 seconds"

http://www.parallaxsemiconductor.com/sites/default/files/appnotes/AN008-SigmaDeltaADC-v1.0_0.pdf

Comments

  • g3cwig3cwi Posts: 262
    edited 2012-05-14 11:28
    Yes - the counter goes back to zero roughly every 53 Secs with 80MHz clocking.

    Cheers

    Richard
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-05-14 11:48
    A common error in Propeller programs (at least mine) is to use some variable as part of the waitcnt parameter without making sure it's larger than 381 (the minimum value to use with "waitcnt(value + cnt)" ).

    You know you've made this mistake when your program suddenly comes to life after it had been idle 53.69 seconds.
Sign In or Register to comment.