AnsweredAssumed Answered

How to change the bit of TDCEN and how to confirm it is changed?

Question asked by Kim JungHyun on Apr 20, 2017
Latest reply on Apr 24, 2017 by Petr Stancik

Hi.

I should check the bit value of the TDCEN but I have a problem.

 

My problem is as below.

How can I change the bit of TDCEN and confirm whether it is changed or not?

 - I changed the bit of TDCEN at the EmbSys Registers but these bits were not changed.

 - So I changed these bits at the source code, but I was not sure that these bits were changed.

   Because these bits at the EmbSys Registers were changed(1) during RUN but were returned to initial value(0) during SUSPEND.

 - In other words, I could not confirm that  the bit value of TDCEN was changed.

 

 

■ At the EmbSys Registers :

 1. I changed TDCEN bit to 1

 2. but this bit was not changed (the bit was returned to initial value 0, TDC is disabled)

 

■ At the source code : 

 1. I changed TDCEN bit to 1

< Before code change >

< After code change : from x to 1 >

 2. and TDCEN bit was changed (enabled) during RUN.

 3. but TDCEN bit was returned to initial value (disabled) during SUSPEND

Thank you

Kim.

Outcomes