Professional Documents
Culture Documents
Main board
Similarly, RB3, RB4 and RB5 pins are all reserved to be used for 8-bit serial to
parallel converter register/driver TPIC6B595. Through these three pins and with
added TPIC6B595 registers we can describe as many outputs as we wish. RB3, RB4
and RB5 are the “clock out”, the “data out” and the “latch out” pins, respectively.
The remaining unused pins of the PIC16F648A are connected to the “future
extension connector”.
• The inputs section introduces 8 discrete inputs for the UZAM_PLC, called I0.0, I0.1,
..., I0.7. Each input can accept 5V DC or 24V DC signals. These external input signals
are isolated from the other parts of the hardware by using NPN type opto-couplers
(e.g. 4N25).
In the beginning of each PLC scan cycle (get inputs) 74HC/LS165 is loaded
(RB7 (shift/load) = 0) with the level of 8 inputs and then this data is serially
clocked in (when RB7 = 1; through RB0 “data in” and RB6 “clock in” pins). If
there is no I/O extension board used, then 8 clock in signals are enough to
get the 8 input signals. For each I/O extension board, 8 more clock in signals
are necessary.