Other Parts Discussed in Thread: TMS570LS1114
Having trouble using the LP LFO as a source for RT1 per table 2.36 of section 2.5.1.18 of the technical resource manual for the LS09x-07x part.
When attempting to select RTI1DIV to either 2 or 3 (/4 or /8) the counter does not appear to run correctly.
I notice online that only the /2 selection is publicized, and it appears to work. I am confused as to the following:
sys/rclksrc is 0x00000104 (/2 using lf lpo)
In an accumulation period of 1 second I get (approximately) 5000 counts.
This appears to be a /16 ?
If I attempt to change the '1' (RTI1DIV) to 2 or 3 I get rather bizzare behavior of the RTI interrupt (seems to occur 4 times.)
Would someone please help identify any additional dividers of the lf lpo clock to explain the /16?
Also if there are any errata for this register rclksrc please help locate it.
Note: I do have the bias turned on and the halcodegen has a call to trimLPO()
PS: There is another contradiction to the TRM in the generated code (which I guess is to support a variant with a RTI2 timer)
void mapClocks(void)
/** - Setup RTICLK1 and RTICLK2 clocks */
systemREG1->RCLKSRC = (uint32)((uint32) 1U << 24U) << not in the datasheet ...
| (uint32)((uint32) SYS_VCLK << 16U)
| (uint32)((uint32) 1U << 8U)
| (uint32)((uint32) SYS_VCLK << 0U);