ZILOG'S PRODUCTS ARE NOT AUTHORIZED FOR USE AS CRITICAL COMPONENTS IN LIFE
SUPPORT DEVICES OR SYSTEMS WITHOUT THE EXPRESS PRIOR WRITTEN APPROVAL OF
THE PRESIDENT AND GENERAL COUNSEL OF ZILOG CORPORATION.
As used herein
Life support devices or systems are devices which (a) are intended for surgical implant into the body, or (b)
support or sustain life and whose failure to perform when properly used in accordance with instructions for
use provided in the labeling can be reasonably expected to result in a significant injury to the user. A
critical component is any component in a life support device or system whose failure to perform can be
reasonably expected to cause the failure of the life support device or system or to affect its safety or
effectiveness.
described is intended to suggest possible uses and may be superseded. ZILOG,
ing the devices,
INC. DOES NOT ASSUME LIABILITY FOR OR PROVIDE A REPRESENTATION OF ACCURACY
OF THE INFORMATION, DEVICES, OR TECHNOLOGY DESCRIBED IN THIS DOCUMENT.
ZILOG ALSO DOES NOT ASSUME LIABILITY FOR INTELLECTUAL PROPERTY
INFRINGEMENT RELATED IN ANY MANNER TO USE OF INFORMATION, DEVICES, OR
TECHNOLOGY DESCRIBED HEREIN OR OTHERWISE. The information contained within this
document has been verified according to the general principles of electrical and mechanical engineering.
Z8, Z80 are registered trademarks of Zilog, Inc. All other product or service names are the property of their
respective owners.
UM010903-0515
Revision History
Each instance in Revision History reflects a change to this document from its previous
revision. For more details, refer to the corresponding pages and appropriate links in the
table below.
Revision
Date
May 201503Updated /SYNCA and /SYNCB
June 200902Added Low Voltage ESCC informationAll
May 200901Original DocumentAll
LevelDescriptionPage No
Updated /RTxCA, /RTxCB
Updated Data Encoding Method Figure
Zilog’s SCC Serial Communication Controller is a dual channel, multiprotocol data communication peripheral designed for use with 8- and 16-bit microprocessors. The SCC functions as a serialto-parallel, parallel-to-serial converter/controller. The SCC can be software-configured to satisfy a
wide variety of serial communications applications. The device contains a variety of new, sophisticated internal functions including on-chip baud rate generators, digital phase-lock loops, and
crystal oscillators, which dramatically reduce the need for external logic.
The SCC handles asynchronous formats, synchronous byte-oriented protocols such as IBM
Bisync, and synchronous bit-oriented protocols such as HDLC and IBM SDLC. This versatile
device supports virtually any serial data transfer application (telecommunication, LAN, etc.).
SCC/ESCC
User Manual
1
The device can generate and check CRC codes in any synchronous mode and can be programmed
to check data integrity in various modes. The SCC also has facilities for modem control 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 14 Write registers and 7 Read registers per channel (the number of the registers varies depending on the version), the user can configure the SCC to handle all synchronous formats
regardless of data size, number of stop bits, or parity requirements.
Within each operating mode, the SCC also allows for protocol variations by checking odd or even
parity bits, character insertion or deletion, CRC generation, checking break and abort generation
and detection, and many other protocol-dependent features.
The SCC/ESCC family consists of the following eight devices;
Z-BusUniversal-Bus
NMOSZ8030Z8530
CMOSZ80C30Z85C30
ESCCZ80230Z85230/Z8523L
EMSCCZ85233
Low Voltage ESCCZ8523L
As a convention, use the following words to distinguish the devices throughout this document.
SCC: Description applies to all versions.
UM010903-0515General Description
SCC/ESCC
User Manual
NMOS: Description applies to NMOS version (Z8030/Z8530)
CMOS: Description applies to CMOS version (Z80C30/Z85C30)
ESCC: Description applies to ESCC (Z80230/Z85230/Z8523L)
EMSCC: Description applies to EMSCC (Z85233)
Z80X30: Description applies to Z-Bus version of the device (Z8030/Z80C30/Z80230)
Z85X3X: Description applies to Universal version of the device (Z8530/Z85C30/Z85230/
Z8523L/Z85233)
The Z-Bus version has a multiplexed bus interface and is directly compatible with the Z8000,
Z16C00, and 80x86 CPUs. The Universal version has a non-multiplexed bus interface and easily
interfaces with virtually any CPU, including the 8080, Z80
®
, 68X00.
2
SCC’s Capabilities
The NMOS version of the SCC is Zilog’s original device. The design is based on the Z80 SIO
architecture. If you are familiar with the Z80 SIO, the SCC can be treated as an SIO with support
circuitry such as DPLL, BRG, etc. Its features include:
•
Two independent full-duplex channels
•
Synchronous/Isosynchronous data rates:
–Up to 1/4 of the PCLK using external clock source
–Up to 5 Mbits/sec at 20 MHz PCLK (ESCC)
–Up to 4 Mbits/sec at 16 MHz PCLK (CMOS)
–Up to 2 Mbits/sec at 8 MHz PCLK (NMOS)
–Up to 1/8 of the PCLK (up to 1/16 on NMOS) using FM encoding with DPLL
–Up to 1/16 of the PCLK (up to 1/32 on NMOS) using NRZI encoding with DPLL
•
Asynchronous Capabilities
–5, 6, 7 or 8 bits/character (capable of handling 4 bits/character or less.)
–1, 1.5, or 2 stop bits
–Odd or even parity
–Times 1, 16, 32 or 64 clock modes
–Break generation and detection
–Parity, overrun and framing error detection
•
Byte oriented synchronous capabilities:
–Internal or external character synchronization
–One or two sync characters (6 or 8 bits/sync character) in separate registers
–SDLC loop mode with EOP recognition/loop entry and exit
•
Receiver FIFO
ESCC: 8 bytes deep
NMOS/CMOS: 3 bytes deep
SCC/ESCC
User Manual
3
•
Transmitter FIFO
ESCC: 4 bytes deep
NMOS/CMOS: 1 byte deep
•
NRZ, NRZI or FM encoding/decoding. Manchester code decoding (encoding with external logic)
•
Baud Rate Generator in each channel
•
Digital Phase Locked Loop (DPLL) for clock recovery
•
Crystal oscillator
The CMOS version of the SCC is 100% plug in compatible to the NMOS versions of the device,
while providing the following additional features:
•
Status FIFO
•
Software interrupt acknowledge feature
•
Enhanced timing specifications
•
Faster system clock speed
•
Designed in Zilog’s Superintegration™ core format
•
When the DPLL clock source is external, it can be up to 2x the PCLK, where NMOS
allows up to PCLK (32.3 MHz max with 16/20 MHz version).
The Z85C30 CMOS SCC has added new features, while maintaining 100% hardware/software
compatibility. It has the following new features:
•
New programmable WR7' (write register 7 prime) to enable new features.
•
Improvements to support SDLC mode of synchronous communication:
UM010903-0515General Description
–Improved functionality to ease sending back-to back frames
–Automatic SDLC opening Flag transmission*
–Automatic Tx Underrun/EOM Latch reset in SDLC mode*
–Automatic /RTS deactivation*
–TxD pin forced “H” in SDLC NRZI mode after closing flag*
–Complete CRC reception*
–Improved response to Abort sequence in status FIFO
–Automatic Tx CRC generator preset/reset
–Extended read for write registers*
–Write data setup timing improvement
•
Improved AC timing:
–Three to 3.5 PCLK access recovery time.
–Programmable /DTR//REQ timing*
–Elimination of write data to falling edge of /WR setup time requirement
–Reduced /INT timing
SCC/ESCC
User Manual
4
•
Other features include:
–Extended read function to read back the written value to the write registers*
–Latching RR0 during read
–RR0, bit D7 and RR10, bit D6 now has reset default value
Some of the features listed above are available by default, and some of them (features with “*”)
are disabled on default.
ESCC (Enhanced SCC) is pin and software compatible to the CMOS version, with the following
additional enhancements.
•
Deeper transmit FIFO (4 bytes)
•
Deeper receive FIFO (8 bytes)
•
Programmable FIFO interrupt and DMA request level
•
Seven enhancements to improve SDLC link layer supports:
–Automatic transmission of the opening flag
–Automatic reset of Tx Underrun/EOM latch
–Deactivation of /RTS pin after closing flag
–Automatic CRC generator preset
–Complete CRC reception
–TxD pin automatically forced high with NRZI encoding when using mark idle
–Status FIFO handles better frames with an ABORT
UM010903-0515General Description
–Receive FIFO automatically unlocked for special receive interrupts when using
the SDLC status FIFO
•
Delayed bus latching for easier microprocessor interface
•
New programmable features added with Write Register 7' (WR seven prime)
•
Write registers 3, 4, 5 and 10 are now readable
•
Read register 0 latched during access
•
DPLL counter output available as jitter-free transmitter clock source
•
Enhanced /DTR, /RTS deactivation timing
Block Diagram
SCC/ESCC
User Manual
5
Figure on page 6 displays the block diagram of the SCC. Note that the depth of the FIFO differs
depending on the version. The 10X19 SDLC Frame Status FIFO is not available on the NMOS
version of the SCC. Detailed internal signal path will be discussed in Data Communication Modes
on page 88.
UM010903-0515General Description
SCC/ESCC
Transmit Lo
g
Channel
A
Receive and Transmit Clock Mul
Transmit FIFO
NMOS/CMOS: 1 b
ESCC: 4 Bytes
Transmit M
U
Data Encoding & C
R
Generation
Digital
Phase-Lock
e
Loop
Baud Rat
Generat
o
Crystal
Oscillat
o
Amplifi
e
Modem/Control L
o
Receive M
U
CRC Checke
Data Decode
&
Sync Charac
t
Detection
Rec. Status
*
FIFO
Rec. Data*
FIFO
SDLC Frame Status F
10 x 19
Receive Lo
g
TxD
A
/TRxC
A
/RTxC
A
/CTS
A
/DCD
A
/SYNC
A
/RTS
A
/DTRA//RE
Q
RxD
A
Intern
a
Contro
Logic
Channel
A
Register
Channel
B
Register
Interru
p
Control
Logic
CPU & DM
A
Bus Interfa
c
Databu
Contr
o
Channel
A
Channel
B
/IN
/INTA
C
IE
IE
O
Interr
u
Contr
o
Exploded Vi
e
** See N
o
* NMOS/CMOS: 3 bytes each
ESCC: 8 bytes
** Not Available on NMOS
User Manual
6
UM010903-0515General Description
SCC Block Diagram
SCC/ESCC
User Manual
Pin Descriptions
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). Figure on page 8 and Figure on page 9 display the pins in each functional
group for both Z80X30 and Z85X30. Notice the pin functions unique to each bus interface version
in the Address/Data group, Bus Timing and Reset group, and Control groups.
The Address/Data group consists of the bidirectional lines used to transfer data between the CPU
and the SCC (Addresses in the Z80X30 are latched by /AS). The direction of these lines depends
on whether the operation is a Read or Write.
7
The timing and control groups designate the type of transaction to occur and when it will occur.
The interrupt group provides inputs and outputs to conform to the Z-Bus
dling 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.
®
specifications for han-
UM010903-0515General Description
SCC/ESCC
D7
D6
D5
D4
D3
D2
D1
D0
/RD
/WR
A//B
/CE
D//C
/INT
/INTACK
IEI
IEO
TxDA
RxDA
/TRxCA
/RTxCA
/SYNCA
/W//REQ
A
/DTR//REQA
/RTS
A
/CTS
A
/DCDA
TxDB
RxDB
/TRxCB
/RTxCB
/SYNCB
Serial
Data
Channel
Clocks
Channel
Controls
for Modem,
DMA and
Other
/W//REQB
/DTR//REQ
B
/RTS
B
/CTS
B
/DCDB
Interrup
t
Data Bus
Serial
Data
Channel
Clocks
Control
Bus Timing
and Reset
Channel
Controls
for Modem,
DMA and
Other
Z85X30
User Manual
The signal functionality and pin assignments (Figure on page 10 through Figure on page 13) stay
constant within the same bus interface group (i.e., Z80X30, Z85X30), except for some timing and/
or DC specification differences. For details, refer the individual product specifications.
8
UM010903-0515General Description
Z85X30 Pin Functions
Pin Descriptions
AD7
AD6
AD5
AD4
AD3
AD2
AD1
AD0
/AS
/DS
R//W
CS1
/CS0
/INT
/INTACK
IEI
IEO
TxDA
RxDA
/TRxCA
/RTxCA
/SYNCA
/W//REQA
/DTR//REQA
/RTSA
/CTSA
/DCDA
TxDB
RxDB
/TRxCB
/RTxCB
/SYNCB
Serial
Data
Channel
Clocks
Channel
Controls
for Modem,
DMA and
Other
/W//REQB
/DTR//REQB
/RTSB
/CTSB
/DCDB
Interrupt
Address
Data Bus
Serial
Data
Channel
Clocks
Control
Bus Timing
and Reset
Channel
Controls
for Modem,
DMA and
Other
Z80X30
Channel A
Channel B
SCC/ESCC
User Manual
9
Z80x30 Pin Functions
UM010903-0515General Description
SCC/ESCC
1
2
9
3
4
5
6
7
8
4
0
39
3
8
3
7
3
6
35
3
4
3
3
32
D0
D2
D//C
D4
D6
/RD
/WR
A//B
/CE
D1
31
3
0
29
2
8
2
7
14
10
11
12
13
GND
/W//REQB
/SYNCB
/RTxCB
RxDB
D3
D5
D7
/INT
IEO
IEI
/INTACK
VCC
/W//REQA
/SYNCA
/RTxCA
RxDA
/TRxCA
TxDA
/DTR//REQA
/RTSA
/CTSA
/DCDA
PCL
K
15
16
17
18
19
20
/TRxCB
TxDB
/DTR//REQB
RTSB
/CTSB
/DCDB
2
6
25
2
4
2
3
22
21
Z85X30
User Manual
10
UM010903-0515General Description
Z85X30 DIP Pin Assignments
SCC/ESCC
User Manual
11
Z85X30 PLCC Pin Assignments
UM010903-0515General Description
SCC/ESCC
1
2
9
3
4
5
6
7
8
40
39
38
37
36
35
34
33
32
AD0
AD2
CS1
AD4
AD6
/DS
/AS
R//W
/CS0
AD1
31
30
29
28
27
14
10
11
12
13
GND
/W//REQB
/SYNCB
/RTxCB
RxDB
AD3
AD5
AD7
/INT
IEO
IEI
/INTACK
VCC
/W//REQA
/SYNCA
/RTxCA
RxDA
/TRxCA
TxDA
/DTR//REQA
/RTSA
/CTSA
/DCDA
PCL
K
15
16
17
18
19
20
/TRxCB
TxDB
/DTR//REQB
RTSB
/CTSB
/DCDB
26
25
24
23
22
21
Z80X30
User Manual
12
Z80X30 DIP Pin Assignments
UM010903-0515General Description
SCC/ESCC
1
User Manual
13
Z80X30 PLCC Pin Assignments
Pins Common to both Z85X30 and Z80X30
/CTSA, /CTSB. Clear To Send (inputs, active Low). These pins function as transmitter enables if
they are programmed for Auto Enable (WR3, D5=1). A Low on the inputs enables the respective
transmitters. If not programmed as Auto Enable, they may be used as general-purpose inputs. Both
inputs are Schmitt-trigger buffered to accommodate slow rise-time inputs. The SCC detects pulses
on these inputs and can interrupt the CPU on both logic level transitions.
/DCDA, /DCDB. Data Carrier Detect (inputs, active Low). These pins function as receiver
enables if they are programmed for Auto Enable (WR3, D5=1); otherwise, they are used as general-purpose input pins. Both pins are Schmitt-trigger buffered to accommodate slow rise time signals. The SCC detects pulses on these pins and can interrupt the CPU on both logic level
transitions.
/RTSA, /RTSB. Request To Send (outputs, active Low). The /RTS pins can be used as general-
purpose outputs or with the Auto Enable feature. When used with Auto Enable ON (WR3, D5=1)
in asynchronous mode, the /RTS pin goes High after the transmitter is empty. When Auto Enable
UM010903-0515General Description
SCC/ESCC
User Manual
is OFF, the /RTS pins are used as general-purpose outputs, and, they strictly follow the inverse
state of WR5, bit D1.
ESCC and 85C30:
In SDLC mode, the /RTS pins can be programmed to be deasserted when the closing flag of the
message clears the TxD pin, if WR7' D2 is set.
/SYNCA, /SYNCB. Synchronization (inputs or outputs, active Low). These pins can act either as
inputs, outputs, or part of the crystal oscillator circuit. In the Asynchronous Receive 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 Synchronous/Hunt status bits in Read Register 0 but have
no other function. With the crystal oscillator option selected, these /SYNCA, /SYNCB pins
become the oscillator Xout pins and /RTxCA, /RTxCB pins
become the Xin pins, respectively.
14
In External Synchronization mode, with the crystal oscillator not sele
cted, these lines also act as
inputs. In this mode, /SYNC is driven Low to receive clock cycles after the last bit in the synchronous character is received. Character assembly begins on the rising edge of the receive clock
immediately preceding 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 the synchronous condition is not latched. These outputs are active each time a synchronization pattern is recognized (regardless of character boundaries). In SDLC mode, the pins act as outputs and are valid on receipt of a flag. The /SYNC pins switch from input to output when
monosync, bisync, or SDLC is programmed in WR4 and sync modes are enabled.
/DTR//REQA, /DTR//REQB. Data Terminal Ready/Request (outputs, active Low). These pins
are programmable (WR14, D2) to serve either as general-purpose outputs or as DMA Request
lines. When programmed for DTR function (WR14 D2=0), these outputs follow the state programmed into the DTR bit of Write Register 5 (WR5 D7). When programmed for Ready mode,
these pins serve as DMA Requests for the transmitter.
ESCC and 85C30:
When used as DMA request lines (WR14, D2=1), the timing for the deactivation request can be
programmed in the added register, Write Register 7' (WR7') bit D4. If this bit is set, the /DTR//
REQ pin is deactivated with the same timing as the /W/REQ pin. If WR7' D4 is reset, the deactivation timing of /DTR//REQ pin is four clock cycles, the same as in the Z85C30.
/W//REQA, /W//REQB. Wait/Request (outputs, open-drain when programmed for Wait function,
driven High or Low when programmed for Ready function). These dual-purpose outputs may be
programmed as Request lines for a DMA controller or as Wait lines to synchronize the CPU to the
SCC data rate. The reset state is Wait.
RxDA, RxDB. Receive Data (inputs, active High). These input signals receive serial data at stan-
dard TTL levels.
/RTxCA, /R TxCB. Receive/Transmit Clocks (inputs, active Low). These pins can be programmed
to several modes of operation. In each channel, /RTxC may supply the receive clock, the transmit
UM010903-0515General Description
SCC/ESCC
User Manual
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 modes. With the crystal
oscillator option selected, these /RTxCA, /RTxCB pins become the oscillator Xin pins and
/SYNCA, /SYNCB pins become the Xout pin
s, respectively.
15
TxDA, TxDB. Transmit
standard TTL levels.
/TRxCA, /TRxCB. Transmit/Receive Clocks (inputs or outputs, active Low). These pins can be
programmed in several different modes of operation. /TRxC may supply the receive clock or the
transmit clock in the input mode or supply the output of the Transmit Clock Counter (which parallels the Digital Phase-Locked Loop), the crystal oscillator, the baud rate generator, or the transmit
clock in the output mode.
PCLK. Clock (input). This is the master SCC clock used to synchronize internal signals. PCLK is
a TTL level signal. PCLK is not required to have any phase relationship with the master system
clock.
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 IEI indicates that no other higher priority device has an interrupt under service 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 the SCC interrupt or the SCC 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.
/INT. Interrupt (output, open drain, active Low). This signal is activated when the SCC requests an
interrupt. Note that /INT is an open-drain output.
/INTACK. Interrupt Acknowledge (input, active Low). This is a strobe which indicates that an
interrupt acknowledge cycle is in progress. During this cycle, the SCC interrupt daisy chain is
resolved. The device is capable of returning an interrupt vector that may be encoded with the type
of interrupt pending. During the acknowledge cycle, if IEI is high, the SCC places the interrupt
vector on the databus when /RD goes active. /INTACK is latched by the rising edge of PCLK.
Data (outputs, active High). These output signals transmit serial data at
Pin Descriptions, (Z85X30 Only)
D7-D0. Data bus (bidirectional, tri-state). These lines carry data and commands to and from the
Z85X30.
/CE. Chip Enable (input, active Low). This signal selects the Z85X30 for a read or write opera-
tion.
/RD. Read (input, active Low). This signal indicates a read operation and when the Z85X30 is
selected, enables the Z85X30’s bus drivers. During the Interrupt Acknowledge cycle, /RD gates
the interrupt vector onto the bus if the Z85X30 is the highest priority device requesting an interrupt.
UM010903-0515General Description
SCC/ESCC
User Manual
/WR. Write (input, active Low). When the Z85X30 is selected, this signal indicates a write opera-
tion. This indicates that the CPU wants to write command bytes or data to the Z85X30 write registers.
A//B. Channel A/Channel B (input). This signal selects the channel in which the read or write
operation occurs. High selects channel A and Low selects channel B.
D//C. Data/Control Select (input). This signal defines the type of information transferred to or
from the Z85X30. High means data is being transferred and Low indicates a command.
Pin Descriptions, (Z80X30 Only)
AD7-AD0. Address/Data Bus (bidirectional, active High, tri-state). These multiplexed lines carry
register addresses to the Z80X30 as well as data or control information to and from the Z80X30.
R//W. Read//Write (input, read active High). This signal specifies whether the operation to be per-
formed is a read or a write.
16
/CS0. Chip Select 0 (input, active Low). This signal is latched concurrently with the addresses on
AD7-AD0 and must be active for the intended bus transaction to occur.
CS1. Chip Select 1 (input, active High). This second select signal must also be active before the
intended bus transaction can occur. CS1 must remain active throughout the transaction.
/DS. Data Strobe (input, active Low). This signal provides timing for the transfer of data into and
out of the Z80X30. If /AS and /DS are both Low, this is interpreted as a reset.
/AS. Address Strobe (input, active Low). Address on AD7AD0 are latched by the rising edge of
this signal.
UM010903-0515General Description
Interfacing the SCC/ESCC
Introduction
This chapter covers the system interface requirements with the SCC. Timing requirements for both
devices are described in a general sense here, and the user should refer to the SCC Product Specification for detailed AC/DC parametric requirements.
The ESCC and the 85C30 have an additional register, Write Register Seven Prime (WR7'). Its features include the ability to read WR3, WR4, WR5, WR7', and WR10. Both the ESCC and the
85C30 have the ability to deassert the /DTR//REG pin quickly to ease DMA interface design.
Additionally, the Z85230/L features a relaxed requirement for a valid data bus when the /WR pin
goes Low. The effects of the deeper data FIFOs should be considered when writing the interrupt
service routines. The user should read the sections which follow for details on these features.
SCC/ESCC
User Manual
17
Z80X30 Interface Timing
The Z-Bus compatible SCC is suited for system applications with multiplexed address/data buses
similar to the Z8
Two control signals, /AS and /DS, are used by the Z80X30 to time bus transactions. In addition,
four other control signals (/CS0, CS1, R//W, and /INTACK) are used to control the type of bus
transaction that occurs. A bus transaction is initiated by /AS; the rising edge latches the register
address on the Address/Data bus and the state of /INTACK and /CS0.
In addition to timing bus transactions, /AS is used by the interrupt section to set the Interrupt Pending (IP) bits.
Because of this, /AS must be kept cycling for the interrupt section to function properly.
The Z80X30 generates internal control signals in response to a register access. Since /AS and /DS
have no phase relationship with PCLK, the circuit generating these internal control signals provides time for metastable conditions to disappear. This results in a recovery time related to PCLK.
This recovery time applies only to transactions involving the Z80X30, and any intervening transactions are ignored. This recovery time is four PCLK cycles, measured from the falling edge of /
DS of one access to the SCC, to the falling edge of /DS for a subsequent access.
Z80X30 Read Cycle Timing
The read cycle timing for the Z80X30 is displayed in Figure . R//W must be High before /DS falls
to indicate a read The register address on AD7-AD0, as well as the state of cycle. The Z80X30
data bus drivers are enabled while CS1 /CS0 and /INTACK, are latched by the rising edge of /AS.
is High and /DS is Low.
®
, Z8000, and Z280.
UM010903-0515Interfacing the SCC/ESCC
SCC/ESCC
/AS
/CS0
/INTACK
AD7 - AD0
R//W
CS1
/DS
AddressData Valid
User Manual
18
Z80X30 Read Cycle
Z80X30 Write Cycle Timing
The write cycle timing for the Z80X30 is displayed in Figure on page 19. The register address on
AD7-AD0, as well as the state of /CS0 and /INTACK, are latched by the rising edge of /AS. R//W
must be Low when /DS falls to indicate a write cycle. The leading edge of the coincidence of CS1
High and /DS Low latches the write data on AD7-AD0, as well as the state of R//W.
UM010903-0515Interfacing the SCC/ESCC
SCC/ESCC
AddressData Valid
/AS
/CS0
/INTACK
AD7 - AD0
R//W
CS1
/DS
User Manual
19
Z80X30 Write Cycle
Z80X30 Interrupt Acknowledge Cycle Timing
The interrupt acknowledge cycle timing for the Z80X30 is displayed in Figure on page 20. The
address on AD7-AD0 and the state of /CS0 and /INTACK are latched by the rising edge of /AS.
However, if /INTACK is Low, the address, /CS0, CS1 and R//W are ignored for the duration of the
interrupt acknowledge cycle.
UM010903-0515Interfacing the SCC/ESCC
SCC/ESCC
/AS
/CS0
/DS
/INTACK
IEI
IEO
Vector
/INT
AD7 - AD0
Note:
User Manual
20
Z80X30 Interrupt Acknowledge Cycle
The Z80X30 samples the state of /INTACK on the rising edge of /AS, and AC parameters #7 and
#8 specify the setup and hold-time requirements. Between the rising edge of /AS and the falling
edge of /DS, the internal and external daisy chains settle (AC parameter #29). A system with no
external daisy chain should provide the time specified in spec #29 to settle the interrupt daisychain priority internal to the SCC. Systems using an external daisy chain should refer to Note 5
referenced in the Z80X30 Read/Write & Interrupt Acknowledge Timing for the time required to
settle the daisy chain.
/INTACK is sampled on the rising edge of /AS. If it does not meet the setup time to the
first rising edge of /AS of the interrupt acknowledge cycle, it is latched on the next ris-
UM010903-0515Interfacing the SCC/ESCC
ing edge of /AS. Therefore, if /INTACK is asynchronous to /AS, it may be necessary to
add a PCLK cycle to the calculation for /INTACK to /RD delay time.
SCC/ESCC
User Manual
If there is an interrupt pending in the SCC, and IEI is High when /DS falls, the acknowledge cycle was intended for the SCC. This being the case, the Z80X30 sets the Interrupt-UnderService (IUS) latch for the highest priority pending interrupt, as well as placing an interrupt vector
on AD7-AD0. The placing of a vector on the bus can be disabled by setting WR9, D1=1. The /INT
pin also goes inactive in response to the falling edge of /DS. Note that there should be only one /
DS per acknowledge cycle. Another important fact is that the IP bits in the Z80X30 are updated by
/AS, which may delay interrupt requests if the processor does not supply /AS strobes during the
time between accesses of the Z80X30.
Z80X30 Register Access
The registers in the Z80X30 are addressed via the address on AD7-AD0 and are latched by the rising edge of /AS. The Shift Right/Shift Left bit in the Channel B WR0 controls which bits are
decoded to form the register address. It is placed in this register to simplify programming when the
current state of the Shift Right/Shift Left bit is not known.
21
A hardware reset forces Shift Left mode where the address is decoded from AD5-AD1. In Shift
Right mode, the address is decoded from AD4-AD0. The Shift Right/Shift Left bit is written via a
command to make the software writing to WR0 independent of the state of the Shift Right/Shift
Left bit.
While in the Shift Left mode, the register address is placed on AD4-AD1 and the Channel Select
bit, A/B, is decoded from AD5. The register map for this case is listed in Table on page 21. In
Shift Right mode, the register address is again placed on AD4-AD1 but the channel select A/B is
decoded from AD0. The register map for this case is listed in Tabl e on page 23.
Because the Z80X30 does not contain 16 read registers, the decoding of the read registers is not
complete; this is listed in Tabl e on page 21 and Table on page 23 by parentheses around the register name. These addresses may also be used to access the read registers. Also, note that the
Z80X30 contains only one WR2 and WR9; these registers may be written from either channel.
Shift Left Mode is used when Channel A and B are to be programmed differently. This allows the
software to sequence through the registers of one channel at a time. The Shift Right Mode is used
when the channels are programmed the same. By incrementing the address, the user can program
the same data value into both the Channel A and Channel B register.