PDA

View Full Version : PIC18F2450 Rs-232



PlantBob
- 17th January 2011, 17:45
I have a PIC18F2450 installed in a PicKit 2 development board. The date sheet states:

"Enhanced Addressable USART: This serial
communication module is capable of standard
RS-232 operation"

Does this mean that I can connect the PIC directly to my Laptop serial serial port? If not, what additional hardware do I need? If so, what pins do I use? I plan on using the usart.pbp sample for testing.

Thanks,
Bob Hiller

mackrackit
- 17th January 2011, 18:25
The hardware serial will be on pins labeled TX an RX.
The hardware port sends and receives in TRUE mode. The PC uses INVERTED.
You will need something like a MAX232 chip to do the inversions.

You can use SERIN2/SEROUT2 with inverted mode and connect directly to the PC as shown in the PBP manual.

PlantBob
- 17th January 2011, 18:49
I have a PIC-P14 from Olminex that has a 9 pin port and Max232, will that work?

mackrackit
- 17th January 2011, 18:58
You can use the MAX232 from the board.
Might be fun getting the Pic18f2450 to plug into the socket :)