Isolated RS232C for PIC16F84
Another method that helps program development besides a dot LED as the output device is a serial bit. With a serial transmission to a terminal emulator program, developer may then test program running easier than a dot LED. One of my circuit uses PIC16F84 having one bit for sending ascii character with “printf” function. The PIC16F84 provides a very convenient way of connecting serial data to terminal. We may use a 1K resistor connects RB1, say to RxD pin of COM1 directly.
As shown above diagram, my PIC circuit uses a transformerless DC supply. Direct connection is then not recommended for safety. The ground voltage difference between two circuits may destroy the RS232 converter chips. We thus need an isolation device to separate AC line and notebook circuit. The example circuit for PIC16F84 shown below, uses RB1 as a TxD pin. Digital baseband is NRZ, i.e., data bit 1 is logic high and data bit 0 is logic low. The heart of the circuit is a 4N26, an opto-isolator with NPN output transistor. Since the output port of the 16F84 can drive LED directly, say with sink current. We need only a 180 Ohms current limiting resistor connected to RB1.
For more detail: Isolated RS232C for PIC16F84
From Schematic to PCB Production, Just Need One Tool
Free Circuit Design Software: learn to use Editor quickly and easily
Cheapest PCB: 10pcs 2-layers 10cm×10cm only $8.21, 3-day build time, 100% E-test