
Functional Description
MC68HC908AP A-Family Data Sheet, Rev. 3
Freescale Semiconductor
117
8.3.1 Entering Monitor Mode
Table 8-1 shows the pin conditions for entering monitor mode. As specified in the table, monitor mode
may be entered after a POR and will allow communication at 9600 baud provided one of the following
sets of conditions is met:
1.
If $FFFE and $FFFF do not contain $FF (programmed state):
–
The external clock is 4.9152 MHz with PTB0 low or 9.8304 MHz with PTB0 high
–
IRQ1 = VTST
2.
If $FFFE and $FFFF both contain $FF (erased state):
–
The external clock is 9.8304 MHz
–
IRQ1 = VDD (this can be implemented through the internal IRQ1 pullup)
If VTST is applied to IRQ1 and PTB0 is low upon monitor mode entry (above condition set 1), the bus
frequency is a divide-by-two of the input clock. If PTB0 is high with VTST applied to IRQ1 upon monitor
mode entry, the bus frequency will be a divide-by-four of the input clock. Holding the PTB0 pin low when
entering monitor mode causes a bypass of a divide-by-two stage at the oscillator only if VTST is applied
to IRQ1. In this event, the CGMOUT frequency is equal to the CGMXCLK frequency, and the OSC1 input
directly generates internal bus clocks. In this case, the OSC1 signal must have a 50% duty cycle at
maximum bus frequency.
If entering monitor mode without high voltage on IRQ1 (above condition set 2), then all port A pin
requirements and conditions, including the PTB0 frequency divisor selection, are not in effect. This is to
reduce circuit requirements when performing in-circuit programming.
NOTE
If the reset vector is blank and monitor mode is entered, the chip will see an
additional reset cycle after the initial POR reset. Once the part has been
programmed, the traditional method of applying a voltage, VTST, to IRQ1
must be used to enter monitor mode.
The COP module is disabled in monitor mode based on these conditions:
If monitor mode was entered as a result of the reset vector being blank (above condition set 2), the
COP is always disabled regardless of the state of IRQ1 or RST.
If monitor mode was entered with VTST on IRQ1 (condition set 1), then the COP is disabled as long
as VTST is applied to either IRQ1 or RST.
The second condition states that as long as VTST is maintained on the IRQ1 pin after entering monitor
mode, or if VTST is applied to RST after the initial reset to get into monitor mode (when VTST was applied
to IRQ1), then the COP will be disabled. In the latter situation, after VTST is applied to the RST pin, VTST
can be removed from the IRQ1 pin in the interest of freeing the IRQ1 for normal functionality in monitor
mode.
Figure 8-2 shows a simplified diagram of the monitor mode entry when the reset vector is blank and just
VDD voltage is applied to the IRQ1 pin. An external oscillator of 9.8304 MHz is required for a baud rate of
9600, as the internal bus frequency is automatically set to the external frequency divided by four.
Enter monitor mode with pin configuration shown in
Figure 8-1 by pulling RST low and then high. The
rising edge of RST latches monitor mode. Once monitor mode is latched, the values on the specified pins
can change.
Once out of reset, the MCU waits for the host to send eight security bytes. (See
8.4 Security.) After the
security bytes, the MCU sends a break signal (10 consecutive logic 0’s) to the host, indicating that it is
ready to receive a command.