CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

SW UART

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
go-go-go
Guest







SW UART
PostPosted: Fri Mar 16, 2007 5:12 pm     Reply with quote

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







PostPosted: Fri Mar 16, 2007 5:46 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Mon Mar 19, 2007 7:37 am     Reply with quote

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()
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group