Hi, I am debugging my program, I found that don't reset the TRB bit in the ConfigCpuTimer function.
Why?

thanks
guillermo
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, I am debugging my program, I found that don't reset the TRB bit in the ConfigCpuTimer function.
Why?

thanks
guillermo
Guillermo -
The TIMERxTCR register TRB bit ALWAYS reads back "0". See the System Control and Interrupts Reference Guide for your device. The bit description of TRB says - "The TRB bit is always read as zero. Writes of 0 are ignored."
To check if the action of writing a 1 to TRB actually works, you can check that TIMH:TIM really does get loaded with th evalue in PRDH:PRD and /or PSCH:PSC really does get loaded with the value in TDDRH:TDDR after you write a 1 to TRB.
Regards,
Chrissy