--- In AVR-Chat@yahoogroups.com, James Wagner <wagnerj@...> wrote: > Check that you are loading the dual 8-bit registers in the correct > ORDER. There IS a required order so that an internal "temp" register > can load both registers in a single operation. Do a doc search for 16 > bit register or something like that. > > Jim > nope. wrote a little piece of code that loaded the OCR1A register, then set WGM11:0 and CS12:0 in TCCR1B, then dumped OCR1A out the USART and the high order byte was cleared. did it again except set WGM11:0 in TCCR1B, then loaded the OCR1A register, then set CS12:0 in TCCR1B, then dumped OCR1A out the USART and this time the high order byte was as i had set it. in both cases WGM13:0 was set to 15, CS12:0 to 5, and OCR1A to 8333 in an attempt to get TOV1 set at about 30Hz. register access was taken care of by gcc. i is well and truly perplexed.
Message
Re: timer 1 question
2008-03-02 by bobby cossum
Attachments
- No local attachments were found for this message.