Atmel SAM4S-XPLD Atmel ATSAM4S-XPLD ATSAM4S-XPLD Hoja De Datos

Los códigos de productos
ATSAM4S-XPLD
Descargar
Página de 1125
 782
SAM4S [DATASHEET]
11100E–ATARM–24-Jul-13
36.6.17 Fault Mode
At anytime, the TC_RCx registers can be used to perform a comparison on the respective current channel counter value
(TC_CVx) with the value of TC_RCx register.
The CPCSx flags can be set accordingly and an interrupt can be generated.
This interrupt is processed but requires an unpredictable amount of time to be achieve the required action.
It is possible to trigger the FAULT output of the TIMER1 with CPCS from TC_SR0 register and/or CPCS from TC_SR1
register. Each source can be independently enabled/disabled by means of TC_FMR register.
This can be useful to detect an overflow on speed and/or position when QDEC is processed and to act immediately by
using the FAULT output.
Figure 36-21.Fault Output Generation
TC_SR0 flag CPCS
TC_FMR / ENCF0
FAULT  (to PWM input)
OR
AND
AND
TC_SR1 flag CPCS
TC_FMR / ENCF1