Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: Problem in receive a serial data and show it

2009-07-25 by aligole_2005

Dear Catalin
I don't think so, because if you mean these : 
char status,data;
they are some codes that the code vision make them itself, when we active the usart.




--- In AVR-Chat@yahoogroups.com, Cat C <catalin_cluj@...> wrote:
>
> 
> Could it be that you update some variable in an ISR routine and it's not declared as "volatile" ?
> 
> Good luck,
> 
> Cat
> 
> > To: AVR-Chat@yahoogroups.com
> > From: aligole_2005@...
> > Date: Fri, 24 Jul 2009 21:20:07 +0000
> > Subject: [AVR-Chat] Problem in receive a serial data and show it
> > 
> > Hello
> > I'm doing my final project of university. In a part of this I need to receive a serial data with special structure that I shared it here :
> > 
> > http://www.4shared.com/file/120420235/3829d17a/Usart.html
> > 
> > It's briefly a 5 byte formatted data, that every single byte has a meaning for example some of them are numbers, that I wanna show them in a graphic LCD.
> > 
> > I've written a program in Code vision and I share it here because I think it would be good for you, my friends.
> > 
> > http://www.4shared.com/file/119286132/69e1cd0/testc.html
> > 
> > This program consists of two different part, the first is about GLCD functions that I properly can show everything on it, from pictures (bitmaps) to numbers and strings with different functions.
> > The second part is about the serial data getting and processing. My question is about the final part, when I want to show the received and registered serial data on GLCD, I can't do this properly, actually my numbers are not true!!!
> > 
> > the registered data is in the shape of a string with the length of 5, that I defined some macros for them. My GLCD function "lcd_put_strs(x,y, *str)" can show a string in SRAM in GLCD. but when I use it, the answer is not true!!! I tried "%u" or "%X" or "%S", but unfortunately the result was wrong.
> > can anybody help me plzzzzzzzzz? 
> > 
> > 
> > 
> > 
> > ------------------------------------
> > 
> > Yahoo! Groups Links
> > 
> > 
> > 
> 
> 
> [Non-text portions of this message have been removed]
>

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.