beautypg.com

Programming the pio-24.lpci – Impulse 8018 User Manual

Page 12

background image

© Sealevel Systems, Inc.

- 10 -

PIO-24.LPCI User Manual

Programming the PIO-24.LPCI

Presetting an Output Port

Each port has an output register associated with it. This register may be written and
retains its value whether the port is configured as an input or an output. To preset the
value of an output port the program should write to the port when it is configured as
an input then configure it as an output.


Writing the Outputs

The outputs are active true. Writing a one (1) corresponds to 5V while writing a zero
(0) corresponds to 0V, at the output.


Register Description

Address

Mode

D7 D6 D5 D4 D3 D2 D1 D0

Base+0

RD/WR

PA1D7 PA1D6 PA1D5 PA1D4 PA1D3 PA1D2 PA1D1 PA1D0

Base+1

RD/WR

PB1D7 PB1D6 PB1D5 PB1D4 PB1D3 PB1D2 PB1D1 PB1D0

Base+2

RD/WR

PC1D7 PC1D6 PC1D5 PC1D4 PC1D3 PC1D2 PC1D1 PC1D0

Base+3

WR

CW1D7 0

0 CW1D4

CW1D3 CW1D2 CW1D1 CW1D0

Base+4

RD/WR

0 0 0 0 0

IRQEN1

IRQC11

IRQC10

Base+5

RD

0 0 0 0 0 0 0

IRQST1

0 = Not Used

This manual is related to the following products: