2.16
StopXtalOsc()
2.16.1
Description
This function disables the crystal oscillator clock if no other peripherals are using it. Therefore, peripherals using
the crystal oscillator should be disabled prior to calling this function.
2.16.2
Actions
•
Attempt to disable the crystal oscillator clock.
2.16.3
Prototype
signed char StopXtalOsc(void)
2.16.4
Inputs
Table 74
StopXtalOsc: Input Parameters
Register / Address
None
2.16.5
Outputs
Table 75
StopXtalOsc: Output values
Register/Address
R7
2.16.6
Resource Usage
Table 76
StopXtalOsc: Resources
Type
Registers
SFR
Stack
1) Two additional bytes, not included here, are needed to call the library function
ROM Library Function Guide
Type
Name
---
---
Type
Name
signed char
StatusByte
Used or Modified
R7
ACC,B, CFG0, DPTR, PSW, RFS, TMOD
1)
0 Bytes
Tire Pressure Monitoring Sensor
Description
---
Description
StatusByte:
0: XTAL stopped
-1: XTAL already off (no action)
-2: XTAL not stopped because it is still needed (e.g. due to
an ongoing RF transmission)
77
SP37
ROM Library Functions
Revision 1.0, 2011-12-15