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

Why #use rs232 but not #use uart?

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



Joined: 10 Dec 2011
Posts: 376
Location: Sofiq,Bulgariq

View user's profile Send private message

Why #use rs232 but not #use uart?
PostPosted: Mon Jun 15, 2015 12:47 pm     Reply with quote

Why #use rs232 instead of #use uart?
_________________
A person who never made a mistake never tried anything new.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Mon Jun 15, 2015 1:41 pm     Reply with quote

Probably because historically, when the compiler was first written,
"rs-232" was the most commonly used protocol (by hobbyists and others).
So CCS used the name that most people would easily recognize.
temtronic



Joined: 01 Jul 2010
Posts: 9220
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Mon Jun 15, 2015 2:56 pm     Reply with quote

also.... 'UART' typically implies a special peripheral either discrete or masked onto the PIC die whereas CCS allows you to create a 'software 'UART' though it's NOT a true UART it will allow you to send/receive serial data aka RS-232.

The use of the term 'RS232' has misled a lot of people over the years, I still think of it as +-12 Volt signalling using 1488/1489 chips...sigh I must be showing my age !

Jay
Ttelmah



Joined: 11 Mar 2010
Posts: 19492

View user's profile Send private message

PostPosted: Thu Jun 18, 2015 8:29 am     Reply with quote

I think 'history' is the key.

When CCS started, the sole purpose of this, was to provide the TTY interface setup for getc/putc. Doing this without a UART (on chips that didn't have one), or with a UART (on chips that did).

It has 'growed and growed', with handling for RS485 direction control etc..

I've often posted that it should be something like '#use async serial', but then it began supporting synchronous modes, so even this wouldn't cover all the options.

The title is just a 'wrapper' and unfortunately is wrong for anyone who understands what 'RS232' involves, but any replacement is also wrong (no UART in many cases, async and synchronous, etc. etc....).

We 'live with it'.
asmboy



Joined: 20 Nov 2007
Posts: 2128
Location: albany ny

View user's profile Send private message AIM Address

PostPosted: Sun Jun 21, 2015 5:40 pm     Reply with quote

Quote:

#USE EIA_SERIAL ... ...


Talking roots here but newer than Baudot
Very Happy Very Happy
temtronic



Joined: 01 Jul 2010
Posts: 9220
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Jun 23, 2015 5:25 am     Reply with quote

I always thought...

#USE SIO(...)

..would be more appropriate. RS232 to me usually has 1488 drivers and 1489 receiver chips involved !

SIO ,'Serial Input Output' is a 'generic' term without a preconceived idea as to the hardware or software, only that data uses 1 wire instead of 8.

It would fit better with #USE SPI, #USE I2C, etc.

Jay
tinley



Joined: 09 May 2006
Posts: 67

View user's profile Send private message Visit poster's website

PostPosted: Tue Jun 23, 2015 6:08 am     Reply with quote

Could be

use 'firmware asynchronous receiver transmitter'?
Ttelmah



Joined: 11 Mar 2010
Posts: 19492

View user's profile Send private message

PostPosted: Tue Jun 23, 2015 6:53 am     Reply with quote

Except as I already pointed out, it does now support synchronous in some cases.

It is a case where the capabilities exceed the name....
ezflyr



Joined: 25 Oct 2010
Posts: 1019
Location: Tewksbury, MA

View user's profile Send private message

PostPosted: Tue Jun 23, 2015 9:05 am     Reply with quote

temtronic wrote:

RS232 to me usually has 1488 drivers and 1489 receiver chips involved !


Hi Jay,

Nothing says 'old geezer' like a reference to 1488/1489 RS232 driver IC's, ha, ha Wink !!

John
RF_Developer



Joined: 07 Feb 2011
Posts: 839

View user's profile Send private message

PostPosted: Tue Jun 23, 2015 9:13 am     Reply with quote

ezflyr wrote:

Nothing says 'old geezer' like a reference to 1488/1489 RS232 driver IC's,


Really? To me RS232 brings to mind images of Teletypes and discrete transistors....

Less of the "old geezers", if you don't mind ;-) We're like great whisky: well-matured and full-bodied. We've also been there, done that over and over, and got the wooly pullovers to prove it!
temtronic



Joined: 01 Jul 2010
Posts: 9220
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Jun 23, 2015 10:14 am     Reply with quote

Word to the wise, NEVER use hipowered 'degreaser' on old ASR33s to get rid of the 'gunk'. It'll destroy the 'plastic' pieces like gears in about 9 days !! BTDT.
First profitable PIC project was a 20ma loop to RS232 convertor, yes using the 1488/89 chips.
sigh, the good old dayze....

Jay
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