CD1283
—
IEEE 1284-Compatible Parallel Interface
70
Datasheet
Any change in the mode of the parallel port is reported to the peripheral host by interrupt if the
NegCh bit is set in the PCIER; host software then reads the NSR to determine the current status and
condition. Once the host has read the NSR status resulting from the current negotiation, it should
clear the register in preparation for additional negotiation cycles. The NSR can be cleared by
writing any value.
7.4.6
Ones Detect Register
Setting the bits in this register enables the CD1284 to generate an interrupt
–
if SigCh (PCIER[4])
is set
–
when the selected signal changes from low to high (rising edge). Bits 7:4 are reserved and
must be written as zeros; they return zero when read. The settings in this register have no effect
(that is, SigCh interrupt is not generated) unless the device is in Manual mode.
7.4.7
Output Value Register
This register controls output signals. In Manual mode, all signals are controlled by these register
settings. In Compatibility and EPP modes, PerBsy and PerClk are controlled by the internal
parallel port state machine while AkDaRq, xFlag, and nDataAv are controlled by this register. In
ECP mode, the settings in this register have no effect.
Register Name: ODR
Register Description: Ones Detect
Access: R/W
8-Bit Hex Address: 2D
Default Value: 00
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
0
0
0
0
A1284
nInit
HstBsy
HstClk
Register Name: OVR
Register Description: Output Value
Access: Write only
8-Bit Hex Address: 2B
Default Value: 48
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
PerBsy
PerClk
AkDaRq
XFlag
nDatAv
0
0
0
Bit
Description
7
Peripheral Busy:
User-controlled in Manual mode only.
6
Peripheral Clock:
User-controlled in Manual mode only.
5
Acknowledge Data Request:
In Compatible mode, this signal is the PError (Peripheral Error) signal.
In EPP mode, this signal is auxiliary and is a user-defined signal (USER 1).
4
XFlag:
In Compatible mode, this signal is the SELCT (Select) signal.
In EPP mode, this signal is auxiliary and is a user-defined signal (USER 2).
3
Negative-true Data Available:
In Compatible mode, this signal is the nFault (negative-true fault) signal.
In EPP mode, this signal is auxiliary and is a user-defined signal (USER 3).
2:0
Reserved:
These bits must be written as
‘
0
’
.