AN2372 Freescale Semiconductor / Motorola, AN2372 Datasheet - Page 20

no-image

AN2372

Manufacturer Part Number
AN2372
Description
Using the Output Compare TPU Function (OC) with the MPC500Family
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
State 5: Offset_Match
temp = (REF_ADDR1)
Generate match at temp + OFFSET
REF_TIME = temp + OFFSET
Negate MRL
}
9.5
This state is entered as a result of a match event in the continuous pulse mode. If the OFFSET parameter is
less than or equal to zero, Init is executed, no new match is configured, and the pin state is configured as
specified by CHANNEL_CONTROL. If OFFSET is greater than zero, the channel is configured to generate
a match at time value (REF_TIME plus OFFSET). REF_TIME is updated with the time value of the new
(next) match event. The pin toggles when the match event occurs.
Condition: HSR1, HSR0, M/TSR, LSR, Pin, Flag0 = 001000 Match Enable: Disable
Negate MRL, TDL, LSR ACTUAL_MATCH_TIME = ERT Assert flag0
Assert interrupt request
The following table shows the OC transitions listing the service request sources and channel conditions from
current state to next state. Figure 5 illustrates the flow of the OC states.
NOTES:
1. Conditions not specified are "don't care."
2. HSR = Host service request
LSR = Link service request
M/TSR = Either a match or transition (input capture) service request occurred
20
(M/TSR = 1) or neither occurred (M/TSR = 0).
Any State
S1 HOST_MATCH
S2 Ref_Time_Match
S3 Init
S4 Offset_Cal
S5 Offset_Match
Unimplemented Conditions
Continuous Pulse Mode
Host-Initiated Pulse Mode
State 5: Offset_Match
Current State
Freescale Semiconductor, Inc.
For More Information On This Product,
Using the Output Compare TPU Function
Table 12. OC State Transition Table
HSR
01
00
01
00
00
00
00
00
10
00
11
Go to: www.freescale.com
M/TSR
1
1
LSR
0
1
1
0
0
1
1
Pin
Flag0
0
0
1
1
1
1
1
0
S1 HOST_MATCH
S3 Init
S2 Ref_Time_Match
S1 HOST_MATCH
S4 Offset_Cal
S4 Offset_Cal
S5 Offset_Match
S5 Offset_Match
S4 Offset_Cal
Host-Initiated Pulse Mode
Continuous Pulse Mode
Host-Initiated Pulse Mode
Next State
MOTOROLA

Related parts for AN2372