TC1784
Program Memory Unit (PMU)
User´s Manual
5-78
V1.1, 2011-05
PMU, V1.47
5.6.6
Interrupt, Error and Operation Control
Access and/or operational errors (e.g. wrong command sequences) may be reported to
the user by interrupts, and they are indicated by flags in the Flash Status Register FSR.
Additionally, bus errors may be generated resulting in CPU traps (also shortly called bus
error traps, although this is not correct).
5.6.6.1
Interrupt Control
The Flash module supports immediate error and status information to the user by
interrupt generation. One CPU interrupt request is provided by the Flash module to be
controlled in the SCU. The source Flash (in devices with more than one PMU) of Flash
interrupts is defined by the related service request input in the SCU. In the SCU, the
Flash interrupts are controlled and indicated via bit 5 (FL0) and bit 6 (FL1 for PMU1) in
the SCU-registers for interrupt control (registers INTSET, INTCLR, INTDIS, INTNP and
INTSTAT).
The Flash interrupt can be issued because of following events:
•
End of busy state: program or erase operation finished
•
Operational error: program or erase operation aborted
•
Verify error: program or erase operation not correctly finished
•
Protection error
•
Sequence error
•
Single-bit error: corrected read data from PFlash or DFlash delivered
•
Double-bit error in Program Flash or Data Flash.
Note: In case of an OPER or VER error, the error interrupt is issued not before the busy
state of the Flash is deactivated.
The source of interrupt is indicated in the Flash Status Register FSR by the error flags
or by the PROG or ERASE flag in case of end of busy interrupt. An interrupt is also
generated for a new error event, if the related error flag is still set from a previous error
interrupt.
Every interrupt source is masked (disabled) after reset and can be enabled via dedicated
mask bits in the Flash Configuration Register FCON.
5.6.6.2
Trap Control
CPU traps are executed because of LMB bus errors, generated by the PMU in case of
erroneous Flash accesses from the PMI (Program Fetch Synchronous Error: PSE trap)
or DMI (Data Access Synchronous Error: DSE trap). LMB bus errors are generated
synchronously to the bus cycle requesting the not allowed Flash access or the disturbed
Flash read data. The error attributes are captured in the LMB Bus Control Unit in
synchronous capture registers. Bus errors are issued because of following events:
Содержание TC1784
Страница 1: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 3: ...User s Manual V1 1 2011 05 Microcontrollers TC1784 32 Bit Single Chip Microcontroller ...
Страница 950: ...TC1784 Direct Memory Access Controller DMA User s Manual 11 132 V1 1 2011 05 DMA V3 03 ...
Страница 1949: ...TC1784 General Purpose Timer Array GPTA v5 User s Manual 21 297 V1 1 2011 05 GPTA v5 V1 14 ...
Страница 2350: ...w w w i n f i n e o n c o m Published by Infineon Technologies AG Doc_Number ...