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 CCS Technical Support

SPI and RS232

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



Joined: 10 Oct 2008
Posts: 46
Location: GREECE

View user's profile Send private message

SPI and RS232
PostPosted: Sat Nov 01, 2008 12:16 pm     Reply with quote

Hello everybody,

Can I use in my program SPI and RS232 both ?
I'll take data SPI from an ADC and I'll send to computer via rs232.
asmallri



Joined: 12 Aug 2004
Posts: 1634
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sat Nov 01, 2008 2:14 pm     Reply with quote

Yes.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
bkamen



Joined: 07 Jan 2004
Posts: 1615
Location: Central Illinois, USA

View user's profile Send private message

PostPosted: Sat Nov 01, 2008 4:09 pm     Reply with quote

Most definitely.

If the device has both a hardware SSP and UART, the both items can be operated with minimal code (that you see)

Even without an SSP or UART, this can be acheived in software with CCS (rather transparently, I might add) -- but more software is generated and additional rules must be followed. (Software RS232 with other system interrupts running is a bad thing if not designed carefully)

-Ben
_________________
Dazed and confused? I don't think so. Just "plain lost" will do. :D
pvol



Joined: 10 Oct 2008
Posts: 46
Location: GREECE

View user's profile Send private message

PostPosted: Sun Nov 02, 2008 1:39 am     Reply with quote

Thanks a lot both of you
for the answers:grin:

I'll try and I'll tell you the results!
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