Master Clock Rate

SpokePOV kit for bikes

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
wcravens
 
Posts: 10
Joined: Wed May 02, 2007 8:02 pm

Master Clock Rate

Post by wcravens »

Looking at the source code I see that F_CPU is 8MHz and other comments in the code seem to reflect a 8MHz master clock. However according to the datasheet the ATtiny2313 will actually run at a 8MHz Oscillater with a Div 8 master clock via the CKDIV8 fuse, leading to a 1MHz clock.

Since I see no CLK manipulation in the code I'm assuming that either the SpokePov is actually running at the 1MHz factory clock rate or you used the programmer to disable the CKDIV8 fuse as set from factory, which us users will have to reset after a chip erase. ???

Or I could be completely wrong... a testimony to random access to the datasheet. ;-)

adafruit
 
Posts: 12151
Joined: Thu Apr 06, 2006 4:21 pm

Post by adafruit »

yup the fuses are burned for 8mhz and some other stuff when you get the kit. check the makefile for the fuse setting!
chip erase should not affect fuses.

Locked
Please be positive and constructive with your questions and comments.

Return to “SpokePOV (discontinued)”