It is clear that on the PIC, 8 ports will need to be reserved for sending data to the LCD (pins 7 to 14), and 2 ports for controlling the data flow (pins 4 and 6). Pin 5 will be applied to the GND as we are not interested in reading data from the LCD screen (only writing to it).
Er moeten dus 8 data poorten (pin 7 t.e.m. 14) en 2 poorten voor de aansturing (pin 4 en 6) gereserveerd worden op de PIC. The ports used on the PIC will be port B (8 ports) for the data outputs, and ports C4 and C5 for the two control signals.
Pins 15 and 16 are for the backlight and are to be connected to the Voltage source (5V) and the GND respectively.
Pin 3 sets the contrast and needs to be set between 0 to 1 Volts.