Timer
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_TIMERTABLE is an array of pointers located at ROM_APITABLE[11].
ROM_TimerMatchSet64 is a function pointer located at ROM_TIMERTABLE[26].
Parameters:
ui32Base is the base address of the timer module.
ui64Value is the match value.
Description:
This function sets the match value for a timer. This value is used in capture count mode to
determine when to interrupt the processor and in PWM mode to determine the duty cycle of
the output signal.
Returns:
None.
21.2.1.21 ROM_TimerPrescaleGet
Get the timer prescale value.
Prototype:
uint32_t
ROM_TimerPrescaleGet(uint32_t ui32Base,
uint32_t ui32Timer)
ROM Location:
ROM_APITABLE is an array of pointers located at 0x0100.0010.
ROM_TIMERTABLE is an array of pointers located at ROM_APITABLE[11].
ROM_TimerPrescaleGet is a function pointer located at ROM_TIMERTABLE[11].
Parameters:
ui32Base is the base address of the timer module.
ui32Timer specifies the timer; must be one of TIMER_A or TIMER_B.
Description:
This function gets the value of the input clock prescaler. The prescaler is only operational when
in half-width mode and is used to extend the range of the half-width timer modes.
Returns:
The value of the timer prescaler.
21.2.1.22 ROM_TimerPrescaleMatchGet
Get the timer prescale match value.
Prototype:
uint32_t
ROM_TimerPrescaleMatchGet(uint32_t ui32Base,
uint32_t ui32Timer)
244 April 8, 2013