Organize and Share your Electronics the way you want. Sign-Up for a free account now. It takes only 30 seconds!

Two way serial communications using PIC16F877

Two way serial communications using PIC16F877

With this microcontroller it is much easier to connect a switch, because it has dedicated digital i/o ports (b and c).
Unbelievable after all the trouble it took on the 12F675.

Since there is no LED the switch position is relayed to the PC, but only if you press the ‘s’ key (scan or status) on the keyboard. Effectively this means there is two way communications between the microcontroller and the PC.

If the Xwisp programmer is used it can remain in place during serial communications, assuming it is switched to pass through mode using the command

xwisp.py tty 1200

After that the small Xwisp windows shows the communication that is taking place. This works perfectly for testing and debugging. I prefer to use a separate terminal package, as shown in the first picture on this page.

Visit Here for more.







 

More Articles to Read

App note: Noise analysis for high-speed op amps
App note: Noise analysis for high-speed op amps
Skill Sunday: Arrays
Skill Sunday: Arrays
App note: Infrared remote control implementation with MSP430FR4xx
App note: Infrared remote control implementation with MSP430FR4xx
Gesture Controlled Smart Home
Gesture Controlled Smart Home
Design for a Wideband, Differential Transimpedance DAC Output
Design for a Wideband, Differential Transimpedance DAC Output
Wrist thrusters let you fly through the water effortlessly
Wrist thrusters let you fly through the water effortlessly
Bertan/Spellman 225-20R HV power supply teardown
Bertan/Spellman 225-20R HV power supply teardown
Blinking Christmas Lights
Blinking Christmas Lights
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adjusting clock with alarm, hygrometer & thermometer on 1.8″ ST7735 display
Adding an “extra sense” with rangefinders
Adding an “extra sense” with rangefinders
This wireless game controller looks like a rug
This wireless game controller looks like a rug
How to run your ESP8266 for years on a battery
How to run your ESP8266 for years on a battery
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Calibration of a 3-Phase Energy Meter Board on the ADE7754
Making beats on a tiny Arduino DJ controller
Making beats on a tiny Arduino DJ controller
Qinsi-QS5100 Sn63Pb37 solder profile
Qinsi-QS5100 Sn63Pb37 solder profile
Water Detection System
Water Detection System
Professional Hi-Fi 15W Tube Amplifier circuit
Professional Hi-Fi 15W Tube Amplifier circuit
This Arduino machine will judge how sick your ollies are
This Arduino machine will judge how sick your ollies are
Turn an old payphone into a boombox for ’90s hits
Turn an old payphone into a boombox for ’90s hits
Big F’n 3D printer build
Big F’n 3D printer build

Top


Shares