3.7. PIC16 C Parallel and Serial Interfaces

• PSP functions and test system

• Comparison of parallel and serial links

The parallel slave port (PSP) allows an external controller to initiate an 8-bit data exchange with the PIC MCU. This method of data exchange is compared with the serial ports.

Parallel Slave Port

In the example in Figure 3.10 a master ‘877 is feeding data to a slave chip of the same type. Arbitrary data are set on the DIP switch at Port B of the master. The internal pull-ups available on these pins are activated in the master program to avoid the need for external resistors on the switches. The test data are transferred to Port C and presented to the slave Port C pins (Listing 3.10). The slave port is already enabled via E0 (!CS ...

Get Programming 8-bit PIC Microcontrollers in C now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.