Inter-integrated circuit module – Freescale Semiconductor Microcontrollers User Manual

Page 440

Advertising
background image

HCS08 Full Chip Simulation

Peripheral Modules Commands

440

Microcontrollers Debugger Manual

speed of simulation; it does, however, affect the ratio in which peripherals receive cycles.
Certain peripherals which run directly from the XTAL run at different speeds than those
that run from the bus clock.

Syntax

>XTAL <n>

Where:

• <n>, by default, is a hexadecimal number, representing the simulated frequency

of an external oscillator. Adding the suffix t to the n parameter forces the input
value to be interpreted as base 10.

Example

>XTAL

Brings up an input window. The default base for this input value is 10. However,
this value can be forced to a hexadecimal format through use of the suffix h.

Inter-Integrated Circuit Module

In FCS, this module simulates all functionality of the Inter-Integrated Circuit (IIC) module
including:

• Flag polling

• Interrupt enabled mode

• Transmission and reception of external data

• Master and slave modes of operation

• START and STOP signal generation detection

• Acknowledge bit generation detection

FCS mode uses the buffered input/output structure to simulate IIC inputs. The user can
queue up to 256 data bytes into the input buffer. The output buffer of the USB module can
also hold 256 output bytes. To queue the IIC Input Packets, use the IICDI <...>
command in the command prompt. For a more detailed description of the command, refer
to the IIC Commands section. If the IIC packet parameters are properly defined, the packet
is placed into the next slot in the input buffer. Otherwise, if no parameters are provided, an
IIC Input Buffer window is displayed.

The user can enter different IIC packet parameters while the window is open, including
START, STOP, ACK, NACK and data bytes. An arrow points to the next byte to be used
as input to the IIC. The data from the IIC input buffer is written to the IIC module registers
once the IIC module is turned on and properly configured for receiving data from an
external IIC device. Once simulation of the data transmission is over, the arrow moves to
the next value in the IIC Input Buffer.

Advertising