HCS08 Full Chip Simulation
Peripheral Modules Commands
437
Microcontrollers Debugger Manual
When the conversion is complete, the FCS sets the appropriate flag. If interrupts are
enabled, the Program Counter changes flow to the interrupt routine (as defined in the
vector space of the MCU). For more information on ADC configuration, refer to the
Freescale user manual for your microprocessor.

ADC Module Commands

The following commands are available for the M68HCS08 ADC Module.

ADDI Command

The ADDI command allows the user to input the data into the ADC converter. If a data
parameter is given, the value is placed into the next slot in the input buffer. Otherwise, if
no parameter is given, a window is displayed with the input buffer values. Input values can
be entered while the window is open. An arrow points to the next value to be used by the
ADC. The maximum number of input values is 256 bytes.
Syntax
>ADDI [<n>]
Where:
<n> The value to be entered into the next location in the input buffer.
Example
>ADDI $55
Set the next input value to the ADDI to $55
>ADDI
Pull up the data window with all the input values.

ADCLR

Use the ADCLR command to flush the input buffer for ADC simulation. This resets the
input data buffer and clears out all values. Notice that if the ADC is currently using a
value, this command does not prevent the ADC from using it. See ADDI command for
information on how to access the input buffer of the ADC interface.
Syntax
>ADCLR