Specifications
Event Manager
12-3
’240x–’240 Family Compatibility
12.2 Event Manager
In order to port code from ’240 to ’240x:
- The GP timer 3 must not be used.
- The single-up count and single-up/down count modes of the GP timers
must not be used. The decoding of the timer modes from the TMODE1–0
bits has changed, and this code will have to be modified when porting code
from the ’240 to the ’240x.
- The 32-bit timer mode cannot be used.
- Capture 3 on the ’240 cannot be used, when porting code from the ’240
to the ’240x. Capture 4 should be changed into capture 3.
- The capture units can use either GP Timer 1 or 2 as a time base.
- When porting code from the the ’240 to the ’240x, the capture interrupt
code needs to allow for the fact that an interrupt is usually generated after
every second capture and not every capture as on the ’240.
- The QEP logic can clock GP timer 1 or 2.
- The three simple compare units cannot be used.
- The compare mode of the (full) compare units cannot be used; only the
PWM mode can be used.
- Software must change from ’240 to ’240x to comprehend the changes to
the dead-band counters and dead-band prescaler.
- All general interrupt service routines must be changed to get their periph-
eral interrupt vectors from the PIVR (701Eh) and not one of EVIVRA,
EVIVRB or EVIVRC. Reading from PIVR does not clear interrupt flags. In-
terrupt flags must be cleared manually.










