Every member of the HC08 microcontroller family is equipped with a
basic support for in-system programming and debugging (MON8, for details
see datasheet of a HC08 processor). The microcontroller can work in two
modes - normal mode and monitor mode. In the monitor mode the microcontroller can accept couple of commands
over the single wire interface. The commands allow to read/write the
memory and run a code. In combination with Break module a simple debugging
system can be built (e.g. ICS boards, P&E Multilink or various custom
designs). There are few issues that results from the characteristics of the the
MON8 system:
The debugging system based on MON8 allows only one breakpoint placed in
the flash memory. However, executing an SWI instruction while running is
functionally equivalent to hitting a breakpoint, except that execution
stops at the instruction following the SWI. The user can use this feature
to actively capture unused interrupts. There are two options of capturing
such interrupts :
|