[avr-gcc-list] Calibrate internal RC oscilator FAQ

2009-11-30 Thread max2009tiny
Hi all, i read info about internal RC, but dont good understand how it work. Here is 3 basic question: 1. when i program and select 4MHz internal RC osc. what OSCAL constatnt is loaded by reset if Atmel have more constants from factory? 2. where in code can change OSCAL and where not 3. exist

Re: [avr-gcc-list] Volatile bad compiled while

2009-11-27 Thread max2009tiny
previously controlled in lss as not used globaly changed to register r2-r11 and r18-r20 13 variables and code have now 2048 bytes. Code works perfectly only while i must rewrite to asm. David Brown-4 wrote: max2009tiny wrote: OK i can't drop register and i use on this code more register

[avr-gcc-list] Volatile bad compiled while

2009-11-25 Thread max2009tiny
Hi everybody. I make project on Tiny2313 and use volatile register unsigned char lastrec asm(r8) and lastrec is modified on rs232 rx isr. When compile little function __attribute__ ((noinline)) void waitACK(u08 cmack) { while(cmack!=lastrec) ; //wait for reply request } compiler make bad asm