Z8FMC04100 ZILOG [Zilog, Inc.], Z8FMC04100 Datasheet - Page 268

no-image

Z8FMC04100

Manufacturer Part Number
Z8FMC04100
Description
Z8 Encore-R Motor Control Flash MCUs
Manufacturer
ZILOG [Zilog, Inc.]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
Z8FMC04100AKEG
Manufacturer:
Zilog
Quantity:
490
Part Number:
Z8FMC04100AKEG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
Z8FMC04100AKSG
Manufacturer:
Zilog
Quantity:
245
Part Number:
Z8FMC04100AKSG
Manufacturer:
Zilog
Quantity:
10 000
Part Number:
Z8FMC04100QKEG
Manufacturer:
Zilog
Quantity:
490
Part Number:
Z8FMC04100QKSG
Manufacturer:
Zilog
Quantity:
979
246
Z8 Encore!
Product Specification
On-Chip Debugger
OCDCNTR Register
®
Motor Control Flash MCUs
abled during critical sections of code where interrupts do not occur (such as adjusting the
stack pointer or modifying shared data).
Host software can poll the IDLE bit of the OCDSTAT register to determine if the OCD is
looping on a BRK instruction. When software wants to stop the CPU on the BRK instruc-
tion on which it is looping, software must not set the DBGMODE bit of the OCDCTL reg-
ister. The CPU may have vectored to an interrupt service routine. Instead, software clears
the BRKLP bit. This allows the CPU to finish the interrupt service routine it may be in and
return to the BRK instruction. When the CPU returns to the BRK instruction on which it
was previously looping, it automatically sets the DBGMODE bit and enters DEBUG
mode.
The majority of the OCD commands remain disabled when the eZ8 CPU is looping on a
BRK instruction. The eZ8 CPU must be in DEBUG mode before these commands can be
issued.
Break Points in Flash Memory
The BRK instruction is Op Code
a byte in Flash memory. To implement a break point, write
overwriting the current instruction. To remove a break point, erase the corresponding page
of Flash memory and reprogram with the original data.
The On-Chip Debugger contains a multipurpose 16-bit Counter Register. It can be used
for the following:
When configured as a counter, the OCDCNTR register starts counting when the On-Chip
Debugger leaves DEBUG mode and stops counting when it enters DEBUG mode again or
when it reaches the maximum count of
resets itself to
cycles between break points.
If the OCDCNTR Register is configured to generate a BRK when it counts down to zero,
it will not be reset when the CPU starts running. The counter will start counting down
toward zero once the On-Chip debugger leaves DEBUG mode. If the On-Chip Debugger
enters DEBUG mode before the OCDCNTR register counts down to zero, the OCDCNTR
will stop counting.
If the OCDCNTR register is configured to generate a BRK when the program counter
matches the OCDCNTR register, the OCDCNTR register will not be reset when the CPU
Count system clock cycles between break points
Generate a BRK when it counts down to 0
Generate a BRK when its value matches the Program Counter
0000h
when the OCD exits DEBUG mode if it is configured to count clock
P R E L I M I N A R Y
00h
, which corresponds to the fully programmed state of
FFFFh
. The OCDCNTR register automatically
00h
to the appropriate address,
PS024604-1005

Related parts for Z8FMC04100