??? 08/23/05 14:52 Read: times |
#99909 - Re: SW UART Responding to: ???'s previous message |
Hi Jan,
Ok, lemme try to clarify my project a bit more. For the SW UART, the baud rate doesn't have to be anything specific, so I'd think 9600 would probably be best as thats what the HW UART is using. I'm planning for a full duplex port, but if its easier for a half duplex one, I might consider it. As for processing time, I need to leave enough for the scheduler/keypad scanner and some simple math operations for the calculator part which isn't that much. The main purpose (besides the simple calculator functions) is to communicate serially to other projects and/or a computer. So, it just needs to scan the keypad and incoming serial characters, take some action depending on what was entered, and display a message on the LCD and send out a serial message (whats sent to LCD could be different then whats sent to the computer or other device). I was considering putting the LCD and barcode scanner on the SW UART, however, I'll be using both quite a bit more then the second one going to a computer/other device. I'd figure leaving them on the HW UART would be best. Also, I was looking through a book I have in my small library of electronics books ("C and the 8051") and found some code I think I might be able to adapt for my purpose. The author of the book actually posted a small .pdf file to show as an example of the book on his website that actually shows about half of the code: http://www.candthe8051.com/C20pg220.pdf When I get a bit more time later today, I'll post the rest of the code and maybe another one of his examples that might be even better suited. If you could let me know the feasibility of using this C code, that would be great :-) Thanks, J Silverman |
Topic | Author | Date |
Bit-banging/software UART on a AT89C2051 | 01/01/70 00:00 | |
this will be a mess when you do not have | 01/01/70 00:00 | |
Re: this will be a mess when you do not | 01/01/70 00:00 | |
now it is 3 devices | 01/01/70 00:00 | |
Re: now it is 3 devices | 01/01/70 00:00 | |
SW UART | 01/01/70 00:00 | |
Re: SW UART | 01/01/70 00:00 | |
Use a second 89C2051 | 01/01/70 00:00 | |
you will have to anyhow | 01/01/70 00:00 | |
The max has 2+2 drivers | 01/01/70 00:00 | |
Some other things to think about | 01/01/70 00:00 | |
TL16C754 software flow control question | 01/01/70 00:00 | |
what does that have to do with bit-bangi![]() | 01/01/70 00:00 | |
nope, there are many external UARTs ava | 01/01/70 00:00 |