??? 05/20/10 10:38 Read: times |
#176064 - RE: "dosent work" Responding to: ???'s previous message |
Eatzik T said:
i have an 89S52, i need to read from the pc 2 bytes.
1 in ASCII and 1 of binary 8 bit. As far as the 8051 UART is concerned, they are all just 8-bit bytes. However, the PC's configuration may restrict sending non-printing ASCII codes - are you sure that the PC is correctly configured, and is correctly transmitting both bytes? my question is if i need any delay between the readings? What do you mean by "readings" here? - between the 2 bytes of each pair? - between pairs? - or what? right now it dosent work. That tells us almost nothing! You need to describe precisely how it "doesn't work" - what, exactly, happens? What testing & debugging have you done? What conclusions have you drawn? Debuging tips: http://www.8052.com/faqs/120313 |
Topic | Author | Date |
reading two times | 01/01/70 00:00 | |
RE: "dosent work" | 01/01/70 00:00 | |
RE: the code is something like this | 01/01/70 00:00 | |
Also... | 01/01/70 00:00 | |
RE: you don't say which compiler you are using | 01/01/70 00:00 | |
thank for the comments! | 01/01/70 00:00 | |
SBUF | 01/01/70 00:00 | |
the if(temp='0') lines do work | 01/01/70 00:00 | |
RE:if | 01/01/70 00:00 | |
If that's true, then your so-called "C compiler" is BROKEN! | 01/01/70 00:00 | |
comments | 01/01/70 00:00 | |
SES51 compiler | 01/01/70 00:00 | |
= != == in C | 01/01/70 00:00 | |
RE:again | 01/01/70 00:00 | |
do yourself a favor | 01/01/70 00:00 | |
not necessarily![]() | 01/01/70 00:00 |