NEC PD75402A User Manual page 131

4-bit single-chip microcomputer
Table of Contents

Advertisement

(b) Description of commands
(i)
Command types
The following command types are used in these application examples.
READ command
WRITE command
END command
STOP command
4
STATUS command : Reads slave-side status.
RESET command
6
CHGMST command : Passes mastership to slave side.
7
(ii) Communication procedure
The procedure for communication between master and slave is as follows.
The master starts the communication by transmitting the address of the slave to be communicated
with and selecting the slave (chip selection).
When the slave receives the address, it communicates with the master by returning ACK. (The
slave changes from non-selected to selected status.)
Communication is performed between the slave selected by the processing in
by the transfer of commands and data.
However, as command and data transfers are one-to-one master- slave transfers, other slaves
must be in the non-selected status.
Communication is ended by the slave changing to non-selected status. The slave changes to non-
selected status in the following cases:
• When a RESET command is sent from the master, the selected slave changes to non-selected
status.
• When the master is changed by the CHGMST command, the device which is changed from
master to slave changes to non-selected status.
120
CHAPTER 5. PERIPHERAL HARDWARE FUNCTIONS
: Performs data transfer from slave to master.
: Performs data transfer from master to slave.
: Notifies slave of completion of WRITE command.
: Notifies slave of suspension of WRITE command.
: Makes currently selected slave non-selected.
and the master

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pd75p402

Table of Contents