MC908JL16CFAE FREESCALE [Freescale Semiconductor, Inc], MC908JL16CFAE Datasheet - Page 82

no-image

MC908JL16CFAE

Manufacturer Part Number
MC908JL16CFAE
Description
Microcontrollers
Manufacturer
FREESCALE [Freescale Semiconductor, Inc]
Datasheet
Timer Interface Module (TIM)
ELSxB and ELSxA — Edge/Level Select Bits
TOVx — Toggle On Overflow Bit
CHxMAX — Channel x Maximum Duty Cycle Bit
82
When channel x is an input capture channel, these read/write bits control the active edge-sensing logic
on channel x.
When channel x is an output compare channel, ELSxB and ELSxA control the channel x output
behavior when an output compare occurs.
When ELSxB and ELSxA are both clear, channel x is not connected to an I/O port, and pin TCHx is
available as a general-purpose I/O pin.
the ELSxB and ELSxA bits.
When channel x is an output compare channel, this read/write bit controls the behavior of the channel
x output when the TIM counter overflows. When channel x is an input capture channel, TOVx has no
effect.
Reset clears the TOVx bit.
When the TOVx bit is at logic 1, setting the CHxMAX bit forces the duty cycle of buffered and
unbuffered PWM signals to 100%. As
after it is set or cleared. The output stays at the 100% duty cycle level until the cycle after CHxMAX is
cleared.
1 = Channel x pin toggles on TIM counter overflow
0 = Channel x pin does not toggle on TIM counter overflow
MSxB:MSxA
X0
X1
1X
1X
1X
00
00
00
01
01
01
Before enabling a TIM channel register for input capture operation, make
sure that the TCHx pin is stable for at least two bus clocks.
When TOVx is set, a TIM counter overflow takes precedence over a
channel x output compare if both occur at the same time.
ELSxB:ELSxA
00
00
01
10
11
01
10
11
01
10
11
Table 6-3. Mode, Edge, and Level Selection
MC68HC908JL16 Data Sheet, Rev. 1.1
Output compare or PWM
Buffered output
buffered PWM
Output preset
Input capture
Figure 6-11
compare or
Table 6-3
Mode
NOTE
NOTE
shows how ELSxB and ELSxA work. Reset clears
shows, the CHxMAX bit takes effect in the cycle
Pin under port control; initial output level high
Pin under port control; initial output level low
Capture on rising or falling edge
Capture on falling edge only
Capture on rising edge only
Toggle output on compare
Toggle output on compare
Clear output on compare
Clear output on compare
Set output on compare
Set output on compare
Configuration
Freescale Semiconductor

Related parts for MC908JL16CFAE