Other Parts Discussed in Thread: OMAPL138
Based on L138 Starterware example: C:\ti\OMAPL138_StarterWare_1_10_04_01\build\c674x\cgt_ccs\omapl138\lcdkOMAPL138\timer
/******************************************************************************
** INTERNAL MACRO DEFINITIONS
*******************************************************************************/
#define STR_LEN (13)
//#define TMR_PERIOD_LSB32 (0x17FFFFFF)
#define TMR_PERIOD_LSB32 (0x07FFFFFF)
#define TMR_PERIOD_MSB32 (0x1)
//#define TMR_PERIOD_MSB32 (0x0)
the example set timer work in interrupt mode to output count to console every 1 second.
But set TMR_PERIOD_MSB32 =1 or any value other than 0, the output 9 to 8 very quickly, it should be just 1 second, then 7, 6, 5 with normally interval, but output 4 only 1 second after 5., then 3, 2. 1, and 0 only 1 second after 1. like below:
9.8...........7...........6...........5,4...........3.............2.............1,0.
Seems sometimes the TMR_PERIOD_MSB32 doesn't work.
Please help verify.