MF PROJECTS HOME TECHNICAL TIPS MOBILE SITE
PIC Projects
WiFi - ESP8266
Doorbell with SD / EEPROM
SD FAT16/32 for .bmp
TFT Egg Timer
LCD TFT Oscilloscope
SD Talking Clock
SD Sound Recorder,
    FAT32 wav Player
LED Thermometer
LED Egg Timer
LCD Egg Timer

Frequency Counters
TFT 10MHz
100KHz For PC
1MHz For PC
8 Digits LED 50 MHz
Scope Screen Display
LCD Module 10MHz
6MHz for Android
USB PIC18F2550
USB TFT display BMP
USB DS18B20 Sensor
USB Thermometer
USB Counter
USB Meter
USB Oscilloscope
USB Input-Output
USB 16x2 LCD

COM & LPT Ports
MCP3201 on LPT
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
Analogue Signal to LPT
MCP3201 on Serial Port
Serial Thermometer
Analogue Signal to Serial
LCD Display on LPT
Serial Thermostat

Others
Water Softener
HP Stream 7 docking
3.7V to 5V
Solar Charger

Infrared Decoder
PIC Music

Code Lock
Code Lock with LCD

SERIAL PORT INPUTS OUTPUTS

The serial port drives and powers PIC16F870. 4 analogue inputs, 6 digital inputs and 6 outputs are serially interfaced between the PC and the PIC. Included a VB6 software, Visual Studio 2005 C# code, PIC C code and a circuit diagram. The communication is RS232 protocol. The application transmits 1 byte of PIC outputs data and receives 9 bytes of data from the PIC.
The PC application can be changed or replaced if the inputs or outputs are to drive other software on the PC.
You can read more about serial interface in http://www.beyondlogic.org/spp/serial.htm

VB6, C#, PIC code and circuit diagram download. You are free to use the circuit diagram and the VB software with no limitations.

The VS C# application.

Circuit Description
See also Technical Tips

Pin 4 at the serial port is turned to +12V by the software enabling DTR. It is regulated to 5V by LP2950 or equivalent. The 5V from the serial port can drive the PIC with about 1mA to spare.
The Optional 8-15V Supply is used in case that extra source current needed from the PIC outputs to drive LEDs or relays.
Pin 3 is used to drive RX input, BC337 reverse the signal phase.
Pin 2 transmit the PIC output to the PC RX receive input. The signal is powered by 12V from pin 4 and -12V from pin 7.
Pin 7 RTS is held at -12V by the VB software.
Analogue inputs are 0-5V. Digital inputs are TTL type. 1K resistors are for protecting the inputs from over voltage.