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

Interactive geodesic LED dome = extreme geometric fun!
Interactive geodesic LED dome = extreme geometric fun!
Guide to build your 3.3v power supply
Guide to build your 3.3v power supply
SDR radio breathes life into a 75 year old Marconi CR100
SDR radio breathes life into a 75 year old Marconi CR100
A Time for Ranting!
A Time for Ranting!
Emulate a Commodore 64 keyboard with a modern PC and an Arduino
Emulate a Commodore 64 keyboard with a modern PC and an Arduino
USB2005 and USB97C202 Sharing ATA/ATAPI Drive w/ Another Controller
USB2005 and USB97C202 Sharing ATA/ATAPI Drive w/ Another Controller
Robotic Cat Laser
Robotic Cat Laser
LED traffic light
LED traffic light
Estimating Power for ADSP-BF561 Blackfin® Processors
Estimating Power for ADSP-BF561 Blackfin® Processors
Teach Your Arduino to Switch Itself Off!
Teach Your Arduino to Switch Itself Off!

Top




Shares