IEBus (Inter Equipment Bus) PROTOCOL CONTROL LSI
DESCRIPTION
The µPD6708 is a peripheral LSI for microcontrollers that controls the protocol of the IEBus.
This LSI processes the protocol of the IEBus. Because it is provided with a transmit/receive buffer, the microcontroller
can concentrate on the application processing of the IEBus. Because the µPD6708 also contains an IEBus driver/receiver,
it can be directly connected to the bus.
FEATURES
• Protocol control of IEBus
• Multi-master system
• Broadcast communication function (communication between one unit and multiple units)
• Choice of three modes with different transmission speeds
SCK: Serial clock input
SI: Serial data input
SO: Serial data output
IRQ: Interrupt request output
R/W: Read/write switchover input
XI, XO: System clock
GND: Ground
BUS–, BUS+: IEBus input/output
AVDD: IEBus analog power supply (connected to VDD pin)
C/D: Command/data switchover input
CS: Chip select input
RESET: Reset input
TEST: Test input (connected to VDD pin)
2.2IEBus Communication Protocol ...................................................................................................................... 7
2.4Transfer Data (Contents of Data Field)......................................................................................................... 16
2.5Bit Format ......................................................................................................................................................... 19
8.2Interrupt Service Routine ................................................................................................................................49
1SCKInputInput for serial clock used to interface with microcontroller.CMOS inputInput
2SIInputInput for serial data used to interface with microcontroller.CMOS inputInput
3SOOutputOutput for serial data used to interface with microcontroller. CMOS output High level
4IRQOutputOutput used by interrupt request signals generated byCMOS output Low level
communication and command execution results.
Used as operation start request signal to microcontroller.
The interrupt request signal is output for 8 µs or longer
at high level.
5R/WInputInput for switching serial interface read/write mode.CMOS inputInput
When high, it is in the read mode. When low, it is in the
write mode.
When this pin is low and C/D pin high, the read and write
modes can be switched by commands input from the serial
interface.
6XI––Connection pins for system clock resonator.––(Oscillation
7XOUse a 12- or 12.58-MHz crystal, or ceramic resonator.continues)
Frequency precision depends on the communication mode
used.
Mode 0 : ±1.5 %
Mode 1 : ±1.5 %
Mode 2 : ±0.5 %
8GND––Ground––––
9BUS–Input/outputInput/output for IEBus.––High
10BUS+impedance
11AVDD––
12C/DInputInput used to switch between processing data input to theCMOS inputInput
13CSInputChip select input.CMOS inputInput
IEBus driver/receiver analog power supply. Connect to VDD.
serial interface as commands or data.
When set to high, data is processed as commands; when
low, data is processed as data.
When this pin is high and R/W pin low, the read and write
modes can be switched by commands input from the serial
interface.
When low, serial interface input is enabled.
When high, serial clock (SCK) input is disabled, SO pin
becomes high impedance, and the serial clock counter is
reset.
The status of CS pin is not affected by IEBus transmit and
receive operations.
––––
14RESETInputSystem reset signal input pin.CMOS inputInput
Low input effects a reset.
Always input the low signal for 6 µs or longer after turning
on the power.
15TESTInputAlways connect this pin to the VDD.CMOS input––
16VDD––Positive power supply input. Apply a voltage of 5 V ±10 %.––––
5
µ
PD6708
2. IEBus OPERATION
2.1Operation Overview
★
The
µ
PD6708 is an IEBus interface CMOS LSI device.
The IEBus is a bus for a small-scale digital data transfer system designed to transfer data between electronic devices.
The µPD6708 is connected to a microcontroller incorporated in electronic equipment with a serial interface (SCK, SO,
SI pins). The data and commands required to transfer data with the host controller (microcontroller) are set via this serial
interface.
µ
When the host controller transmits data to the
(BUS+ and BUS–). Data received from the BUS pins can be read by the host controller via the serial interface.
PD6708 via the serial interface, signals are output from the BUS pins
6
µ
PD6708
2.2 IEBus Communication Protocol
An overview of the IEBus is as follows.
• Communication system: Half-duplex asynchronous communication
• Multi-master system
All the units connected to the IEBus can transfer data to the other units.
• Broadcast communication function (communication between one unit and multiple units)
Group broadcast communication:Broadcast communication with group units
General broadcast communication: Broadcast communication with all units.
• Three modes with different transfer speeds selectable.
fX = 12 MHzfX = 12.58 MHzMaximum Number of Transfer Bytes
• Access control: CSMA/CD (Carrier Sense Multiple Access with Collision Detection)
The priority order for bus occupancy is as follows.
★
<1> Broadcast communication takes precedence over ordinary communication (i. e., communication between one
unit and another).
<2> The lowest master address has the highest priority.
• Communication scale
Number of units:MAX. 50
Cable length:MAX. 150 m (with twisted-pair cable <Resistance: 0.1 Ω/m or less>)
Load capacity:MAX. 8000 pF <between BUS– and BUS+>, fX = 12 MHz
MAX. 7100 pF <between BUS– and BUS+>, f
Terminating resistor: 120 Ω
X = 12.58 MHz
7
µ
PD6708
2.2.1 Bus mastership determination (arbitration)
When a unit connected to the IEBus controls another unit, it performs an operation to occupy the bus. This operation
★
is called arbitration.
Arbitration is to select one unit, and if several units begin to transmit data simultaneously, gives permission to occupy
the bus to that one unit.
So that one unit is granted the permission to occupy the bus as a result of the arbitration, the following priority conditions
are determined.
RemarkThe units not given permission through arbitration are automatically allowed to get into retransfer mode (number
of retransfer times for the
µ
PD6708: 3).
(1) Priority according to type of communication
Broadcast communication (between a single and multiple units) takes precedence over ordinary communication
(between single units).
(2) Priority according to master address
If the communication devices are of the same type, the unit with the lowest master address has the highest priority.
Example The master address comprises 12 bits, and unit 000H has the highest priority while unit FFFH has the lowest
priority.
2.2.2 Communication modes
The IEBus is provided with three communication modes with different transfer speeds. The transfer speed and maximum
number of transfer bytes in a single communication frame in each communication mode are shown in Table 2-1.
Table 2-1. Transfer Speed and Maximum Number of Transfer Bytes in Each Communication Mode
Communication ModeMaximum Number of Transfer Bytes (bytes/frame)Actual Transfer Speed
Notes 1. Actual transfer speed when the maximum number of bytes is transferred
µ
2. Oscillation frequency when the
PD6708 is used
Cautions 1. A communication mode is selected for each unit connected to the IEBus before communication is
performed. If the communication mode of the master unit is not the same as that of the unit with
which the master unit is to communicate (slave unit), communication cannot be performed correctly.
2. If the oscillation frequency of one unit is fx = 12 MHz and that of the other unit is fx = 12.58 MHz,
communication cannot be performed correctly even if the communication mode is the same. Make
sure that the oscillation frequencies of the two units to communicate are the same.
8
µ
PD6708
2.2.3 Communication address
With the IEBus, a 12-bit communication address is assigned to each unit. The communication address is made up as
follows.
Higher 4 bits: Group number (number which identifies the group to which the unit belongs)
Lower 4 bits: Unit number (number which identifies a unit within a group)
2.2.4 Broadcast communication
In ordinary communication, there is only one master unit and one slave unit, and transmission or reception is performed
on an one-to-one basis. In broadcast communication, however, there are a number of slave units and the master unit
performs transmission with these slave units. Because there are several slave units, no acknowledge signals is returned
from the slave units during communication.
Whether broadcast communication or ordinary communication is performed is specified by the broadcast bit (for the
broadcast bit, see 2.3 (1) <2> “Broadcast bit”).
There are two kinds of broadcast communication, as follows.
(1) Group broadcast communication
Broadcast communication is performed to the units in a group whose group numbers are the same as that specified by
the higher 4 bits of the communication address.
★
(2) General broadcast communication
Broadcast communication is performed to all units irrespective of their group numbers.
Group broadcast communication or general broadcast communication is identified by the value of a salve address (for
the slave address, see 2.3 (3) “Slave address field”).
9
µ
PD6708
2.3 Transfer Protocol
The IEBus transfer signal format is shown in Figure 2-1.
Data is transferred as a series of signals called a communication frame. The number of data that can be transferred in
one communication frame and the transfer speed differ depending on the communication mode.
Figure 2-1. Transfer Signal Format
(fx = at 12 MHz)
★
Field Name
Number of Bits
Transfer Time
Header
Start
Bit
Broad-
cast
Master
Address Field
1121112 11411811811811
Master
Address
Bit
Slave Address
PSlave
Address
Field
P A Control
Control FieldMessage
PA
Bit
Length Field
Message
Length
Bit
P A Data
Data Field
P AData
Bit
PA
Bit
Mode 0
Mode 1
Mode 2
Approx. 7330 s
Approx. 2090 s
Approx. 1590 s
µ
µ
µ
Approx. 1590 × N s
Approx. 410 × N s
Approx. 300 × N s
µ
µ
µ
P: Parity bit (1 bit)
A: Acknowledge bit (1 bit)
When A = 0: ACK
When A = 1: NAK
N: Number of data bytes
RemarkIn broadcast communication, the value of the acknowledge bit is ignored.
(1) Header
A header comprises a start bit and a broadcast bit, as described below.
<1> Start bit
The start bit is a signal which tells the other units that data transmission will start.
The unit which is about to start transmitting data will output the low signal (the start bit) for a specified time, and then
outputs the broadcast bit.
If another unit is already outputting a start bit before one unit outputs a start bit, the unit will not output the start bit.
It will wait until the another unit completely outputs the start bit, and then outputs the broadcast bit.
The units other than the one that has started transmission detect this start bit and enters the reception state.
<2> Broadcast bit
The broadcast bit distinguishes between broadcast communication and ordinary communication.
When this bit is ‘0’, it indicates broadcast communication; when it is ‘1’, it indicates ordinary communication. There
are two types of broadcast communication: group broadcast and general broadcast. These types are identified by the
value of the slave address (for the slave address, see (3) “Slave address field”).
In broadcast communication, there are a number of slave units. Therefore, the acknowledge bit is not returned in the
fields described in (2) below and onward.
If two or more units start to transmit a communication frame simultaneously, broadcast communication takes
precedence over ordinary communication, and wins in the arbitration.
10
µ
PD6708
(2) Master address field
The master address field is used to transmit the unit address of the master unit (master address) to the other units.
The master address field consists of master address bits and a parity bit.
The master address comprises 12 bits and is output from the MSB.
If two or more units start transmitting the broadcast bit of the same value simultaneously, the arbitration decision is made
by the master address field.
The master address field compares the data the master has output with the data on the bus each time the master transmits
1 bit of data. If the master address output by the master unit is different from the data on the bus, the master unit assumes
that it has lost in arbitration, stops transmission, and enters the reception state.
Because the IEBus has a wired-AND configuration, the unit having the lowest master address of the units participating
in the arbitration (arbitration masters) wins in the arbitration. Ultimately, only one unit remains in the transmission state
as the master unit after outputting a 12-bit master address.
This master unit then outputs a parity bit
slave address field.
NoteEven parity is used. When the number of the bits that are ‘1’ in the master address is odd, the parity bit is ‘1’.
(3) Slave address field
The slave address field is used to transmit the address (slave address) of a unit (slave unit) with which the master wishes
to communicate.
The slave address field consists of slave address bits, a parity bit, and an acknowledge bit.
The slave address comprises 12 bits and is output from the MSB. After the 12-bit slave address is transmitted, the parity
bit is output to prevent the slave address from being received incorrectly. Next, the master unit looks for the acknowledge
signal (bit) from the slave unit to confirm that the slave unit exists on the bus. When the master unit detects the acknowledge
signal, it starts outputting the control field. In the case of broadcast communication, however, the master unit outputs the
control field without waiting for the acknowledge bit.
A slave unit outputs the acknowledge signal if it has detected that its slave address coincides with that selected by the
master and that the parities of both the master and slave addresses are even. If the parity is odd, the slave unit assumes
that the master or slave address has not been correctly received, and does not output the acknowledge signal. In this case,
the master unit enters the standby (monitor) state and communication ceases.
In the case of broadcast communication, the slave address is used to distinguish between group broadcast and general
broadcast as follows:
Note
, makes the other units confirm the master address, and then outputs the
★
Slave address = FFFH: General broadcast communication
Slave address ≠ FFFH: Group broadcast communication
RemarkIn the case of group broadcast communication, the group number is the value of higher 4 bits of the slave
address.
11
µ
PD6708
(4) Control field
★
The control field indicates the type of data and the transfer direction of the subsequent data field.
The control field consists of 4 control bits, a parity bit, and an acknowledge bit.
The control bits are output from the MSB.
A parity bit is output after the control bits. When the parity is even and the slave can execute the function requested
by the master unit, the slave unit outputs an acknowledge signal, and then outputs the next message length field. If the
slave unit cannot execute the function requested by the master unit even if the parity is even, or if the parity is odd, the slave
unit does not output the acknowledge signal but returns to the standby (monitor) state.
After the master unit has confirmed the acknowledge signal, it starts outputting the next message length field.
If the master unit is cannot confirm the acknowledge signal, it enters the standby state and stops communication. In
the case of broadcast communication, however, the master unit starts outputting the message length field without confirming
the acknowledge signal.
For the functions of the control bits, see Table 2-3.
(5) Message length field
The message length field is used to specify the number of communication data bytes.
The message length field comprises 8 message length bits, a parity bit and, an acknowledge bit.
The message length bits are output from the MSB. The message length bits indicate the number of communication data
bytes as shown in Table 2-2.
Table 2-2. Meaning of Message Length Bits
Message Length Bits (hex)Number of Transmission Data Bytes
01H1 byte
02H2 bytes
::
::
FFH255 bytes
00H256 bytes
RemarkIn the communication mode, if the number of bytes exceeding the maximum number of transfer bytes per frame
is set, two or more frames are communicated. In this case, the message length bits indicate the number of
remaining communication data bytes during the second communication and onward.
The operation of this field differs depending on whether the master transmits (bit 3 of control bits is 1) or receives (bit
3 of control bits is 0) data.
<1> When master transmits data
The message length bits and parity bit are output by the master unit. The slave unit outputs the acknowledge signal
and then the next data field if it detects that the parity is even. The slave unit does not output the acknowledge signal
in the case of broadcast communication.
If the parity is odd, the slave unit assumes that the message length bits have not been received correctly, and returns
to the standby (monitor) state without outputting the acknowledge signal. In this case, the master unit also returns to
the standby state, and communication ceases.
12
µ
PD6708
<2> When master receives data
The message length bits and parity bit are output by the slave unit. The master unit outputs the acknowledge signal
if it detects that the parity bit is even.
If the parity is odd, the master unit assumes that the message length bits have not been received correctly, and returns
to the standby state without outputting the acknowledge signal. In this case, the slave unit also returns to the standby
state, and communication ceases.
(6) Data field
The data field is used to transmit/receive data to/from the slave units.
The master unit uses the data field to transmit data to and receive data from the slave units.
The data field consists of 8 data bits, a parity bit, and an acknowledge bit.
The data bits are output from the MSB.
Following the data bits, the parity bit and acknowledge bit are output from the master unit and the slave unit, respectively.
Broadcast communication is performed when only the master unit transmits data. At this time, the acknowledge signal
is ignored.
The operation differs depending on whether the master performs transmission or reception, as follows.
<1> When master transmits data
When the master unit writes data to the slave unit, the master unit transmits data bits and a parity bit to the slave unit.
The slave unit receives the data bits and parity bit. If the parity is even and the receive buffer is empty, the slave unit
outputs the acknowledge signal. If the parity is odd and the receive buffer is not empty, the slave unit denies
acknowledgment of the corresponding data and does not output the acknowledge signal.
If no acknowledge signal is output from the slave unit, the master unit transmits the same data again. The master
unit continues this operation until it detects the acknowledge signal from the slave unit or the data reaches the maximum
number of transfer bytes.
If the parity is even and the acknowledge signal has been output from the slave unit, and if the master unit has more
data to transmit and the maximum number of transfer bytes is not exceeded, the master unit will transmit the next data.
In the case of broadcast communication, the slave unit does not output the acknowledge signal, and the master unit
transfers data on a byte-by-byte basis.
★
<2> When master receives data
When the master unit reads data from the slave unit, the master unit outputs synchronization signals corresponding
to all the read bits.
The slave unit outputs the contents of the data and parity bits onto the bus in accordance with the synchronization
signals from the master unit.
The master unit reads the data and parity bit output by the slave unit, and checks the parity.
If the parity is odd or the receive buffer is not empty, the master unit denies acknowledgement of that data and does
not output the acknowledge signal. If the data is within the maximum number of transfer bytes that can be transmitted
in one frame, the master unit repeatedly reads the same data.
If the parity is even and the receive buffer is empty, the master unit acknowledges the data and transmits back the
acknowledge signal. If the data is within the maximum number of bytes that can be transmitted in one frame, the master
unit reads the next data.
★
13
µ
PD6708
(7) Parity bits
Parity bits are used to check that there is no error in the transfer data.
A parity bit is added to the master address bits, slave address bits, control bits, message length bits, and data bits.
Even parity is used. If the number of the bits that are ‘1’ bits in data is odd, the parity bit is ‘1’, and if the number of the
bits that are ‘1’ bits is even, the parity bit is ‘0’.
(8) Acknowledge bits
In ordinary communication (between two units), an acknowledge bit is added to the following places to confirm that data
has been acknowledged correctly.
• At the end of the slave address field.
• At the end of the control field.
• At the end of the message length field.
• At the end of a data field.
The definition of the acknowledge bit is as follows.
• ‘0’: Indicates that transfer data has been acknowledged (ACK).
• ‘1’: Indicates that transfer data has not been acknowledged (NAK).
Note that the value of the acknowledge bit is ignored in broadcast communication.
<1> Acknowledge bit at the end of the slave field
When any of the following conditions is met, the acknowledge bit at the end of the slave field is NAK, and
communication is discontinued.
• If the parity of the master address bits or slave address bits is incorrect.
• If a timing error (error in bit format) occurs.
• If the slave unit does not exist.
<2> Acknowledge bit at the end of the control field
When any of the following conditions is met, the acknowledge bit at the end of the control field is NAK, and
communication is discontinued.
• If the parity of the control bits is incorrect.
★
• If bit 3 of the control bits is ‘1’ (write operation) when the slave receive buffer
• If the control bits indicate read operation (3H or 7H) when the slave transmit buffer
• If 3H, 6H, 7H, AH, BH, EH, or FH of control bits is requested from a unit other than the unit which set the lock when
a lock has been set.
• If the control bits indicate lock address read (4H) when a lock has not been set.
<3> Acknowledge bit at the end of a message length field
When either of the following conditions is met, the acknowledge bit at the end of the message length field is NAK,
and communication is discontinued.
• If the parity of the message length bits is incorrect.
• If a timing error occurs.
<4> Acknowledge bit at the end of a data field
When any of the following conditions is met, the acknowledge bit at the end of a data field is NAK, and communication
is discontinued.
• If the parity of the data bits is incorrect
• If a timing error occurred in or after the previous acknowledge bit transmission.
• If the receive buffer is full and cannot accept any more data
NoteIn this case, if the number of transfer bytes is within the maximum number of bytes which can be transmitted, the
transmitting side re-executes transmission of that data field.
Note
.
Note
.
15
2.4Transfer Data (Contents of Data Field)
The contents of the data field are data specified by the control bits.
Table 2-3. Functions of Control Bits
µ
PD6708
Note 1
★
Bit 3
0H0000Reads slave status (SSR)
1H0001Undefined
2H0010Undefined
3H0011Reads and locks data
4H0100Reads lock address (lower 8 bits)
5H0101Reads lock address (higher 4 bits)
6H0110Reads and unlocks slave status (SSR)
7H0111Reads data
8H1000Undefined
9H1001Undefined
AH1010Writes and locks command
BH1011Writes and locks data
CH1100Undefined
DH1101Undefined
EH1110Writes command
FH1111Writes data
Bit 2Bit 1Bit 0Function
Note 2
Notes 1. Depending on the value of bit 3 (MSB), the transfer direction of the message length bits of the subsequent
message field and data field differs.
When bit 3 is “1”, data are transferred from the master unit to the slave unit.
When bit 3 is “1”, data are transferred from the slave unit to the master unit.
2. 3H, 6H, AH, and BH are control bits that specify locking or unlocking.
If any of undefined values 1H, 2H, 8H, 9H, CH, or DH is transmitted, no acknowledge bit is returned.
A unit locked by the master unit rejects acknowledging the control bits and does not output the acknowledge bit if the
control bits received from the master unit which requested locking is in any other state than that shown in Table 2-4.
Table 2-4. Control Field Corresponding to Locked Slave Unit
(1)Reading slave status (SSR) (control bit: 0H, 6H)
The master unit can learn the reason why the slave unit has not returned the acknowledge bit (ACK) by reading the
slave status.
The slave status is determined by the results of the last communication performed by the slave unit.
All the slave units can provide slave status information.
The meanings of the slave status are shown in Table 2-5.
Figure 2-2. Bit Configuration of Slave Status (SSR)
MSBLSB
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Table 2-5. Meanings of Slave Status
BitValueMeaning
Note 1
Bit 0
Note 2
Bit 1
Bit 20Unit is not locked.
Bit 30Fixed to ‘0’
Note 3
Bit 4
Bit 50Fixed to ‘0’
0Slave transmit buffer empty
1Slave transmit buffer is not empty.
0Slave receive buffer empty
1Slave receive buffer is not empty.
During data read (3H, 7H), the data in the data buffer of the slave unit are read to the master unit.
During data write (BH, FH) or during command write (AH, EH), the data the slave unit has received are processed
according to the operation convention.
Remarks 1. The user can voluntarily select data and command as his system requires.
2. Control bits 3H, AH, and BH may be locked depending on the communication condition and status.
(3)Reading lock address (control bits: 4H, 5H)
★
When the lock address is read processing (4H, 5H), the address (12 bits) of the master unit that has issued the lock
instruction is read in 1-byte units, as shown below.
Figure 2-3. Lock Address Configuration
MSBLSB
Control Bits : 4H
Control Bits : 5H
(4)Locking and unlocking (locking (3H, AH, BH), unlocking (6H))
The lock function is used to transfer a message over two or more frames.
A locked unit receives data only from the unit that has locked the unit.
Locking and unlocking are performed as described below.
<1> Locking
After the transmission/reception of the acknowledge bit ‘0’ of the message length field by the control bits (3H, AH,
BH) which specify the lock has ended, if the communication frame is completed without completing the transmission or
reception of the number of data bytes specified by the message length bits, the slave unit is locked by the master unit.
At this time, the bit (bit 2) relating to the locking of the byte which indicates the slave status is set to ‘1’.
<2> Unlocking
After completion of transmission or reception of data in one frame by the number of data bytes specified by the message
length bits with control bits (3H, AH, or BH) specifying locking or control bits (6H) specifying unlocking, the slave unit
is unlocked by the master unit. At this time, the bit (bit 2) relating to the locking of the byte which indicates the slave
status is reset to ‘0’.
Lower 8 Bits
UndefinedHigher 4 Bits
Locking and unlocking are not performed in the case of broadcast communication.
CautionTo unlock the unit specified to be unlocked by the unit itself, the INIT command (see 5.2.1 “INIT
µ
command”) must be executed with the
the GETSA command (see 5.2.7 “GETSA command”).
18
PD6708 (Whether a unit is locked or not can be checked by using
2.5Bit Format
The IEBus communication frame bit format (concept) is shown in Figure 2-4.
Figure 2-4. IEBus Bit Format (Concept)
Logic "1"
Logic "0"
µ
PD6708
★
Preparation Period
Logic “1”: Potential difference between bus lines (BUS+ pin and BUS– pin) is 20 mV or lower (low level).
Logic “0”: Potential difference between bus lines (BUS+ pin and BUS– pin) is 120 mV or higher (high level).
Preparation period:The first or subsequent low-level (logic “1”) period
Synchronous period: The next high-level (logic “0”) period
Data period:The period that expresses the bit value (logic “1”: low level; logic “0”: high level)
The synchronous period and data period have approximately the same length.
The IEBus uses bit-by-bit synchronization. The specifications for the total bit time and the periods allocated to the bits
depend on the type of transfer bit, and on whether the unit is the master unit or the slave unit.
Synchronous Period
Data Period
Preparation Period
Synchronous Period
Data Period
19
3. INTERNAL CONFIGURATION
The µPD6708 is composed of the following four blocks.
(1) Data link layer controller
(2) Physical layer controller
(3) IEBus driver/receiver
(4) Host interface
Figure 3-1. µPD6708 Internal Blocks
Status Register
(STR)
Host Interface
µ
PD6708
BUS+
BUS–
IEBus Driver/Receiver
Receiver
Driver
Data Link Layer Controller
Filter
Bit Sequencer
Physical Layer Controller
Read Data Buffer
(RDB) 20 Bytes
Write Data Buffer
(WDB) 4 Bytes
Command Register
(CMR)
Shift
Register
Serial I/O
Controller
SCK
SO
SI
CS
IRQ
C/D
R/W
20
µ
PD6708
3.1Data Link Layer Controller
The data link layer controller performs processing of the IEBus protocol data link layer (frame composition and resolution,
communication error detection, etc.), execution of communication control commands set by the host controller, and generate
a return code that informs the host controller of the communication status.
3.2Physical Layer Controller
The physical controller performs generation and resolution of bit timing and also converts the signals between the bus
lines through the driver/receiver.
3.3IEBus Driver/Receiver
The driver/receiver performs conversion between the logic signals within the µPD6708 and the IEBus signals. The IEBus
signals and their relationship to the logic statuses are shown in Table 3-1.
Table 3-1. Relationship between IEBus Signals and Logical Statuses
Logical StatusIEBus Signals
0(BUS+) – (BUS–) ≥ 120mV
1(BUS+) – (BUS–) ≤ 20mV
3.4Host Interface
The host Interface is a block which controls the transmission and reception of data to and from the host controller. It
accepts communication control commands, passes on return codes, and forwards transmit data.
The forwarding of transmit data takes place through the FIFO buffers, 4 bytes of write data buffer (WDB) and 20 bytes
of read data buffer (RDB). It also absorbs the differences between IEBus transmission speed and the transmission speed
on the serial interface between the
µ
PD6708 and the host controller.
21
µ
PD6708
4. INTERFACING WITH HOST CONTROLLER
This chapter will explain the interfacing that occurs between the µPD6708 and the host controller.
4.1Accessible Buffers and Registers from Host Controller
The host controller, which controls the µPD6708, can access the write data (WDB), the read data buffer (RDB), the
command register (CMR), and the status register (STR) within the
4.1.1 Write data buffer (WDB)
WDB is a 4-byte FIFO buffer in which the host controller transmit data and the parameters of the communication control
commands are written.
4.1.2 Read data buffer (RDB)
RDB is a 20-byte FIFO buffer which stores the receive data acknowledged by the data link layer controller in the
The host controller reads the
µ
PD6708 receive data from RDB.
4.1.3 Command register (CMR)
CMR is an 8-bit register used to write control commands for the µPD6708.
As shown in Table 4-1, the host controller sets the reset mode and the host interface mode in higher 4 bits and sets the
communication control command code in lower 4 bits.
µ
PD6708.
µ
PD6708.
Table 4-1. Contents of Command Register
BitValueMeaning
Bit 71Entering the reset mode
0Exiting the reset mode
Bit 61Data of lower 4 bits of CMR is valid.
0Data of lower 4 bits of CMR is not valid.
Bit 500Change of mode through pin controlSwitches the host interface mode
Bit 401Data write mode
10Data read mode
11Status read mode
Bit 3 toSet the communication control command codes
Bit 0
22
Loading...
+ 50 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.