I am using PIC18F452 and now i can use 2 uart,it work on my testing.
I tested it by Hyperterminal .it can send and recive.but when i connect to my device with SW UART it doesn't work but i connect my device with Hw
UART it work fine.
I don't know Why? I check for my serail Line ,it good.
my device is work sure but i don't why it doesn't work when connect to
SW UART only.
please help me?
Noname Guest
Posted: Fri Mar 16, 2007 5:46 pm
Post your code, maybe we can find any errors.
What baudrate do you use? SW Uarts sometimes don't like to high baudrates.
grasspuddle
Joined: 15 Jun 2006 Posts: 66
Posted: Mon Mar 19, 2007 7:37 am
SW uart won't have an interrupt when you receive data. You have to manually call getc() when there is data to be received. Coding WILL have some differences for hw uart and sw uart. We will have to look at code to suggest what exactly you are missing.
If its transmit from the PIC to hyperterminal it might be wiring problem? If its receive to the PIC from hyperterminal then you need to manually call getc()
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum