PRCM APIs
www.ti.com
528
SWRU543–January 2019
Submit Documentation Feedback
Copyright © 2019, Texas Instruments Incorporated
Power, Reset, and Clock Management
– PRCM_HIB_LOW_LEVEL: GPIO is held low (0).
– PRCM_HIB_HIGH_LEVEL: GPIO is held high (1).
– PRCM_HIB_FALL_EDGE: GPIO changes from High to Low.
– PRCM_HIB_RISE_EDGE: GPIO changes from Low to High.
Return: None
● void PRCMHibernateIntervalSet(unsigned long long ullTicks)
Description: This function sets the HIB wake-up interval based on the current slow clock count. The 48-
bit timer is clocked at 32.768 kHz and triggers a wakeup when the counter reaches a particular value. The
function computes the wake-up count value by adding a specified interval to the current value of the slow
clock counter.
Parameter: ullTicks: Wake-up interval in 32.768-kHz ticks
Return: None
● The application can put the system in HIB by invoking the following API:
void PRCMHibernateEnter (void)
Description: This function puts the system into hibernate power mode.
Parameter: None
Return: None
Two 32-bit OCR registers retained during the hibernate power mode can be accessed using the following
APIs:
● void PRCMOCRRegisterWrite(unsigned char ucIndex, unsigned long ulRegValue)
Description: This function writes into a specified OCR register.
Parameter:
• ucIndex: Selects one of two available registers, 0 or 1
• ulRegValue: 32-bit value
Return: None
● unsigned long PRCMOCRRegisterRead(unsigned char ucIndex)
Description: This function reads from a specified OCR register.
Parameter: ucIndex: Selects one of two available registers, 0 or 1
Return: Returns a 32-bit value read from a specified OCR register.
15.3.10 Slow Clock Counter
The CC32xx has a 48-bit on-chip always-on slow counter running at 32.768 kHz, which can wake up the
device from hibernate low-power mode, or generate an interrupt to the core on counting a particular match
value. The following API returns the current value of the counter:
unsigned long PRCMSlowClkCtrGet(void)
Description: This function reads from a specified OCR register.
Parameter: None
Return: None
To set the match value to receive an interrupt call, use the following API with the appropriate value:
void PRCMSlowClkCtrMatchSet(unsigned long long ullTicks)
Description: This function sets the match value of the slow clock triggered interrupt.
Parameter: ullTicks: 48-bit match value
Return: None