Difference between revisions of "PIC RS232"
From Mech
Jump to navigationJump to searchLine 8: | Line 8: | ||
On a standard male DB9 com port connector on a computer, 2=input to computer, 3=output from computer, 7=ground |
On a standard male DB9 com port connector on a computer, 2=input to computer, 3=output from computer, 7=ground |
||
The CCS IDE has a Tools/SerialPortMonitor (text window) built in |
The CCS IDE has a Tools/SerialPortMonitor (text window) built in |
||
[[Image:textwindow.gif]] |
Revision as of 20:53, 26 December 2007
under construction...
Print to and read from a serial (com) port (printf & scanf) Serial ports on desktop and laptop computers use RS232 serial protocol and they use bipolar signals PIC and some devices (e.g. serial LCD displays) use RS232 with logic-level signals MAX232N chip shifts levels, logic-level to/from bipolar levels (+-12V) Computers without com ports can use a USB-to-serial adapter On a standard male DB9 com port connector on a computer, 2=input to computer, 3=output from computer, 7=ground The CCS IDE has a Tools/SerialPortMonitor (text window) built in