TLF35584 Write to the protected register

Announcements

From sunburn to sun earn – we’ve got the power! Watch our #poweringgreen videos now.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
xiaoxuan
Level 3
Level 3
50 sign-ins 25 replies posted 25 sign-ins

hello,

I have a problem initializing TLF35584, please help me out

1. The write operation on the WDCFG0(0x06) register and SYSPCFG1(0x05) register has no effect. Please help me find the reason

     1.1 Program diagram

xiaoxuan_0-1678263540619.png

 

  1.2  PROTSTAT register oscillograph display

xiaoxuan_2-1678262393994.png

2. What I understand from the picture below is that if I want to enter normal mode,

I need to write: 0xAA05 in the DEVCTRL register

I need to write: 0xACFB in the DEVCTRLN register

Am I understanding this correctly?

xiaoxuan_0-1678261871372.png

 

0 Likes
1 Solution
Polimera
Moderator
Moderator
Moderator
25 solutions authored 100 sign-ins 50 replies posted

Hi xiaoxuan,

TWDCGO is not the register .. Instead it should be WDCFGO

kranthi

View solution in original post

0 Likes
5 Replies
Polimera
Moderator
Moderator
Moderator
25 solutions authored 100 sign-ins 50 replies posted

Hi Xiaoxuan,

Can you cross-check whether your spi communication is proper or not?  The protected registers are 8 bit data registers. Please make sure you didn't provide the write access to any other registers between unlock and lock signals.. An interrupt is generated and the number of
successfully detected UNLOCK sequence bytes is set to zero if a write access to any other register then
PROTCFG is detected in between. I have shared some code examples in our previous conversations. Please have a look into it.

Could you please share your complete project file, so that we can review it.  If you don't want to share it in the public domain, you can send it to my official mail id.

 

For question 2: 

You need to do bit wise inversion. 

0xAA05 (1010 1010 0000 0101) DEVCTRL =  0x55FA(0101 0101 1111 1010) DEVCTRLN.

Regards,

Kranthi

 

0 Likes

hello,

I am very sorry that I cannot send you the complete process. I have tested my SPI communication again, and I am very sure that there is no problem with my SPI communication. The following is my verification process

    ① The PROTCFG register is not written, and the oscilloscope displays the value of the PROTSTAT register

xiaoxuan_0-1678269417448.png

    ②Write the PROTCFG register (unlock operation), and the oscilloscope displays the value of the PROTSTAT register

xiaoxuan_2-1678269682371.png

 

 

 

0 Likes

hello

My program flow is as follows:

 ①unlock

 ②Disable watchdog

 ③The ERR monitoring function is disabled

 ④lock

 ⑤Access the PROTSTAT register

0 Likes
Polimera
Moderator
Moderator
Moderator
25 solutions authored 100 sign-ins 50 replies posted

Hi xiaoxuan,

TWDCGO is not the register .. Instead it should be WDCFGO

kranthi

0 Likes
Polimera
Moderator
Moderator
Moderator
25 solutions authored 100 sign-ins 50 replies posted

Hi Xiaoxuan,

Can I close the ticket? 

Kranthi

0 Likes