![Freescale Semiconductor MC9S12ZVM series Reference Manual Download Page 482](http://html1.mh-extra.com/html/freescale-semiconductor/mc9s12zvm-series/mc9s12zvm-series_reference-manual_2330602482.webp)
Chapter 13 Programmable Trigger Unit (PTUV2)
MC9S12ZVM Family Reference Manual Rev. 1.3
Freescale Semiconductor
482
” above. The only difference is, that during an async reload event the error interrupt flags
PTUROIF and TGxREIF are not generated.
13.4.5
Interrupts and error handling
This sections describes the interrupts generated by the PTU module and their individual sources, Vector
addresses and interrupt priority are defined by MCU level.
13.4.5.1
PTU Double Bit ECC Error
If one trigger generator reads trigger values from the memory which contains double bit ECC errors then
the PTUDEEF is set. These read data are ignored and the execution of both trigger generators is stopped
until the PTUDEEF flag was cleared. To make sure the trigger generator starts in a define state it is required
to execute follow sequence:
1. disable both trigger generators
2. configure the PTU if required
3. clear the PTUDEEF
4. enable the desired trigger generators
13.4.5.2
PTU Reload Overrun Error
If the PTULDOK bit is not set during the reload event then the PTUROIF bit is set. If enabled (PTUROIE
is set) an interrupt is generated. For more information see
Section 13.4.3, “Reload mechanism
”. During an
async reload event the PTUROIF interrupt flag is not set.
13.4.5.3
Trigger Generator Memory Access Error
The trigger generator memory access error flag (TGxAEIF) is set if the used read address is outside the
accessible memory address area; see the MMC section for the supported memory area. The loaded trigger
values are ignored and the execution of this trigger list is stopped until the next reload event. If enabled
(TGxAEIE is set) an interrupt will be generated.
13.4.5.4
Trigger Generator Reload Error
The trigger generator reload error flag (TGxREIF) is set if a new reload event occurs before the trigger
generator reaches the EOL symbol or the maximum number of generated triggers. Independent from this
Table 13-22. PTU Interrupt Sources
Module Interrupt Sources
Local Enable
PTU Reload Overrun Error
PTUIEH[PTUROIE]
TG0 Error
PTUIEL[TG0AEIE,TG0REIE,TG0TEIE]
TG1 Error
PTUIEL[TG1AEIE,TG1REIE,TG1TEIE]
TG0 Done
PTUIEL[TG0DIE]
TG1 Done
PTUIEL[TG1DIE]