Author Topic: rs232 and usart  (Read 2172 times)

0 Members and 1 Guest are viewing this topic.

Offline srdp45Topic starter

  • Beginner
  • *
  • Posts: 5
  • Helpful? 0
rs232 and usart
« on: April 05, 2011, 11:40:02 AM »
hi, what's the difference between USART and RS232 ??
both is for pc serial communication only, then why only USART for pc serial communication in pic16f877a microcontroller is recommended and why not RS232 ??

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,944
  • Helpful? 98
Re: rs232 and usart
« Reply #1 on: April 05, 2011, 12:42:30 PM »
RS232 signals are +12V to -12V and are only needed for longer cable lengths. This is the voltage levels on a PC's Serial COMM port and has been an industrial standard for over 40 years and allows easy interfacing to many different devices with high reliability.

The PIC's UART (and other processors) are power at 5V or 3.3V so can not supply the RS232 voltage levels.

The data timing is the same on both, a logic to RS232 level translator like a MAX232 chip only changes the voltage.

Look up both RS232 and Asynchronous Serial in Wikipedia for details.

Offline MikeK

  • Full Member
  • ***
  • Posts: 97
  • Helpful? 5
Re: rs232 and usart
« Reply #2 on: April 05, 2011, 03:50:29 PM »
USART is the device.  RS232 is the communications standard, which wasn't always strictly adhered to anyway.  And hardly is anymore.  Old PCs that used the RS232 standard still had a dedicated UART chip on-board.

 


Get Your Ad Here