At 08:35 AM 22/11/2006, you wrote: > I'm writing an 0x80 to the register and the next >instruction is the CLKPR = 0x03 so it should be meeting the 4 cycle >restriction as stated in the manual. Not necessarily....if it is written in C....BOOM..take cover..:) Have you looked at what the compiler is actually doing? (list file) May want to write that bit in assembler. Also there was something on another thread about having to wait another 4 clock cycles (undocumented feature) before it all happens, may be 4 nops? I think it was posted on this forum, may have to do a search. Regards John Samperi ******************************************************** Ampertronics Pty. Ltd. 11 Brokenwood Place Baulkham Hills, NSW 2153 AUSTRALIA Tel. (02) 9674-6495 Fax (02) 9674-8745 Email: john@ampertronics.com.au Website http://www.ampertronics.com.au *Electronic Design * Custom Products * Contract Assembly ********************************************************
Message
Re: [AVR-Chat] Re: How do you change the clk speed?
2006-11-21 by John Samperi
Attachments
- No local attachments were found for this message.