The CTIMER section of the user manual for the LPC802 has a typo. It should be PRESETCTRL0 not 1. Seems to be confirmed in Table 64, as well as in the lpc802.h header file, so that resetting should look like this, I believe:
// Reset the CTIMER module via PresetControl 0 register
// bit is 1 out of reset (cleared reset). Make it 0, then 1.
SYSCON->PRESETCTRL0 &= ~(SYSCON_PRESETCTRL0_CTIMER0_RST_N_MASK); // 0
SYSCON->PRESETCTRL0 |= (SYSCON_PRESETCTRL0_CTIMER0_RST_N_MASK); // 1
Hi James,
I think you are right. I will escalate it to document to have it fixed.
Thanks you for bringing the problem to our attention.
Have a great day,
Jun Zhang
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------