User`s manual
CHAPTER 6 DIGITAL OUTPUT
57
6. DIGITAL OUTPUT
The PCL-848A/B provides 16 digital output channels. These i digital output channels
use the I/O port registers at address BASE+0 and BASE+1. The register’s data format
is listed below.
BASE + O D7 D6 DS D4 D3 D2 D1 DO
(write port)
D/O low byte D07 D06 D05 D04 D03 D02 DO1 D00
BASE + 1 D7 D6 DS D4 D3 D2 D1 DO
(write port)
D/O high byte D015D014 D013 D012 DOll D010 DO9 D08
It is fairly straight forward to use your PCL-848A/B digital ~ output functions. Some
areas requires your attentions are the . pin assignment.
Connector 2 (CN2) - Digital Output
The programming is quite easy and it needs only the BASIC statement ‘OUT’. For
example, to set all the output channels high:
IOPORT%=&U2B0
OUT IOPORT%, &hFF
OUT IOPORT%+1, &hFF
.
.