5.0 Functional Description (Continued)
Function Configuration Status Registers 0,1
[
0x1022,0x1042
]
These PCMCIA registers are used for function control/
status information.
D7 D6 D5 D4 D3 D2 D1 D0
Changed SigChg IOis8 Reserved Audio PwrDn Intr IntrReset
ChangedÐIf one or more of the state change signals in the
Function Pin Replacement Register are set to one (1), the
PCM16C00 shall set this field to a one (1). If the PCM16C00
is being operated as a I/O interface, (PC Card using I/O
Interface), and both the Changed and SigChg fields are set
to one (1), the PCM16C00 shall assert the STSCHG
Ý
signal. If the PC Card, and hence PCM16C00, is not using the
I/O interface, this field is undefined and ignored.
SigChgÐThis field serves as a gate for asserting the
STSCHG signal. If the PCM16C00 is operated as an I/O
interface, and both the Changed and SigChg fields are set
to one (1), the PCM16C00 shall assert the PCMCIA
STSCHG
Ý
signal. If the PCM16C00 is operated as an I/O
interface and this field is reset to a zero (0), the PCM16C00
shall not assert the STSCHG
Ý
signal. If the PCM16C00 is
not operated as an I/O interface, this field is undefined and
should be ignored. Either Function Configuration Status
Register 0 or 1 is capable of asserting STSCHG
Ý
if it satis-
fies the above requirements.
IOis8ÐWhen the host can only provide I/O cycles with an
8-bit D0–D7 path, the host shall set this bit to a one (1). The
card is guaranteed that accesses to 16-bit registers will occur as two, byte accesses rather than a single 16-bit access. This information is useful when 16-bit and 8-bit registers overlap.
AudioÐSampling of the signal SPKÐIN and control of
SPKR
Ý
is accomplished using the Audio bit. SPKR
Ý
will
equate to SPKÐIN
anytime either of the Audio bits is set to
one (1) and the function is configured.
PwrDnÐWhen the host sets this field to one (1), the
PCM16C00 shall set the given function to a power-down
state by de-asserting the PCNTL( ) signal for that function.
While this field is a one (1), the host shall not access the
function on the PC Card. The host shall return this field to
zero (0) before attempting to access the function. The system shall not place the card into a power-down state while
the card’s RDY/BSY
Ý
line is in the low (Busy) state. All
input/output signals particular to the function are
TRI-STATE.
IntrÐIf the function is requesting interrupt servicing (CINT( )
asserted), the PCM16C00 shall set this field to one (1). The
PCM16C00 shall reset this field to zero (0) when the interrupt request has been serviced (CINT( ) de-asserted).
IntrResetÐIf IntrReset is set to zero (0), Intr shall be set to
one (1) when an interrupt condition occurs and shall be reset to zero (0) when the interrupt condition has been serviced. A write to the Intr bit will do nothing. If IntrReset is set
to one (1), Intr shall be set to one (1) when an interrupt
condition occurs (CINT( ) pin) and be cleared to a zero (0)
when the interrupt (CINT( ) pin) is serviced, however, a write
of value zero (0) to any FCSR’s Intr bit where IntrReset is
set to one (1) shall cause the PCM16C00 to evaluate all
CINT( ) signals and generate another interrupt to the system
if an interrupt is pending. Note that the write of zero (0) to
any FCSR’s Intr bit where IntrReset is set to one (1) is an
indication to the PCM16C00 that it must evaluate all CINT( )
pins and generate a specified pulse to the system on the
IREQ line. This protocol will work in either pulse or level
mode (state of aliased LevIREQ controlling IREQ
Ý
PCMCIA signal mode). Functions operate by asserting their
CINT( ) signal when an interrupt condition occurs. If interrupts are enabled for a given function, then that function’s
CINT( ) pin, when asserted, may generate an interrupt within
the PCM16C00.
National’s PCM16C00 has access to an internal interrupt
line that represents the OR of all interrupts that have been
asserted and enabled. Since functions use a level mode
interrupt approach, this OR’d internal interrupt signal represents a level mode ORing of the interrupts. When the OR’d
signal is asserted, the PCM16C00 will generate either a
pulse mode or level mode interrupt on the IREQ
Ý
line. Before EOI processing by the functions ISR, the function’s interrupt condition will be cleared and its CINT( ) pin will deassert. If no other interrupts are being asserted, the
PCM16C00’s internal line will de-assert IREQ
Ý
. If other interrupts are pending, the internal line remains asserted (and
hence IREQ
Ý
). Since the standard PC compatible interrupt
controller requires a positive edge to trigger an interrupt,
system software based on using the IntrReset protocol for
the PCM16C00 may write a zero (0) to any Intr bit where
IntrReset is set to one (1) after EOI processing is done. This
will cause the PCM16C00 to generate a pulse on the
IREQ
Ý
line if any CINT( ) that’s enabled is still asserted. In
other words, if the internal line is still asserted at this point. If
in pulse mode, this is a single pulse that goes high-low-high
with at least 0.5 m s low time. If in level mode, this pulse is a
low-high-low pulse to trigger the interrupt controller and
then remain low (IREQ
Ý
asserted) and be maintained low
by the level mode interrupt. This protocol solves both the
need for two positive edges during level mode interrupts
when an interrupt occurs during an interrupt in-service and
solves the need for separate-distinct pulse interrupts that do
not overlap during two interrupt events close in time.
Note: For consistency, the PCM16C00 will alias all IntrReset bits on a write
to insure that both functions operate in the same mode. Also, the Intr
bits are aliased on writes as an indicator to the PCM16C00 that interrupt status must be checked and pulses generated per the above
protocol.
Function Pin Replacement Registers 0,1
[
0x1024,0x1044
]
These PCMCIA registers replace the signals missing from a
PCMCIA Memory Card interface due to using the PCMCIA
I/O interface.
D7 D6 D5 D4 D3 D2 D1 D0
CBVD1 CBVD2 CRdy/Bsy CWProt RBVD1 RBVD2 RRdy/Bsy RWProt
CBVD1,CBVD2ÐThese bits are not implemented.
CRdy/BsyÐThis bit is set to one (1) when RRdy/Bsy bit
changes state.
CWProtÐThis bit is not implemented.
RBVD1,RBVD2,Rdy,Bsy,RWProtÐOnly RRdy/Bsy is im-
plemented for each function. This bit reflects the state of
the functions READY( ) input pin on the PCM16C00.
Function I/O Event Registers 0,1
[
0x1028,0x1048
]
D7–D6 D5 D4 D3–D2 D1 D0
Reserved PIEvt RIEvt Reserved PIEnab RIEnab
PIEvtÐIn normal operation (not LAN Mode), the PIEvt bit is
unused. In LAN Mode of operation, the PIEvt bit for Func-
13