Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Richard Erlacher
02/18/08 13:03
  02/18/08 13:12

Read: 773 times
Denver, Co

#151044 - Couldn\'t use of a different crystal solve this?
Responding to: Erik Malund's previous message
If there's a timer or two available for an ISR, couldn't that also serve to create the required baud rates (the O/P hasn't said whether that's even called-for) and then allow the core to be clocked at some rate that's a harmonic of the desired counter frequencies? If one 16-bit counter can create the interrupt that software counts, having it at an integral multiple of the desired interval would be useful, wouldn't it?

Locking one's timing to a specific baud-rate generator crystal can prove a serious disadvantage under some circumstances, e.g. this case. It is not unsolvable with the "old, tried-and-true" crystal but if it's convenient, why not try, say, 24 MHz? You can get "close enough" to standard baud rates with that. Aside from that, dividing 11059200 by 49152 in a 16-bit counter leaves a divide-by-225 to generate 1 second.


List of 10 messages in thread
11.059Mhz clock to create 1-30 second delay in C?      Chris Bertrand      02/17/08 18:20      
   as far as I remember...      Jose Orlando T. Ribeiro      02/17/08 18:34      
      It's worse than that, Jim      Andy Neil      02/18/08 00:21      
   solution?      Russell Bull      02/17/08 23:13      
   Not nested loops!      Andy Neil      02/18/08 00:03      
      I'll check those out tonight after work      Chris Bertrand      02/18/08 05:12      
         delay needs to be centered around 5 seconds or so      Andy Neil      02/18/08 05:38      
            Samuel Clemens said      Erik Malund      02/18/08 09:47      
               Couldn\'t use of a different crystal solve this?      Richard Erlacher      02/18/08 13:03      
                  I wonder      Erik Malund      02/18/08 14:05      

Back to Subject List