AN2262 Motorola / Freescale Semiconductor, AN2262 Datasheet - Page 31

no-image

AN2262

Manufacturer Part Number
AN2262
Description
Wireless HC08 Modem
Manufacturer
Motorola / Freescale Semiconductor
Datasheet
Main Loop
MOTOROLA
sciRxTmoutHlpr
sciRxTmout
TBM INTERRUPT
SCI INTERRUPT
NOTE:
The actual implementation is slightly different and is based only on two
variables that are one bit long (flags). The first is sciRxTmout, and the second
is sciRxTmoutHlpr. At the beginning of SCI reception both flags,
sciRxTmout and sciRxTmoutHlpr, are cleared. sciRxTmoutHlpr is
cleared during each SCI receive interrupt (action #3 in
During every TBM interrupt. sciRxTmoutHlpr is first copied into
sciRxTmout (action #1) then after sciRxTmoutHlpr is set (action #2). If no
data are received from SCI (sciRxTmoutHlpr is not cleared) the
sciRxTmout flag becomes set during the second TBM interrupt indicating the
end of SCI data.
The main loop of the application simply polls for the data coming either from the
SCI or RF. Data is then scheduled to be transmitted to the ‘opposite’ media. All
other tasks are interrupt driven as previously described (SCI transmit, SCI
receive, RF transmit, and RF receive). See
#2
Figure 20. SCI Timeout Explanation
#1
#3
Wireless HC08 Modem
Figure
21.
Figure
20).
AN2262/D
Software
31

Related parts for AN2262