Post Created date
AVR math insructions behavin' badly
Koshchi, you were right about baud rate error ( I changed ubrrl to 12 for a BR = 4800 and it works like it should :lol:
Monday, 19 March 2007 - 08:42
delay function( Ttl. time wrong )
:D I'm using a tiny2313, and I also did a calculation today assuming 1 Mhz internal RC and value for 0x7a was close to actual value ( datasheet system clock section says defaults...
Tuesday, 26 September 2006 - 02:03
delay function
Here's the code just in case. #include #include void main ( void ) { unsigned char cmp = 0 ; unsigned int counter ; sbi( DDRD, 5 ) ; cbi( PORTD, 5 ); counter =...
Thursday, 21 September 2006 - 06:08
delay function
Well it WORKS, sort of. I did the code changes you gave and counter is char-casted. For the line while (cmp != 7A) : I tried smaller values and here's results ( ttl. delay b 4 PD5...
Thursday, 21 September 2006 - 05:38
delay function
The function is just a delay ( inner + outer ~= 4s ). Thank you for showing me outer loop must be while also and that tcnt0 must be cleared( i cleared tcnt0 when i wrote this in...
Thursday, 21 September 2006 - 00:37
General Winavr questions
Lastly, what about: jerk = ((unsigned long )256*5000 ) >>8 ; ?
Monday, 18 September 2006 - 01:36
General Winavr questions
Thank you both , U R right. Would I get speed or code size advantages if I used : jerk = ( unsigned long )256*5000 ; jerk >>= 8; ?
Monday, 18 September 2006 - 01:23
General Winavr questions
I tried your idea, Dean but it didn't work jerk = ( (unsigned long )256*5000 ) / 256 ; This gives jerk = 0x1388. But it did get rid of the overflow warning ( if I casted the den...
Monday, 18 September 2006 - 00:28
simple code cannot be compiled
No, I haven't analyzed the compiled code, but it will be the option when I do speed critical code. Thanks for the advice about checking the makefile.
Thursday, 8 December 2005 - 01:57
simple code cannot be compiled
I don't understand what you mean about an upgrade ( I have the ( most ? ) current version of WINAVR and Atmel's studio 3.56 ). Also is there a good book on using WINAVR and also...
Tuesday, 6 December 2005 - 02:15
simple code cannot be compiled
I have studio 3.56 and the 2005 version of winavr. I have a code folder on c:\code, but I can't get my code to compile. The error msg says something about error during link. I...
Thursday, 1 December 2005 - 02:52

Pages