Iicdi command – Freescale Semiconductor Microcontrollers User Manual

Page 274

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

274

Microcontrollers Debugger Manual

Multi-Master Inter-Integrated Circuit Module
Commands

The following commands are available for multi-master inter-integrated circuit
manipulation.

IICDI Command

The IICDI command allows the user to input data into a buffer of data which is shifted into
the MMIIC module when it receives data from an external device. If a data parameter is
given, the value is placed into the next slot in the input buffer. If no parameter is given, a
window appears displaying the input buffer values. You can enter input values while the
window is open. The maximum number of input values is 256.

This command is useful for either inputting response data from a slave target or for
inputting data packets from an external master. Note that when the microprocessor
attempts to read an acknowledge from an external device, and the next value in the buffer
is neither ACK nor NACK, the microprocessor automatically receives an ACK signal (i.e.
assumes ACK unless NACK is specified).

Syntax:

>IICDI [<n>][START][STOP][ACK][NACK]

Where:

<n>

The value to be entered into the next location in the input buffer

START

indicates the incoming START signal

STOP

indicates the incoming STOP signal

ACK

corresponds to ACK signal

NACK

corresponds to NACK signal

For a detailed description of the IIC protocol and the proper way to configure the
IIC module, refer to the Freescale user manual for your microprocessor.

Example:

>IICDI

Pulls up the data window with all the input values

>IICDI 22 33

This is an example of data being returned from a slave device. Once the MCU
transmits a start signal and the target address, it receives an ACK from the slave
device. An ACK is implied unless a NACK is specified via the IICDI command.

Advertising