Post Created date
floating point printf
Hi, printf, by default, does not send the string to serial port. Moreover there are two serial ports in Atmeag128 so to which serial port will the string be sent? In stead of...
Thursday, 20 May 2004 - 09:21
USART is not bouncing the right data back
Hello there, Here is the code I am using. The function sends characters in a NULL terminated string. // send a string to the serial port void USART0_Transmit (unsigned char...
Thursday, 20 May 2004 - 09:15
USART is not bouncing the right data back
Hi, In your code Quote: void Usart_Tx(char data) { while (!(UCSR0A & (1<<UDRE0))); UDR0 = data; } once set the flag is not being cleared before you send the next...
Wednesday, 19 May 2004 - 02:14
USART is not bouncing the right data back
Hello Jorg, Yes I do agree with you that there can actually be two characters (one in shift buffer and another in tx holding register) in pipe waiting to be shifted out. But I...
Tuesday, 18 May 2004 - 12:35
USART is not bouncing the right data back
Hello, I think this has more to do with timing. Once you write a character into UDR (transmit buffer) you must wait for the character to be completely shifted out before you write...
Tuesday, 18 May 2004 - 02:57
Software Question
Hello, a single quote means a single character. char ch; ch = 'A'; // where ch is assigned one character whereas when you use double quotes, specially in 'C', the...
Monday, 17 May 2004 - 02:22
sprintf() strings from flash?
Hello, The "value" I mentioned in my sample code is from RAM and not from FLASH. I have used similar function calls and found them to work properly. Thank you.
Wednesday, 12 May 2004 - 09:00
sprintf() strings from flash?
Hi, Yes you can put strings in FLASH. Your example not fully correct. Here is the code sprintf (buffer,PSRT("Hello world the value is %d\r\n"),value); The string will be...
Tuesday, 11 May 2004 - 17:04
GCC bug?
Hello, Did you try to simulate the code in Studio? I tried your code and in both cases Studio is showing junk! Normally arrays take an int as index and you have declared x as char...
Monday, 3 May 2004 - 02:58
Can´t Step into Interupt Routine from Timer0
Hi, The reason your programme is restarting every time the interrupt occurs is because vector table pointer is not initialised properly. Normally the compiler (GCC) sets all vetor...
Sunday, 2 May 2004 - 04:05
why the studio can't watch the structure variable?
Hello all, You can watch structures in studio, code compiled using GCC. All you need to do is create the extended coff file and load this in the studio!
Saturday, 1 May 2004 - 03:52
watching structs in AVRstudio 4.07
Hello every body, I checked the extcoff version and it works in Studio 4.08
Tuesday, 27 April 2004 - 14:45

Pages