
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide
121
Revision 1.0, 2011-12-15
2.37
Wait100usMultiples()
2.37.1
Description
This function performs a delay of 100 µs multiples. It clears the CPU clock divider SFR DIVIC, initializes the timers
according to the delay time, and uses IDLE state during the delay time. In case an unexpected resume event
occurs, the IDLE state will be left and the function remain in RUN state until the delay is elapsed. The total duration
of the delay can be determined by an offset time of 28 µs plus the multiplication of the input parameter value with
100µs. The maximum delay time is limited in practice by the watchdog timer, which may be reset by the application
prior to the function call.
2.37.2
Actions
•
Set SFR DIVIC = 00
B
•
Configure timers according to the delay time
•
Enter IDLE state
•
Delay until timer is elapsed
2.37.3
Prototype
void
Wait100usMultiples
(unsigned int
Counter
)
2.37.4
Inputs
2.37.5
Outputs
Table 157
Wait100usMultiples: Input Parameters
Register / Address
Type
Name
Description
R6 (MSB)
R7 (LSB)
unsigned int
Counter
Number of 100µs multiples. Duration[µs] =
Counter x 100µs
Table 158
Wait100usMultiples: Output values
Register/Address
Type
Name
Description