Go to the source code of this file.
Defines | |
#define | __MSP430_HAS_SFR__ |
#define | __MSP430_HAS_CS__ |
#define | CS_ACLK 0x01 |
#define | CS_MCLK 0x02 |
#define | CS_SMCLK 0x04 |
#define | CS_MODOSC MODCLKREQEN |
#define | CS_XT1CLK_SELECT SELM__XT1CLK |
#define | CS_VLOCLK_SELECT SELM__VLOCLK |
#define | CS_DCOCLK_SELECT SELM__DCOCLK |
#define | CS_XT2CLK_SELECT SELM__XT2CLK |
#define | CS_MODOSC_SELECT SELM__MODOSC |
#define | CS_CLOCK_DIVIDER_1 DIVM__1 |
#define | CS_CLOCK_DIVIDER_2 DIVM__2 |
#define | CS_CLOCK_DIVIDER_4 DIVM__4 |
#define | CS_CLOCK_DIVIDER_8 DIVM__8 |
#define | CS_CLOCK_DIVIDER_16 DIVM__16 |
#define | CS_CLOCK_DIVIDER_32 DIVM__32 |
#define | CS_XT1_DRIVE0 XT1DRIVE_0 |
#define | CS_XT1_DRIVE1 XT1DRIVE_1 |
#define | CS_XT1_DRIVE2 XT1DRIVE_2 |
#define | CS_XT1_DRIVE3 XT1DRIVE_3 |
#define | CS_DCORSEL_0 DCOFSEL_0 |
#define | CS_DCORSEL_1 DCORSEL |
#define | CS_DCOFSEL_0 DCOFSEL_0 |
#define | CS_DCOFSEL_1 DCOFSEL_1 |
#define | CS_DCOFSEL_2 DCOFSEL_2 |
#define | CS_DCOFSEL_3 DCOFSEL_3 |
#define | CS_XT2DRIVE_4MHZ_8MHZ XT2DRIVE_0 |
#define | CS_XT2DRIVE_8MHZ_16MHZ XT2DRIVE_1 |
#define | CS_XT2DRIVE_16MHZ_24MHZ XT2DRIVE_2 |
#define | CS_XT2DRIVE_24MHZ_32MHZ XT2DRIVE_3 |
#define | CS_XT2OFFG XT2OFFG |
#define | CS_XT1OFFG XT1OFFG |
#define | CS_XT1DRIVE_0 XT1DRIVE_0 |
#define | CS_XT1DRIVE_1 XT1DRIVE_1 |
#define | CS_XT1DRIVE_2 XT1DRIVE_2 |
#define | CS_XT1DRIVE_3 XT1DRIVE_3 |
#define | CS_VLOCLK_FREQUENCY 10000 |
#define | CS_MODCLK_FREQUENCY 5000000 |
#define | CS_LFMODCLK_FREQUENCY 39062 |
#define | XT1_FREQUENCY_THRESHOLD 50000 |
#define | CS_DCO_FREQ_1 5330000 |
#define | CS_DCO_FREQ_2 6670000 |
#define | CS_DCO_FREQ_3 8000000 |
#define | CS_DCO_FREQ_4 16000000 |
#define | CS_DCO_FREQ_5 20000000 |
#define | CS_DCO_FREQ_6 24000000 |
Functions | |
void | CS_setExternalClockSource (unsigned int baseaddress, unsigned long XT1_LFXT_CLK_frequency, unsigned long XT2_HFXT_CLK_frequency) |
void | CS_clockSignalInit (unsigned int baseaddress, unsigned char selectedClockSignal, unsigned int clockSource, unsigned int clockSourceDivider) |
void | CS_XT1Start (unsigned int baseAddress, unsigned int xt1drive) |
void | CS_bypassXT1 (unsigned int baseAddress) |
unsigned short | CS_bypassXT1WithTimeout (unsigned int baseAddress, unsigned long timeout) |
unsigned short | CS_XT1StartWithTimeout (unsigned int baseAddress, unsigned int xt1drive, unsigned long timeout) |
void | CS_XT1Off (unsigned int baseAddress) |
void | CS_XT2Start (unsigned int baseAddress, unsigned int xt2drive) |
void | CS_bypassXT2 (unsigned int baseAddress) |
unsigned short | CS_XT2StartWithTimeout (unsigned int baseAddress, unsigned int xt2drive, unsigned long timeout) |
unsigned short | CS_bypassXT2WithTimeout (unsigned int baseAddress, unsigned long timeout) |
void | CS_XT2Off (unsigned int baseAddress) |
void | CS_enableClockRequest (unsigned int baseAddress, unsigned char selectClock) |
void | CS_disableClockRequest (unsigned int baseAddress, unsigned char selectClock) |
unsigned char | CS_faultFlagStatus (unsigned int baseAddress, unsigned char mask) |
void | CS_clearFaultFlag (unsigned int baseAddress, unsigned char mask) |
unsigned long | CS_getACLK (unsigned int baseAddress) |
unsigned long | CS_getSMCLK (unsigned int baseAddress) |
unsigned long | CS_getMCLK (unsigned int baseAddress) |
unsigned int | CS_clearAllOscFlagsWithTimeout (unsigned int baseAddress, unsigned long timeout) |
void | CS_setDCOFreq (unsigned int baseAddress, unsigned int dcorsel, unsigned int dcofsel) |
#define __MSP430_HAS_SFR__ |
#define __MSP430_HAS_CS__ |
#define CS_ACLK 0x01 |
Referenced by CS_clockSignalInit(), CS_disableClockRequest(), and CS_enableClockRequest().
#define CS_MCLK 0x02 |
Referenced by CS_clockSignalInit(), CS_disableClockRequest(), and CS_enableClockRequest().
#define CS_SMCLK 0x04 |
Referenced by CS_clockSignalInit(), CS_disableClockRequest(), and CS_enableClockRequest().
#define CS_MODOSC MODCLKREQEN |
Referenced by CS_disableClockRequest(), and CS_enableClockRequest().
#define CS_XT1CLK_SELECT SELM__XT1CLK |
Referenced by CS_clockSignalInit().
#define CS_VLOCLK_SELECT SELM__VLOCLK |
Referenced by CS_clockSignalInit().
#define CS_DCOCLK_SELECT SELM__DCOCLK |
Referenced by CS_clockSignalInit().
#define CS_XT2CLK_SELECT SELM__XT2CLK |
Referenced by CS_clockSignalInit().
#define CS_MODOSC_SELECT SELM__MODOSC |
Referenced by CS_clockSignalInit().
#define CS_CLOCK_DIVIDER_1 DIVM__1 |
Referenced by CS_clockSignalInit().
#define CS_CLOCK_DIVIDER_2 DIVM__2 |
Referenced by CS_clockSignalInit().
#define CS_CLOCK_DIVIDER_4 DIVM__4 |
Referenced by CS_clockSignalInit().
#define CS_CLOCK_DIVIDER_8 DIVM__8 |
Referenced by CS_clockSignalInit().
#define CS_CLOCK_DIVIDER_16 DIVM__16 |
Referenced by CS_clockSignalInit().
#define CS_CLOCK_DIVIDER_32 DIVM__32 |
Referenced by CS_clockSignalInit().
#define CS_XT1_DRIVE0 XT1DRIVE_0 |
Referenced by CS_XT1Start(), and CS_XT1StartWithTimeout().
#define CS_XT1_DRIVE1 XT1DRIVE_1 |
Referenced by CS_XT1Start(), and CS_XT1StartWithTimeout().
#define CS_XT1_DRIVE2 XT1DRIVE_2 |
Referenced by CS_XT1Start(), and CS_XT1StartWithTimeout().
#define CS_XT1_DRIVE3 XT1DRIVE_3 |
Referenced by CS_XT1Start(), and CS_XT1StartWithTimeout().
#define CS_DCORSEL_0 DCOFSEL_0 |
Referenced by CS_setDCOFreq().
#define CS_DCORSEL_1 DCORSEL |
Referenced by CS_setDCOFreq().
#define CS_DCOFSEL_0 DCOFSEL_0 |
Referenced by CS_setDCOFreq().
#define CS_DCOFSEL_1 DCOFSEL_1 |
Referenced by CS_setDCOFreq().
#define CS_DCOFSEL_2 DCOFSEL_2 |
Referenced by CS_setDCOFreq().
#define CS_DCOFSEL_3 DCOFSEL_3 |
Referenced by CS_setDCOFreq().
#define CS_XT2DRIVE_4MHZ_8MHZ XT2DRIVE_0 |
Referenced by CS_XT2Start().
#define CS_XT2DRIVE_8MHZ_16MHZ XT2DRIVE_1 |
Referenced by CS_XT2Start().
#define CS_XT2DRIVE_16MHZ_24MHZ XT2DRIVE_2 |
Referenced by CS_XT2Start().
#define CS_XT2DRIVE_24MHZ_32MHZ XT2DRIVE_3 |
Referenced by CS_XT2Start(), and CS_XT2StartWithTimeout().
#define CS_XT2OFFG XT2OFFG |
Referenced by CS_clearFaultFlag(), and CS_faultFlagStatus().
#define CS_XT1OFFG XT1OFFG |
#define CS_XT1DRIVE_0 XT1DRIVE_0 |
#define CS_XT1DRIVE_1 XT1DRIVE_1 |
#define CS_XT1DRIVE_2 XT1DRIVE_2 |
#define CS_XT1DRIVE_3 XT1DRIVE_3 |
#define CS_VLOCLK_FREQUENCY 10000 |
Referenced by privateCSComputeCLKFrequency().
#define CS_MODCLK_FREQUENCY 5000000 |
Referenced by privateCSComputeCLKFrequency().
#define CS_LFMODCLK_FREQUENCY 39062 |
#define XT1_FREQUENCY_THRESHOLD 50000 |
Referenced by CS_bypassXT1(), CS_bypassXT1WithTimeout(), CS_XT1Start(), and CS_XT1StartWithTimeout().
#define CS_DCO_FREQ_1 5330000 |
Referenced by privateCSSourceClockFromDCO().
#define CS_DCO_FREQ_2 6670000 |
Referenced by privateCSSourceClockFromDCO().
#define CS_DCO_FREQ_3 8000000 |
Referenced by privateCSSourceClockFromDCO().
#define CS_DCO_FREQ_4 16000000 |
Referenced by privateCSSourceClockFromDCO().
#define CS_DCO_FREQ_5 20000000 |
Referenced by privateCSSourceClockFromDCO().
#define CS_DCO_FREQ_6 24000000 |
Referenced by privateCSSourceClockFromDCO().
void CS_setExternalClockSource | ( | unsigned int | baseAddress, |
unsigned long | XT1CLK_frequency, | ||
unsigned long | XT2CLK_frequency | ||
) |
This function sets the external clock sources XT1 and XT2 crystal oscillator frequency values. This function must be called if an external crystal XT1 or XT2 is used and the user intends to call CS_getMCLK, CS_getSMCLK, CS_getACLK and XT1Start, XT1ByPass, XT1StartWithTimeout, XT1ByPassWithTimeout.
baseAddress | is the base address of the CS module. |
XT1CLK_frequency | is the XT1 crystal frequencies in Hz |
XT2CLK_frequency | is the XT2 crystal frequencies in Hz |
References CS_XT1ClockFrequency, and CS_XT2ClockFrequency.
void CS_clockSignalInit | ( | unsigned int | baseAddress, |
unsigned char | selectedClockSignal, | ||
unsigned int | clockSource, | ||
unsigned int | clockSourceDivider | ||
) |
This function initializes each of the clock signals. The user must ensure that this function is called for each clock signal. If not, the default state is assumed for the particular clock signal. Refer MSP430ware documentation for CS module or Device Family User's Guide for details of default clock signal states. IMPORTANT: User must call CS_init function before calling this API. Otherwise CS register will remain with default values.
baseAddress | is the base address of the CS module. |
selectedClockSignal | - Valid values are CS_ACLK, CS_MCLK, CS_SMCLK, |
clockSource | is Clock source for the selectedClock Signal Valid values for FR57xx devices CS_XT1CLK_SELECT, CS_VLOCLK_SELECT, CS_DCOCLK_SELECT, CS_XT2CLK_SELECT Valid values for FR58xx/FR59xx devices CS_LFXTCLK_SELECT, CS_VLOCLK_SELECT, CS_DCOCLK_SELECT, [Not available for ACLK] CS_HFXTCLK_SELECT, [Not available for ACLK] CS_LFMODOSC_SELECT, CS_MODOSC_SELECT [Not available for ACLK] |
clockSourceDivider | - selected the clock divider to calculate clock signal from clock source. Valid values are CS_CLOCK_DIVIDER_1, [Default for ACLK] CS_CLOCK_DIVIDER_2, CS_CLOCK_DIVIDER_4, CS_CLOCK_DIVIDER_8, [Default for SMCLK and MCLK] CS_CLOCK_DIVIDER_16, CS_CLOCK_DIVIDER_32 |
Modified registers are CSCTL0, CSCTL2, CSCTL3
References ASSERT, CS_ACLK, CS_CLOCK_DIVIDER_1, CS_CLOCK_DIVIDER_16, CS_CLOCK_DIVIDER_2, CS_CLOCK_DIVIDER_32, CS_CLOCK_DIVIDER_4, CS_CLOCK_DIVIDER_8, CS_DCOCLK_SELECT, CS_MCLK, CS_MODOSC_SELECT, CS_SMCLK, CS_VLOCLK_SELECT, CS_XT1CLK_SELECT, CS_XT2CLK_SELECT, and HWREG.
void CS_XT1Start | ( | unsigned int | baseAddress, |
unsigned int | xt1drive | ||
) |
Initializes the XT1 crystal oscillator in low frequency mode. Loops until all oscillator fault flags are cleared, with no timeout. See the device-specific data sheet for appropriate drive settings. IMPORTANT: User must call CS_setExternalClockSource function to set frequency of external clocks before calling this function is call.
baseAddress | is the base address of the CS module. |
xt1drive | is the target drive strength for the XT1 crystal oscillator. Valid values: CS_XT1_DRIVE0, CS_XT1_DRIVE1, CS_XT1_DRIVE2, CS_XT1_DRIVE3. [Default] |
Modified registers are CSCTL0, CSCTL4, CSCTL5 and SFRIFG1
References ASSERT, CS_XT1_DRIVE0, CS_XT1_DRIVE1, CS_XT1_DRIVE2, CS_XT1_DRIVE3, CS_XT1ClockFrequency, HWREG, HWREGB, SFR_BASEADDRESS, and XT1_FREQUENCY_THRESHOLD.
void CS_bypassXT1 | ( | unsigned int | baseAddress | ) |
Bypasses the XT1 crystal oscillator. Loops until all oscillator fault flags are cleared, with no timeout. IMPORTANT: User must call CS_setExternalClockSource function to set frequency of external clocks this function is call.
baseAddress | is the base address of the CS module. |
Modified registers are CSCTL0, CSCTL4, CSCTL5, SFRIFG1
References ASSERT, CS_XT1ClockFrequency, HWREG, HWREGB, SFR_BASEADDRESS, and XT1_FREQUENCY_THRESHOLD.
unsigned short CS_bypassXT1WithTimeout | ( | unsigned int | baseAddress, |
unsigned long | timeout | ||
) |
Bypasses the XT1 crystal oscillator with time out. Loops until all oscillator fault flags are cleared or until a timeout counter is decremented and equals to zero.IMPORTANT: User must call CS_setExternalClockSource to set frequency of external clocks before calling this function
baseAddress | is the base address of the CS module. |
timeout | is the count value that gets decremented every time the loop that clears oscillator fault flags gets executed. |
Modified registers are CSCTL0, CSCTL4, CSCTL5, SFRIFG1
References ASSERT, CS_XT1ClockFrequency, HWREG, HWREGB, SFR_BASEADDRESS, STATUS_FAIL, STATUS_SUCCESS, and XT1_FREQUENCY_THRESHOLD.
unsigned short CS_XT1StartWithTimeout | ( | unsigned int | baseAddress, |
unsigned int | xt1drive, | ||
unsigned long | timeout | ||
) |
Initializes the XT1 crystal oscillator in low frequency mode with timeout. Loops until all oscillator fault flags are cleared or until a timeout counter is decremented and equals to zero. See the device-specific datasheet for appropriate drive settings. IMPORTANT: User must call CS_setExternalClockSource function to set frequency of external clocks before calling this function is call.
baseAddress | is the base address of the CS module. |
xt1drive | is the target drive strength for the XT1 crystal oscillator. Valid values are CS_XT1_DRIVE0, CS_XT1_DRIVE1, CS_XT1_DRIVE2, CS_XT1_DRIVE3 [Default Value] |
timeout | is the count value that gets decremented every time the loop that clears oscillator fault flags gets executed. |
Modified registers are CSCTL0, CSCTL4, CSCTL5 and SFRIFG1
References ASSERT, CS_XT1_DRIVE0, CS_XT1_DRIVE1, CS_XT1_DRIVE2, CS_XT1_DRIVE3, CS_XT1ClockFrequency, HWREG, HWREGB, SFR_BASEADDRESS, STATUS_FAIL, STATUS_SUCCESS, and XT1_FREQUENCY_THRESHOLD.
void CS_XT1Off | ( | unsigned int | baseAddress | ) |
Stops the XT1 oscillator using the XT1OFF bit.
baseAddress | is the base address of the CS module. |
Modified registers are CSCTL4
References HWREG.
void CS_XT2Start | ( | unsigned int | baseAddress, |
unsigned int | xt2drive | ||
) |
Initializes the XT2 crystal oscillator, which supports crystal frequencies between 4 MHz and 32 MHz, depending on the selected drive strength. Loops until all oscillator fault flags are cleared, with no timeout. See the device-specific data sheet for appropriate drive settings. NOTE: User must call CS_setExternalClockSource to set frequency of external clocks before calling this function.
baseAddress | is the base address of the CS module. |
xt2drive | is the target drive strength for the XT2 crystal oscillator. Valid values are CS_XT2DRIVE_4MHZ_8MHZ, CS_XT2DRIVE_8MHZ_16MHZ, CS_XT2DRIVE_16MHZ_24MHZ, CS_XT2DRIVE_24MHZ_32MHZ. [Default] |
Modified registers are CSCTL4, CSCTL5, SFRIFG1
References ASSERT, CS_XT2ClockFrequency, CS_XT2DRIVE_16MHZ_24MHZ, CS_XT2DRIVE_24MHZ_32MHZ, CS_XT2DRIVE_4MHZ_8MHZ, CS_XT2DRIVE_8MHZ_16MHZ, HWREG, HWREGB, and SFR_BASEADDRESS.
void CS_bypassXT2 | ( | unsigned int | baseAddress | ) |
Bypasses the XT2 crystal oscillator, which supports crystal frequencies between 4 MHz and 32 MHz. Loops until all oscillator fault flags are cleared, with no timeout. NOTE: User must call CS_setExternalClockSource to set frequency of external clocks before calling this function.
baseAddress | is the base address of the CS module. |
Modified registers are CSCTL4, CSCTL5, SFRIFG1
References ASSERT, CS_XT2ClockFrequency, HWREG, HWREGB, and SFR_BASEADDRESS.
unsigned short CS_XT2StartWithTimeout | ( | unsigned int | baseAddress, |
unsigned int | xt2drive, | ||
unsigned long | timeout | ||
) |
Initializes the XT2 crystal oscillator, which supports crystal frequencies between 4 MHz and 32 MHz, depending on the selected drive strength. Loops until all oscillator fault flags are cleared or until a timeout counter is decremented and equals to zero. See the device-specific data sheet for appropriate drive settings. NOTE: User must call CS_setExternalClockSource to set frequency of external clocks before calling this function.
baseAddress | is the base address of the CS module. |
xt2drive | is the target drive strength for the XT2 crystal oscillator. Valid values are CS_XT2_4MHZ_8MHZ, CS_XT2_8MHZ_16MHZ, CS_XT2_16MHZ_24MHZ CS_XT2_24MHZ_32MHZ [Default Value] |
timeout | is the count value that gets decremented every time the loop that clears oscillator fault flags gets executed. |
Modified registers are CSCTL4, CSCTL5, SFRIFG1
References ASSERT, CS_XT2ClockFrequency, CS_XT2DRIVE_24MHZ_32MHZ, HWREG, HWREGB, SFR_BASEADDRESS, STATUS_FAIL, and STATUS_SUCCESS.
unsigned short CS_bypassXT2WithTimeout | ( | unsigned int | baseAddress, |
unsigned long | timeout | ||
) |
Bypasses the XT2 crystal oscillator, which supports crystal frequencies between 4 MHz and 32 MHz. Loops until all oscillator fault flags are cleared or until a timeout counter is decremented and equals to zero. NOTE: User must call CS_setExternalClockSource to set frequency of external clocks before calling this function.
baseAddress | is the base address of the CS module. |
timeout | is the count value that gets decremented every time the loop that clears oscillator fault flags gets executed. |
Modified registers are CSCTL4, CSCTL5, SFRIFG1G
References ASSERT, CS_XT2ClockFrequency, HWREG, HWREGB, SFR_BASEADDRESS, STATUS_FAIL, and STATUS_SUCCESS.
void CS_XT2Off | ( | unsigned int | baseAddress | ) |
Stops the XT2 oscillator using the XT2OFF bit.
baseAddress | is the base address of the CS module. |
Modified registers are CSCTL4
References HWREG.
void CS_enableClockRequest | ( | unsigned int | baseAddress, |
unsigned char | selectClock | ||
) |
Enables conditional module requests
baseAddress | is the base address of the CS module. |
selectClock | selects specific request enables. Valid values are CS_ACLK, CS_SMCLK, CS_MCLK, CS_MODOSC |
Modified registers are CSCTL6
References ASSERT, CS_ACLK, CS_MCLK, CS_MODOSC, CS_SMCLK, and HWREGB.
void CS_disableClockRequest | ( | unsigned int | baseAddress, |
unsigned char | selectClock | ||
) |
Disables conditional module requests
baseAddress | is the base address of the CS module. |
selectClock | selects specific request enables. Valid values are CS_ACLK, CS_SMCLK, CS_MCLK, CS_MODOSC |
Modified registers are CSCTL6
References ASSERT, CS_ACLK, CS_MCLK, CS_MODOSC, CS_SMCLK, and HWREGB.
unsigned char CS_faultFlagStatus | ( | unsigned int | baseAddress, |
unsigned char | mask | ||
) |
Gets the current CS fault flag status.
baseAddress | is the base address of the CS module. |
mask | is the masked interrupt flag status to be returned. Mask parameter can be either any of the following selection.
|
References ASSERT, CS_XT2OFFG, and HWREGB.
void CS_clearFaultFlag | ( | unsigned int | baseAddress, |
unsigned char | mask | ||
) |
Clears the current CS fault flag status for the masked bit.
baseAddress | is the base address of the CS module. |
mask | is the masked interrupt flag status to be returned. mask parameter can be any one of the following
|
Modified registers are CSCTL5
References ASSERT, CS_XT2OFFG, and HWREGB.
unsigned long CS_getACLK | ( | unsigned int | baseAddress | ) |
Get the current ACLK frequency.
If a oscillator fault is set, the frequency returned will be based on the fail safe mechanism of CS module. The user of this API must ensure that CS_externalClockSourceInit API was invoked before in case XT1 or XT2 is being used. User must call CS_init before calling this function.
baseAddress | is the base address of the CS module. |
References HWREG, and privateCSComputeCLKFrequency().
unsigned long CS_getSMCLK | ( | unsigned int | baseAddress | ) |
Get the current SMCLK frequency.
If a oscillator fault is set, the frequency returned will be based on the fail safe mechanism of CS module. The user of this API must ensure that CS_externalClockSourceInit API was invoked before in case XT1 or XT2 is being used. User must call CS_init before calling this function.
baseAddress | is the base address of the CS module. |
References HWREG, HWREGB, and privateCSComputeCLKFrequency().
unsigned long CS_getMCLK | ( | unsigned int | baseAddress | ) |
Get the current MCLK frequency.
If a oscillator fault is set, the frequency returned will be based on the fail safe mechanism of CS module. The user of this API must ensure that CS_externalClockSourceInit API was invoked before in case XT1 or XT2 is being used. User must call CS_init before calling this function.
baseAddress | is the base address of the CS module. |
References HWREG, and privateCSComputeCLKFrequency().
unsigned int CS_clearAllOscFlagsWithTimeout | ( | unsigned int | baseAddress, |
unsigned long | timeout | ||
) |
Clears all the Oscillator Flags
baseAddress | is the base address of the CS module. |
timeout | is the count value that gets decremented every time the loop that clears oscillator fault flags gets executed. |
Modified registers are CSCTL5, SFRIFG1G
References HWREGB, and SFR_BASEADDRESS.
void CS_setDCOFreq | ( | unsigned int | baseAddress, |
unsigned int | dcorsel, | ||
unsigned int | dcofsel | ||
) |
Set DCO frequency
Before invoking the this function, the user must call CS_init.
baseAddress | is the base address of the CS module. |
dcofsel | selects valid frequency options based on dco frequency range selection (dcorsel). Valid options are: For FR57xx devices: CS_DCOFSEL_0 - Low frequency option 5.33MHZ. High frequency option 16MHz. CS_DCOFSEL_1 - Low frequency option 5.33MHZ. High frequency option 16MHz. CS_DCOFSEL_2 - Low frequency option 6.67MHZ. High frequency option 20MHz. CS_DCOFSEL_3 - Low frequency option 8MHZ. High frequency option 24MHz. [Default] For FR58xx/FR59xx devices: CS_DCOFSEL_0 - Low frequency option 1 MHZ. High frequency option 1 MHz. CS_DCOFSEL_1 - Low frequency option 2.67 MHZ. High frequency option 5.33 MHz. CS_DCOFSEL_2 Low frequency option 3.33 MHZ. High frequency option 6.67 MHz. CS_DCOFSEL_3 Low frequency option 4 MHZ. High frequency option 8 MHz. CS_DCOFSEL_4 Low frequency option 5.33 MHZ. High frequency option 16 MHz. |
dcorsel | selects frequency range option. Valid options are: CS_DCORSEL_0 [Default] CS_DCORSEL_1 |
References ASSERT, CS_DCOFSEL_0, CS_DCOFSEL_1, CS_DCOFSEL_2, CS_DCOFSEL_3, CS_DCORSEL_0, CS_DCORSEL_1, and HWREG.