Other Parts Discussed in Thread: SYSCONFIG
Tool/software:
Hi,
I'm using SysConfig 1.18.1 with Industrial Communications SDK 9.1.0.03.
Via syscfg I select DMTIMER1.
then I see generated ti_dpl_config.h
#define CONFIG_TIMER0 (0u)
#define CONFIG_TIMER0_BASE_ADDR (0x2410000u)
#define CONFIG_TIMER0_INT_NUM (153u)
#define CONFIG_TIMER0_INPUT_CLK_HZ (25000000u)
#define CONFIG_TIMER0_INPUT_PRE_SCALER (1u)
/* This represents the required time period 'floored' to nearest usec */
#define CONFIG_TIMER0_USEC_PER_TICK (62u)
/* This represents the required time period 'floored' to nearest nsec */
#define CONFIG_TIMER0_NSEC_PER_TICK (62000u)
/* This represents the actual time period 'floored' to nearest nsec */
#define CONFIG_TIMER0_NSEC_PER_TICK_ACTUAL (62000u)
There's seems to be mismatch of the base address or the interrupt num which according to the documentation is for DMTIMER6.
The timer works ok but the latency from expiration to the ISR is almost 2usecs !
Thanks,
Eli