View previous topic :: View next topic |
Author |
Message |
rikotech8
Joined: 10 Dec 2011 Posts: 376 Location: Sofiq,Bulgariq
|
Why #use rs232 but not #use uart? |
Posted: Mon Jun 15, 2015 12:47 pm |
|
|
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
|
|
Posted: Mon Jun 15, 2015 1:41 pm |
|
|
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: 9229 Location: Greensville,Ontario
|
|
Posted: Mon Jun 15, 2015 2:56 pm |
|
|
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: 19520
|
|
Posted: Thu Jun 18, 2015 8:29 am |
|
|
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
|
|
Posted: Sun Jun 21, 2015 5:40 pm |
|
|
Quote: |
#USE EIA_SERIAL ... ...
|
Talking roots here but newer than Baudot
|
|
|
temtronic
Joined: 01 Jul 2010 Posts: 9229 Location: Greensville,Ontario
|
|
Posted: Tue Jun 23, 2015 5:25 am |
|
|
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
|
|
Posted: Tue Jun 23, 2015 6:08 am |
|
|
Could be
use 'firmware asynchronous receiver transmitter'? |
|
|
Ttelmah
Joined: 11 Mar 2010 Posts: 19520
|
|
Posted: Tue Jun 23, 2015 6:53 am |
|
|
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
|
|
Posted: Tue Jun 23, 2015 9:05 am |
|
|
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 !!
John |
|
|
RF_Developer
Joined: 07 Feb 2011 Posts: 839
|
|
Posted: Tue Jun 23, 2015 9:13 am |
|
|
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: 9229 Location: Greensville,Ontario
|
|
Posted: Tue Jun 23, 2015 10:14 am |
|
|
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 |
|
|
|