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
For All Your PCB Need, One-stop PCB Solution Services Appear:
EasyEDA: free PCB design tool, 200,000+ engineers are using
PCBs: 10pcs 2-layer 10x10cm only $8.21, on-time global shipping
Components: save 50% on cost, save on freight if shipped with ordered PCBs