
Primitives
Simple Media Access Controller (SMAC) for the HCS08 Reference Manual, Rev. 2.0
3-14
Freescale Semiconductor
•
The MC13202 and MC1321x devices have a 16 MHz reference oscillator. In the transceiver there
is a register with an 8-bit “xtal_trim[7:0]” field that can be programmed to set the trim value
•
The MC1323x devices have a 32 MHz reference oscillator. The 8-bit trim register is called
XTAL1_TRIN[7:0] and can be programmed to set the trim value.
The use of the 8-bit trim field differs between device types. The user is referred to the appropriate family
device Reference Manual for proper trim values.
Prototype
smacErrors_t MLMEPHYXtalAdjust(uint8_t );
Arguments
uint8_t
An 8-bit value representing the trim value to the oscillator.
Returns
gErrorNoError_c
If the action is performed
gErrorOutOfRange_c If TrimValue exceeds the maximum trim value
Usage
Simply call the MLMEPHYXtalAdjust ([Desired trim value]) function directly.
3.1.18
XCVRContReset
For the MC1319x, MC1320x and MC1321x platforms the MCU controls and asserts the transceiver
hardware reset. This function asserts and holds the reset line of the transceiver; shutting it down and
holding it in its lowest power mode.
NOTE
This primitive can be used only on the MC1320x and MC1321x platforms.
For the MC1323x platform, it is invalid.
Prototype
void XCVRContReset(void);
Arguments
None
Returns
Nothing