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

using SPI as emulator for RS232 transmission

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







using SPI as emulator for RS232 transmission
PostPosted: Thu Jun 14, 2007 1:12 pm     Reply with quote

I have run out of UARTS, and need a serial TX channel for debug purposes. I need more performance of this channel than SW RS232 can provide (the application is interrupt-heavy), and therefore I am looking at using a SPI channel as for producing RS232 signals. If I could get the SPI data line to idle high between transmissions, then all would be fine since I could transmit the first bit being 0, and the rest as 7 bit data, and finish with a high idle level as stop bit.

My problem is that I cant find a way of configuring the SPI port to idle between transmissions, any ideas? I guess I could place an inverter at the SDO pin, and transmit all data inverted, but I would rather prefer to solve the problems in software than starting to cut traces up.
Ttelmah
Guest







PostPosted: Thu Jun 14, 2007 3:25 pm     Reply with quote

You need a lot more.
Remember that SPI, is a synchronous system, so has no ability to guarantee timings at the sort of rates required by standard serial.Even if you only send 'seven bit' data, async, requires nine bits in the frame (start and stop bits), while SPI, only sends eight bits.
Look at the MAX3310. Has a SPI driven UART, RS232 buffer/level translator etc., all in one chip.

Best Wishes
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