High-resolution pwm commands – Freescale Semiconductor Microcontrollers User Manual

Page 263

Advertising
background image

HC08 Full Chip Simulation

Configuration Procedure

263

Microcontrollers Debugger Manual

Figure 11.13 Memory Component Window

If you enable the Shutdown pin on the HRP module, you can observe the SHTIF Flag via
the Memory window once the Shutdown event takes place. If you enable the HRP
interrupt, the FCS jumps to an appropriate subroutine as long as the HRP interrupt vector
is properly defined. To observe the SHTDWN Interrupt Flag going up as a result of the
corresponding CPU event, situate your Memory Window on the memory location of the
HRP Control register.

To observe the accuracy of the HRP module operation, the user can observe the number of
CPU cycles that it takes for the event to occur. The cycle counter is only incremented as
the user steps through the code. To determine the exact amount of cycles over which the
event occurs, one can either observe the cycle display in the Register Window or use the
built in simulation commands. To display the current number of cycles in the Command
window, use the CYCLES command. To change the number of cycles in the cycle counter,
use CYCLES <n>, where <n> is the new cycle value. If the number of cycles has been
pre-calculated, use CYCLE 00 to reset the number of cycles and GOTOCYCLE <n> to
run through the code until the place where the expected event occurs.

Figure 11.14 Register Window With Cycles Display

High-Resolution PWM Commands

The following commands are available for High-Resolution Pulse-Width Modulation on
the M68HC08 processor.

Advertising