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
Related projects
PIC Stepper Motor Controller using PIC16F84A with Proteus Simulation
Introduction Stepper motors are widely used in embedded systems and DIY electronics projects where precise position control is required. This PIC Stepper...
Programmers & ICSP · PIC16F84APIC Musical Doorbell using PIC16F84A with Proteus Simulation
IntroductionThis microcontroller project demonstrates a musical doorbell built around a PIC16F84A and a simple piezo sounder.Using two push buttons, the system allows...
Beginner Tutorials · PIC16C84Exploring the World of PIC Microcontrollers: An Architectural Overview
A Peripheral Interface Microcontroller (PIC), developed by General Instruments Microcontrollers in 1993, operates under software control and is programmed to execute various...
Communication & Interfacing · PIC18F4520CAN FD Node based on a PIC18 Microcontroller
The introduction sets the stage for an embedded systems project that involves developing a Embedded C CAN FD project using the MCP2517FD...
Communication & InterfacingLAN9662 Gigabit Switch: Optimized for Industrial Ethernet
Introduction It should come as little surprise therefore that one element of what is now more commonly referred to in some circles...
Communication & InterfacingPIC Microcontroller: Fundamentals & Applications for Students
Introduction Microcontrollers are the key components in the embedded systems market. A variety of embedded systems was formed and developed after the...
