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

pics with i2c and rs232

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







pics with i2c and rs232
PostPosted: Tue Jul 17, 2007 9:20 pm     Reply with quote

Hi. I am from Brazil so I sorry about my poor english Crying or Very sad
I have two questions about pics.
1: i would like know about cheap pics with i2c e rs232. any indication?
2: The pic16f628a has two dedicated pins for tx and rx rs232, but i can use others pins for tx and rx rs 232. So, what´s the difference?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Jul 17, 2007 9:29 pm     Reply with quote

Quote:

2: The pic16f628a has two dedicated pins for tx and rx rs232, but i can
use others pins for tx and rx rs 232. So, what´s the difference?

See this post:
http://www.ccsinfo.com/forum/viewtopic.php?t=28707&start=3
and this one:
http://www.ccsinfo.com/forum/viewtopic.php?t=28197&start=10
Guest








PostPosted: Wed Jul 18, 2007 8:15 pm     Reply with quote

Thanks.
I could use the UART software in the receptor PIC and with the function switch I sent 0 and 1 for the PORTB wich was connected with one display.
But I used many output high and low to light the display.
The CCs compiler has any function to send a word to the PORTB?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Jul 18, 2007 8:21 pm     Reply with quote

Download the CCS compiler manual:
http://www.ccsinfo.com/downloads/ccs_c_manual.pdf

Look in the section on Built-in Functions. There's a list of all the CCS
functions at the start of that section. Then look in the sub-section on
"Discrete i/o". You will see several functions listed which can output
a complete byte to a port.
Guest








PostPosted: Wed Jul 18, 2007 8:41 pm     Reply with quote

thanks again Very Happy
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