I'm planning on making a circuit with a PIC (16F84A) and I was wondering how to interface with the serial port on the PC (only needs to transmit to the PC), my main problem is that the 16F84A uses TTL voltage levels, whereas serial isn't (ie. RS232)... any ideas? I was thinking of using This but I have no idea if it would suit my needs or not... my other option would be to use a MAX232, but I kinda want to do it right away and not have to wait for delivery.
If you're actually impatient you should use google: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=MC1488+rs232&sa=N&tab=wg It's a driver only. Find a max232 or clone.
I've done a bit of reading regarding RS232 (as I also thought it'd be as easy as just connecting a pin from the PIC to the line on the COM-port and sending serial data to that pin) and it seems that RS232 uses a voltagevalue between 3V (or nowadays 0.3V) and 12V for high, and -12V and -3V (or -0.3V) for low, tho modern systems accept "0" as a low too.
PIC (or Avr!) to your PC is super easy. All you need is the max232 (or clone). Yes, there's lots of details you _could_ know, but the fact of the matter is that all you need to know is that you need a max232. There are ways to do it without a max232, but they'll all cost you alot more in time then the $2 (is that 1.5 pounds?) max232 will cost.
Will a "driver" based on the EIA-232D standard also work? I've searched a bit in a shop and that was the cheapest I could find (0.70), the others were more expensive (7.43+)
A driver is just that, a driver. Meaning that you can use it (assuming that it's got the correct specs) to _send_ but not receive. RS232 is also inverted. This means unless the driver does it (most won't) you need to invert the signal before the driver processes it. There's a reason all the circuits you find on the web use a Max232. Max232 really shouldn't be all that expensive. If you REALLY want to keep trying this way, do a search on google. There's lots of excellent circuits for doing this. They'll need about 20 discrete components but they work.
A max232 is the best and easiest solution. But there are other, much cheaper, but a bit more complicated solutions as well.
Check out this web site: http://www.mygizmos.net/frames/hardware/irreciever.html Yes, it`s the well known UIR controller, a very useful bit of kit. Anyway, look at the schematic. You can interface to RS232 over a short distance without any kind of level converter or inverter. It not brilliant but it works. A 16F84 with something like that might make a good serial "backpack" for an LCD. For more advanced stuff, check out the 16C87X series of PICs. They have a UART built in, and are very easy to use. You do need a MAX232 or similar though. You can download a free bootloader for them too: http://www.microchipc.com/PIC16bootload/ Makes development a hell of a lot easier. MoJo
Skip the MAX232, you can get away without using it for a while until your chip comes in. The F84 is a cheap uC anyway. Tell me again why you are using the F84 over the 16F628 which is MUCH cheaper, has the same pinout, and provides an onboard clock and more I/O's? But seriously, don't blame me if you fry your serial port, but you can have any terminal program use either T2400 (true) or N2400 (inverted) TTL logic. -oktane
Oh yeah, here is the PICList's take on this. There are some very good ideas that get around the MAX232 chip. http://www.piclist.com/techref/io/serial/ttl-rs232.htm
Got a solution: just request a sample for the MAX232 Totally free, even no shipping costs http://www.maxim-ic.com/
cos my programmer only says it will work with 16f83 16f84 otherwise i would use the 16f628 but onboard clock sounds like a gr8 plan ive been thinking bout doing a serial >parallel lcd jobbie for ages but i killed my last pic and aint got arround to getting bits again