Advanced Micro Devices reserves the right to make changes in its products
without notice in order to improve design or performance characteristics.
This publication neither states nor implies any warranty of any kind, including but not limited to implied warrants of merchantability or fitness for a particular application. AMD assumes no responsibility for the use of any circuitry other than the circuitry
in an AMD product.
The information in this publication is believed to be accurate in all respects at the time of publication, but is subject to change
without notice. AMD assumes no responsibility for any errors or omissions, and disclaims responsibility for any consequences
resulting from the use of the information included herein. Additionally, AMD assumes no responsibility for the functioning of
undescribed features or parameters.
Product names used in this publication are for identification purposes only and may be trademarks of their respective companies.
Trademarks
Z80 and ZBus are registered trademarks of Zilog, Inc.
Z8000, Z8030, and Z8530 are trademarks of Zilog, Inc.
MULTIBUS is a registered trademark of Intel Corporation
PAL is a registered trademark of Advanced Micro Devices, Inc.
ii
PREFACE
Thank you for your interest in the SCC, one of the most popular Serial Data ICs available
today. This manual is intended to provide answers to technical questions about the
Am8530H and Am85C30.
If you have already used the Am8530H and are familiar with the previous editions of this
Technical Manual, you will find that some chapters are virtually unchanged. The
Am8030’s functionality, however, has been omitted from this revision since a CMOS
Am8030 was not developed. You can, however, consult the previous Am8030/8530 Technical Manual revision for information pertaining to Am8030 operation.
Functional descriptions of enhancements added to the Am85C30 have been included in
this Technical Manual revision. These enhancements improve the Am85C30’s functionality and allow it to be used more effectively in high-speed applications. These enhancements include:
■ a 10 x 19-bit SDLC/HDLC frame status FIFO array
■ a 14-bit SDLC/HDLC frame byte counter
■ automatic SDLC/HDLC opening flag transmission
■ automatic SDLC/HDLC Tx Underrun/EOM flag resetting
■ automatic SDLC/HDLC Tx CRC generator presetting
■ RTS pin synchronization to closing SDLC/HDLC flag
■ external PCLK to RxC or TxC synchronization requirement eliminated for PCLK divide-
by-four operation
■ complete SDLC/HDLC CRC character reception
■ reduced INT response time
■ Write data setup time to rising edge of WR requirement eliminated
■ Write Registers WR3, WR4, WR5, and WR10 made readable
Most users read only chapters that are of interest to them. If you are designing the microcomputer hardware using the SCC as a peripheral, you will want to read the Applications
Section in Chapter 7. Application notes covering the interfacing of the Am8530H (pre Hstep and CMOS versions only) to the 8086/80186, 68000 processors and Am7960 Data
Coded Transceiver have been included.
As was the case with the NMOS SCC, some points to look out for when using the
Am85C30 are:
■ Follow the worksheet for initialization (Chapter 7). Unexplainable operations may occur if
this procedure is not followed.
■ Watch out for the Write Recovery time violation. The specification for this (Trc) was
changed on both the H-step and CMOS version. It is now referenced from falling edge to
falling edge of the Read/Write pulse. Trc is spec’d at 4 PCLKs for the NMOS H-step and 3
PCLKs (best case)/3.5 PCLKs for the Am85C30.
■ Ensure Mode bits are not changed when writing commands. Each Mode bit affects only
one function and a Command bit entry requires a rewrite of the entire register; therefore,
care must be taken to insure the integrity of the Mode bits whenever a new command is
issued.
The Am85C30 and Am8530H SCCs (Serial Communications Controller) are dual channel, multiprotocol data communications peripherals designed for use with 8- and 16-bit
microprocessors. The SCC functions as a serial-to-parallel, parallel-to-serial converter/
controller. The SCC can be software configured to satisfy a wide variety of serial communications applications, including: Bus Architectures (full- and half-duplex), Token Passing
Ring (SDLC Loop mode), and Star configurations (similar to SLAN).
The SCC contains a variety of internal functions including on-chip baud rate generators,
digital phase-lock loops, and crystal oscillators, which dramatically reduce the need for
external logic. In addition, SDLC/HDLC enhancements have been added to the Am85C30
that allow it to be used more effectively in high speed applications.
The SCC handles asynchronous formats, synchronous character-oriented protocols such
as IBM BISYNC, and Synchronous bit-oriented protocols such HDLC and IBM SDLC.
This versatile device supports virtually any serial data transfer application (telecommunications, cassette, diskette, tape drivers, etc.).
The device can generate and check CRC codes in any Synchronous mode. The SCC
also has facilities for Modem controls in both channels. In applications where these controls are not needed, the Modem controls can be used for general purpose I/O.
With access to the Write registers and Read registers in each channel, the user can configure the SCC so that it can handle all asynchronous formats regardless of data size,
number of stop bits, or parity requirements. The SCC also accommodates all synchronous formats including character, byte, and bit-oriented protocols.
Within each operating mode, the SCC also allows for protocol variations by handling odd
or even parity bits, character insertion or deletion, CRC generation and checking, break/
abort generation and detection, and many other protocol-dependent features.
Unless otherwise stated, the functional description in this Technical Manual applies to
both the NMOS Am8530H and CMOS Am85C30. When the enhancements in the
Am85C30 are disabled, it is completely downward compatible with the Am8530H.
1.2CAPABILITIES
■ Two independent full-duplex channels
■ Synchronous data rates:
– Up to 1/4 of the PCLK (i.e., 4 Mbit/sec. maximum data rate with 16 MHz PCLK
Am85C30)
– Up to 1Mbit/second with a 16 MHz clock rate (FM encoding using DPLL in
Am85C30)
– Up to 500 Kbit/second with 16 MHz clock rate (NRZI encoding using DPLL in
Am85C30)
1–3
General InformationAMD
■ Asynchronous capabilities:
– 5, 6, 7, or 8 bits per character
– 1, 1-1/2, or 2 stop bits
– Odd or Even Parity
– x1, 16, 32, or 64 clock modes
– Break generation and detection
– Parity, Overrun and Framing Error detection
■ Character-Oriented synchronous capabilities:
– Internal or external character synchronization
– 1 or 2 sync characters in separate registers
– Automatic CRC generation/detection
■ SDLC/HLDC capabilities:
– Abort sequence generation and checking
– Automatic zero bit insertion and deletion
– Automatic flag insertion between messages
– Address field recognition
– I-Field residue handling
– CRC generation/detection
– SDLC Loop mode with EOP recognition/loop entry and exit
■ Receiver data registers quadruply buffered. Transmitter data register doubly buffered
■ NRZ, NRZI, or FM encoding/decoding and Manchester decoding
■ Baud-rate generator in each channel
■ A DPLL in each channel for clock recovery
■ Crystal oscillator in each channel
■ Local Loopback and Auto Echo modes
In addition, the Am85C30 provides enhancements which allow it to be used more effectively in high speed SDLC/HDLC applications. These enhancements include:
– 10 x 19-bit SDLC/HDLC frame status FIFO
– 14-bit SDLC/HDLC frame byte counter
– Automatic SDLC/HDLC opening Flag transmission
– Automatic SDLC/HDLC Tx Underrun/EOM Flag reset
– Automatic SDLC/HDLC CRC generator preset
– TxD forced High in SDLC NRZI mode when in mark idle
– RTS synchronization to closing SDLC/HDLC Flag
– DTR/REQ DMA request deactivation delay reduced
– External PCLK to RTxC or TRxC synchronization requirement removed for one fourth
PCLK operation
– Reduced Interrupt response time
– Reduced Read/Write access recovery time (Trc) to 3 PCLK best case (3 1/2 PCLK
worst case)
– Improved WAIT timing
Other enhancements which make the Am85C30 more user friendly include:
– Write data valid setup time to negative edge of write strobe requirement eliminated
– Write Registers WR3, WR4, WR5, WR10 and WR7′ are readable
– Complete reception of SDLC/HDLC CRC characters
– Lower priority interrupt masking without INTACK generation
1–4
General InformationAMD
1.3BLOCK DIAGRAM
Figure 1–1 depicts the block diagram of the Am8530H and Figure 1–2 the block diagram
of the Am85C30. Data being received enters the receive data pins and follows one of
several data paths, depending on the state of the control logic. The contents of the registers and the state of the external control pins establish the internal control logic. Transmitted data follows a similar pattern of control, register, and external pin definition.
Baud
Int
Cont
Logic
Rate
Gen
A
Ch A
Reg
Channel
A
Discrete
Control and
Status A
Serial
Data
Channel Clocks
SYNC
Wait/Request
Modem, DMA,
or
Other Controls
Cont
Data
Data
Control
5
8
CP
Bus
I/O
Cont
Lines
Internal Bus
Discrete
Control and
Int
Int
Cont
Logic
Ch B
Reg
Baud
Rate
Gen
B
Status B
Channel
B
Modem, DMA,
or
Other Controls
Serial
Data
Channel Clocks
SYNC
Wait/Request
07513C-001A
Figure 1–1. Am8530H Block Diagram
Channel A
Baud
Rate
Generator
Internal
Control
Logic
8
CPU
Bus I/O
5
Channel A
Registers
Internal Bus
10 x 19-Bit
Frame
Status
FIFO
Transmitter/
Receiver
Control
Logic
TxDA
RxDA
RTxCA
TRxCA
SYNCA
RTSA
CTSA
DCDA
Interrupt
Control
Lines
+5 V GND PCLK
Interrupt
Control
Logic
Channel B
Registers
Channel B
Figure 1–2. Am85C30 Block Diagram
TxDB
RxDB
RTxCB
TRxCB
SYNCB
RTSB
CTSB
DCDB
10216A-001A
1–5
General InformationAMD
1.4Pin Functions
The SCC pins are divided into seven functional groups: Address/Data, Bus Timing and
Reset, Device Control, Interrupt, Serial Data (both channels), Peripheral Control (both
channels), and Clocks (both Channels). Figures 1–3 and 1–4 show the pins in each functional group for the 40- and 44-pin SCC versions.
The Address/Data group consists of the bidirectional lines used to transfer data between
the CPU and the SCC. The direction of these lines depends on whether the SCC is selected and whether the operation is a Read or a Write.
The Timing and Control groups designate the type of transaction to occur and when this
transaction will occur. The Interrupt group provides inputs and outputs to conform to the
Z-Bus specifications for handling and prioritizing interrupts. The remaining groups are divided into Channel A and Channel B groups for serial data (transmit or receive), peripheral control (such as DMA or Modem), and the input and output lines for the receive and
transmit clocks.
Data
Bus
Bus
Timing
and Reset
Control
Interrupt
8
D0- D
7
RD
WR
A/B
CE
D/C
INT
INTACK
IEI
IEO
Am85C30/
Am8530H
SCC
TxDA
RxDA
TRxCA
RTxCA
SYNCA
W/REQA
DTR/REQA
RTSA
CTSA
DCDA
TxDB
RxDB
TRxCB
RTxCB
SYNCB
W/REQB
DTR/REQB
RTSB
CTSB
DCDB
Serial
Data
Channel
Clocks
Channel
Controls
for Modem,
DMA, or
Other
Serial
Data
Channel
Clocks
Channel
Controls
for Modem,
DMA, or
Other
1–6
+5 V PCLK
GND
Figure 1–3. SCC Pin Functions
10216A-004A
General InformationAMD
D
D
D
D
INT
IEO
IEI
INTACK
+5 V
W/REQA
SYNCA
RTxCA
RxDA
TRxCA
TxDA
DTR/REQA
RTSA
CTSA
DCDA
PCLK
7
INT
D
1
1
2
3
3
5
4
7
5
6
7
Am8530H
8
Am85C30
9
10
11
12
14
15
16
17
18
19
20
5
3
D
D
0
1
D
D
D
40
39
38
37
36
35
34
33
32
31
W/REQB
30
29
SYNCB
2813
RTxCB
27
RxDB
26
TRxCB
25
TxDB
DTR/REQB
24
RTSB
23
CTSB
22
DCDB
21
2D4D6
D
0
D
2
D
4
D
6
RD
WR
A/B
CE
D/C
GND
RD
WR
IEO
IEI
INTACK
+5 V
W/REQA
SYNCA
RTxCA
RxDA
TRxCA
TxDA
NC
7
8
9
10
11
12
13
14
15
16
17
6 5
NC
/REQA
DTR
4 3 2 1
Am85C30
RTSA
CTSA
DCDA
PCLK
DCDB
CTSB
RTSB
4041424344
2827262524232221201918
DTR/REQB
39
38
37
36
35
34
33
32
31
30
29
NC
A/B
CE
D/C
NC
GND
W/REQB
SYNCB
RTxCB
RxDB
TRxCB
TxDB
Figure 1–4. Pin Designation for 40- and 44-Pin SCC
10216A-003A
1–7
General InformationAMD
1.5PIN DESCRIPTIONS
Figure 1–4 designates the pin locations and signal names for the 40- and 44-pin SCC
versions.
1.5.1System Interface Pin Descriptions
A/B — Channel A/Channel B Select (input, Channel A active High)
This signal selects the channel in which the Read or Write operation occurs and must be
valid prior to the read or write strobe.
CE — Chip Enable (input, active Low)
This signal selects the SCC for operation. It must remain active throughout the bus
transaction.
D0–D7 — Data Lines (bidirectional, 3-state)
These I/O lines carry data or control information to and from the SCC.
D/C — Data/Control (input, data active High)
This signal defines the type of information transfer performed by the SCC: data or control.
The state of this signal must be valid prior to the read or write strobe.
RD — Read (input, active Low)
This signal indicates a Read operation and, when the SCC is selected, enables the SCC
bus drivers. During the interrupt acknowledge cycle, this signal gates the interrupt vector
onto the bus provided that the SCC is the highest priority device requesting an interrupt.
WR — Write (input, active Low)
When the SCC is selected, this signal indicates a Write operation. On the NMOS
Am8530H data must be valid prior to the rising edge of write strobe. The Am85C30 does
not share this requirement. The coincidence of RD and WR is interpreted as a Reset.
IEI* — Interrupt Enable In (input, active High)
IEI is used with IEO to form an interrupt daisy chain when there is more than one interrupt-driven device. A High on IEI indicates that no other higher priority device has an Interrupt Under Service (IUS) or is requesting an interrupt.
IEO — Interrupt Enable Out (output, active High)
IEO is High only if IEI is High and the CPU is not servicing an SCC or SCC interrupt or
the controller is not requesting an interrupt (interrupt acknowledge cycle only). IEO is connected to the next lower priority device’s IEI input and thus inhibits interrupts from lower
priority devices.
INTACK* — Interrupt Acknowledge (input, active Low)
This signal indicates an active interrupt acknowledge cycle. During this cycle, the interrupt
daisy chain settles. When RD becomes active, the SCC places an interrupt vector on the
data bus (if IEI is High). INTACK is latched by the rising edge of PCLK.
INT — Interrupt Request (output, open-drain, active Low)
This signal is activated when the SCC is requesting an interrupt.
Note:
1–8
*Pull-up resistors are needed on INTACK and IEI inputs if they are not driven by the
system and for the INT output. If INTACK or IEI are left floating, the Am85C30 will
malfunction. INT is an open drain output and must be pulled up to keep a logical high
level.
General InformationAMD
1.5.2Serial Channel Pin Descriptions
CTSA, CTSB — Clear to Send (inputs, active Low)
If the Auto Enable bit in WR3 (D5) is set, a Low on these inputs enables the respective
transmitter; otherwise they may be used as general-purpose inputs. Both inputs are
Schmitt-trigger buffered to accommodate slow rise-time inputs. The SCC detects transitions on these inputs and, depending on whether or not other External/Status Interrupts
are pending, can interrupt the processor on either logic level transitions.
DCDA, DCDB — Data Carrier Detect (inputs, active Low)
These pins function as receiver enables if the Auto Enable bit in WR3 (D5) is set; otherwise they may be used as general-purpose input pins. Both pins are Schmitt-trigger buffered to accommodate slow rise-time signals. The SCC detects transitions on these inputs
and, depending on whether or not other External/Status Interrupts are pending, can interrupt the processor on either logic level transitions.
DTR/REQA, DTR/REQB — Data Terminal Ready/Request (outputs, active Low)
These pins function as DMA requests for the transmitter if bit D2 of WR14 is set; otherwise they may be used as general-purpose outputs following the state programmed into
the DTR bit.
PCLK — Clock (input)
This is the master clock used to synchronize internal signals. PCLK is not required to
have any phase relationship with the master system clock.
RTSA, RTSB — Request to Send (outputs, active Low)
When the Request to Send (RTS) bit in WR5 is set, the RTS pin goes Low. When the
RTS bit is reset in the Asynchronous mode and the Auto Enable bit in WR3 (D5) is set,
the signal goes High after the transmitter is empty. In Synchronous mode or Asynchronous mode with the Auto Enable bit reset, the RTS pins strictly follow the state of the RTS
bits. Both pins can be used as general-purpose outputs. Request to send outputs are not
affected by the state of the Auto Enable (D5) bit in WR3 in synchronous mode.
RTxCA, RTxCB — Receive/Transmit Clocks (inputs, active Low)
The functions of these pins are under program control. In each channel, RTxC may supply the receive clock, the transmit clock, the clock for the baud rate generator, or the clock
for the digital phase-locked loop. These pins can also be programmed for use with the
respective SYNC pins as a crystal oscillator. The receive clock may be 1, 16, 32, or 64
times the data rate in Asynchronous mode.
If a clock is supplied on these pins in NRZI or NRZ mode serial data on the RxD pin will
be sampled on the rising edge of these pins. In FM mode, RxD is sampled on both clock
edges.
RxDA, RxDB — Receive Data (inputs, active High)
Serial data is received through these pins.
SYNCA, SYNCB — Synchronization (inputs/outputs, active Low)
These pins can act as either inputs, outputs, or as part of the crystal oscillator circuit. In
the Asynchronous mode (crystal oscillator option not selected), these pins are inputs similar to CTS and DCD. In this mode, transitions on these lines affect the state of the SYNC/
HUNT status bit in Read Register 0, but have no other function.
In External Synchronization mode, with the crystal oscillator not selected, these lines also
act as inputs. In this mode, SYNC must be driven Low two receive clock cycles after the
last bit of the sync character is received. Character assembly begins on the rising edge of
the receive clock immediately following the activation of SYNC.
In the Internal Synchronization mode (Monosync and Bisync), with the crystal oscillator
not selected, these pins act as outputs and are active only during the part of the receive
clock cycle in which sync characters are recognized. The sync condition is not latched, so
1–9
General InformationAMD
these outputs are active each time a sync character is recognized (regardless of character boundaries). In SDLC mode, these pins act as outputs and are valid on receipt of a
flag.
TRxCA, TRxCB — Transmit/Receive Clocks (inputs or outputs, active Low)
The functions of these pins are under program control. TRxC may supply the receive
clock or the transmit clock in the Input mode or supply the output of the digital phaselocked loop, the crystal oscillator, the baud rate generator, or the transmit clock in the output mode. If a clock is supplied on these pins in NRZI or NRZ mode serial data on the
TxD pin will be clocked out on the negative edge of these pins. In FM mode, TxD is
clocked on both clock edges.
TxDA, TxDB — Transmit Data (outputs, active High)
Serial data from the SCC is sent out these pins.
W/REQA, W/REQB — Wait/Request (outputs, open drain and switches from floating
to Low when programmed for Wait function, driven from High to Low when programmed for a Request function)
These dual-purpose outputs can be programmed as either transmit or receive request
lines for a DMA controller, or as Wait lines to synchronize the CPU to the SCC data rate.
The reset state is Wait.
The SCC internal structure provides all the interrupt and control logic necessary to interface with non-multiplexed buses. Interface logic is also provided to monitor modem or
peripheral control inputs or outputs. All of the control signals are general-purpose and can
be applied to various peripheral devices as well as used for modem control.
The center for data activity revolves around the internal read and write registers. The programming of these registers provides the SCC with functional “personality;” i.e. register
values can be assigned before or during program sequencing to determine how the SCC
will establish a given communication protocol.
This chapter covers the details of interfacing the SCC to a system. The general timing
requirements are described but the respective data sheets must be referred to for specific
A.C. numbers.
2.2REGISTERS
All modes of communication are established by the bit values of the write registers. As
data are received or transmitted, read register values may change. These changed values can promote software action or internal hardware action for further register changes.
The register set for each channel includes several write and read registers. Ten write registers are used for control, two for sync character generation, and two for the on-chip
baud rate generator. Two additional write registers are shared by both channels; one is
used as the interrupt vector and one as the master interrupt control. Both registers are
accessed and shared by either channel.
Six read registers indicate status functions; two are used by the baud rate generator, and
one by the receiver buffer. The remaining two read registers are shared by both channels;
one for interrupt pending bits and one for the interrupt vector. On the Am85C30 three additional registers are available. Refer to Chapter 4 and Chapter 6 for further details on
these registers.
Table 2–1 summarizes the assigned functions for each read and write register. Chapter 6
provides a detailed bit legend and description of each register.
2–3
System InterfaceAMD
Table 2–1. Register Set
Read Register Functions
RR0Transmit/Receive buffer status, and External status
RR1Special Receive Condition status, residue codes, error conditions
RR2Modified (Channel B only) interrupt vector and Unmodified interrupt
vector (Channel A only)
RR3Interrupt Pending bits (Channel A only)
*RR614-bit frame byte count (LSB)
*RR714-bit frame byte count (MSB), frame status
RR8Receive buffer
RR10Miscellaneous XMTR, RCVR status parameters
RR12Lower byte of baud rate generator time constant
RR13Upper byte of baud rate generator time constant
RR15External/Status interrupt control information
* Available only when Am85C30 is programmed in enhanced mode.
for various modes
WR1Interrupt conditions, Wait/DMA request control
WR2Interrupt vector (access through either channel)
WR3Receive/Control parameters, number of bits per character, Rx CRC
enable
WR4Transmit/Receive miscellaneous parameters and codes, clock rate,
number of sync characters, stop bits, parity
WR5Transmit parameters and control, number of Tx bits per character,
Tx CRC enable
WR6Sync character (1st byte) or SDLC address
WR7SYNC character (2nd byte) or SDLC flag
**WR7′SDLC options; auto flag, RTS, EOM reset, extended read, etc.
WR8Transmit buffer
WR9Master interrupt control and reset (accessed through either
channel), reset bits, control interrupt daisy chain
WR10Miscellaneous transmitter/receiver control bits, NRZI, NRZ, FM
encoding, CRC reset
WR11Clock mode control, source of Rx and Tx clocks
WR12Lower byte of baud rate generator time constant
WR13Upper byte of baud rate generator time constant
WR14Miscellaneous control bits: baud rate generator, Phase-Locked
Loop control, auto echo, local loopback
WR15External/Status interrupt control information-control external
conditions causing interrupts
** Only available in Am85C30.
2–4
System InterfaceAMD
2.3SYSTEM TIMINGS
Two control signals, RD and WR, are used by the SCC to time bus transactions. In addition, four other control signals, CE, D/C, A/B and INTACK are used to control the type of
bus transaction that will occur.
A bus transaction starts when the D/C and A/B pins are asserted prior to the negative
edge of the RD or WR signal. The coincidence of CE and RD or CE and WR latches the
state of D/C and A/B and starts the internal operation. The INTACK signal must have
been previously sampled High by a rising edge of PCLK for a read or write cycle to occur.
In addition to sampling INTACK, PCLK is used by the interrupt section to set the Interrupt
Pending (IP) bits.
The SCC generates internal control signals in response to a register access. Since RD
and WR have no phase relationship with PCLK, the circuitry generating these internal
control signals provide time for metastable conditions to disappear. This results in a recovery time related to PCLK. This recovery time applies only between transactions involving the Am8530H/Am85C30, and any intervening transactions are ignored. This recovery
time is four PCLK cycles, measured from the falling edge of RD or WR for a read or write
cycle of any SCC register on the Am8530H-step and 3 or 3.5 PCLK cycles for the
Am85C30.
Note that RD and the WR inputs are ignored until CE is activated. The falling edge of RD
and WR can be substituted for the falling edge of CE or vice versa for calculating proper
pulse width for RD or WR low. In other words, if CE goes active after RD or WR have
gone active for a read or a write cycle, respectively, CE must stay active as long as the
minimum pulse width for RD and WR.
2.3.1Read Cycle
The Read cycle timing for the SCC is shown in Figure 2–1. The A/B and D/C pins are
latched by the coincidence of RD and CE active. CE must remain Low and INTACK must
remain High throughout the cycle. The SCC bus drivers are enabled while CE and RD are
both Low. A read with D/C High does not disturb the state of the pointers and a read cycle
with D/C Low resets the pointers to zero after the internal operation is complete.
2.3.2Write Cycle
The Write cycle timing for the SCC is shown in Figure 2–2. The A/B and D/C pins are
latched by the coincidence of WR and CE active. CE must remain Low and INTACK must
remain High throughout the cycle. A write cycle with D/C High does not disturb the state
of the pointers and a write cycle with D/C Low resets the pointers to zero after the internal
operation is complete.
2.3.3Interrupt Acknowledge Cycle
The Interrupt Acknowledge cycle timing for the SCC is shown in Figure 2–3. The state of
INTACK is latched by the rising edge of PCLK. While INTACK is Low, the state of the
A/B, D/C, and WR pins is ignored by the SCC. Between the time INTACK is first sampled
Low and the time RD falls, the internal and external IEI/IEO daisy chains settle; this is
A.C. parameter #38 TdlAi (RD).
If there is an interrupt pending in the SCC, and IEI is High when RD falls, the Interrupt
Acknowledge cycle is intended for the SCC. This being the case, the SCC sets the appropriate Interrupt Under Service (IUS) latch, and places an interrupt vector on D0–D7. If the
falling edge of RD sets an IUS bit in the SCC, the INT pin goes inactive in response to the
falling edge. Note that there should be only one RD per Acknowledge cycle.
Another important fact is that the IP bits in the SCC are updated by a clock half the frequency of PCLK, and this clock is stopped while the pointers point to RR2 and RR3; thus
the interrupt requests will be delayed if the pointers are left pointing at these registers.
2–5
System InterfaceAMD
2.4REGISTER ACCESS
The registers in the SCC are accessed in a two-step process, using a Register Pointer to
perform the addressing. To access a particular register, the pointer bits must be set by
writing to WR0. The pointer bits may be written in either channel because only one set
exists in the SCC. After the pointer bits are set, the next read or write cycle of the SCC
having D/C Low will access the desired register. At the conclusion of this read or write
cycle, the pointer bits are automatically reset to ‘0’, so that the next control write will be to
the pointers in WR0.
A read from RR8 (the Receive Buffer) or a write to WR8 (Transmit Buffer) may either be
done in this fashion or by accessing the SCC having the D/C pin High. A read or write
with D/C High accesses the receive or transmit buffers directly, and independently, of the
state of the pointer bits. This allows single-cycle access to the receive or transmit buffers
and does not disturb the pointer bits. The fact that the pointer bits are reset to ‘0’, unless
explicitly set otherwise, means that WR0 and RR0 may also be accessed in a single cycle. That is, it is not necessary to write the pointer bits with ‘0’ before accessing WR0 or
RR0. There are three pointer bits in WR0, and these allow access to the registers with
addresses 0 through 7. Note that a command may be written to WR0 at the same time
that the pointer bits are written. To access the registers with addresses 8 through 15, a
special command (point high in WR0) must accompany the pointer bits. This precludes
concurrently issuing a command (point high in WR0) when pointing to these registers.
The SCC register map is shown in Table 2–2. PNT
D0 in WR0, respectively.
If for some reason the state of the pointer bits is unknown, they may be reset to ‘0’ by performing a read cycle with the D/C pin held Low. Once the pointer bits have been set, the
desired channel is selected by the state of the A/B pin during the actual read or write of
the desired register.
, PNT1 and PNT0 are bits D2, D1 and
2
A/B, D/C
INTACK
RD
D0- D
CE
Address Valid
7
Data Valid
10216A-009A
Figure 2–1. SCC Read Cycle
2–6
System InterfaceAMD
D
0
PCLK
– D
A/B, D/C
INTACK
WR
D0- D
7
CE
Address Valid
7
Data Valid
10216A-010A
Figure 2–2. SCC Write Cycle
Vector
RD
INTACK
IEI
IEO
INT
Figure 2–3. Interrupt Acknowledge Cycle
2.5Am85C30 Enhancement Register Access
SDLC/HDLC enhancements on the Am85C30 are enabled or disabled via bits D2 and D0
in WR15. Bit D2 determines whether or not the 10x19-bit SDLC/HDLC frame status FIFO
is enabled while bit D0 determines whether or not other SDLC/HDLC mode enhancements are enabled via WR7’. Table 2–3 shows what functions on the Am85C30 are enabled when these bits are set.
When bit D2 of WR15 is set to ‘1’, two additional registers (RR6 and RR7) per channel
specific to the 10x19-bit frame status FIFO are made available. The Am85C30 register
map when this function is enabled is shown in Table 2–4.
Bit D0 of WR15 determines whether or not other enhancements pertinent only to SDLC/
HDLC Mode operation are available for programming via WR7′ as shown below. Write
Register 7 prime (WR7′ ) can be written to when bit D0 of WR15 is set to ‘1’. When this
bit is set, writing to WR7 (flag register) actually writes to WR7′. If bit D6 of this register is
set to ‘1’, previously unreadable registers WR3, WR4, WR5, WR10 are readable by the
processor. In addition, WR7′ is also readable by having this bit set. WR3 is read when a
bogus RR9 register is accessed during a read cycle, WR10 is read by accessing RR11,
and WR7′ is accessed by executing a read to RR14. The Am85C30 register map with bit
D0 of WR15 and bit D6 of WR7′ set is shown in Table 2–5.
The SCC may be reset by either hardware or software. A hardware reset occurs when
RD and WR are both Low, simultaneously regardless of the state of the CE input, which
is normally an illegal condition. As long as both RD and WR are Low, the SCC recognizes
the reset condition. Once this condition is removed, however, the reset condition is asserted internally for an additional four to five PCLK cycles. During this time, any attempt
to access the SCC will be ignored. However a hardware reset does not clear the receive
FIFO, therefore it may be necessary to perform a few dummy reads immediately after a
2–12
Loading...
+ 164 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.