The RS232 standard uses 16V signals, however 12V is acceptable.
The MAX232 chip uses 4 capacitors and some clever internal switching to convert a 5 volt supply into a 12V supply for the RS232 standard.
Without the MAX chip you could use the 1466 Driver and the 1468 receiver plus a 12V power supply.
Here is a little chart.
I hope it aligns right. It shows the voltage levels we are talking about:
5volts (TTL level)---[MAX232 Chip]---(12/16V Rs232 Level)
Tx from Microchip->TX In==TX OUT->Tx RS232 to PC.
Rx To Microchip<-RX Out==RX In<-Rx RS232 From PC.
Here is one solution you may look into as a simple test project.
PIC 12CE684 (I think that’s the number) it’s an 8 pin part.
It has 2 power pins (Vcc and Ground)
It has 2 A/D converters on board (With an external Vref input if needed)
And the remaining 4 pins can be used for anything else.
You can pick 2 pins and make them the TX and RX pins for the serial port.
The source code for the RS232 Protocol is on Microchip.com in an application note.
Once you have the code modified to run on the PIC12 series, You can sample 2 different things at the same time and then send the data to a PC.
I would have the PC send a signal to the PIC first, something like a ‘?’ symbol.
Computer to PIC: ?
Pic to Computer: 1=124<CR>2=209
Note: the PIC will return 0-255 from the A/D converter, you will have to convert that to an actual value your self depending on what you are measuring.
For Instance if your Vref is 9v, then a measurement of 192 could be converted to a reading by (192 * 9) /255 = 6.78V (Binary reading times Vref) divided by Max Reading = Actual Value.
Does that help?
-Mike