lvia and lvid programmed as interrupt source instead of reset

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

cross mob
AlVa_264671
Level 5
Level 5
25 sign-ins First like given First like received

Hi everyone !

   

Thank you for the possibility to make question here!

   

My code  is using  the internal EEPROM.

   

I am trying to follow the recommendation of Psoc_3 Architecture_TRM regarding  Lvia and lvid as reset sources.

   

What I am trying to do is  set  those reset sources as interrupt and not reset.

   

I have attached the .c file with both register needed to write to avoid reset.

   

I  do not know what I am missing, but the writing to  register  "RESET_CR1" doesn't work.

   

Writing to RESET_CR3 does work.

   

 

   

Any help will be very appreciated.

0 Likes
6 Replies
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

I would recommend you post the entire project -

   

 

   

    

   

          

   

“File”                                                             Creator

   

“Create Workspace Bundle”

   

 

   

 

   

Regards, Dana.

0 Likes
AlVa_264671
Level 5
Level 5
25 sign-ins First like given First like received

Thank you very much Dana, I'll do that.

0 Likes
lock attach
Attachments are accessible only for community members.
AlVa_264671
Level 5
Level 5
25 sign-ins First like given First like received
        Hi Dana , from last Friday I am trying to log in at this forum. Please see attached Bundle and PDF. Thank you very much.   
0 Likes
ETRO_SSN583
Level 9
Level 9
250 likes received 100 sign-ins 5 likes given

Did you file a CASE on this ?

   

 

   

Regards, Dana.

0 Likes
Anonymous
Not applicable

 Hi,

   

 

   

// Enable LVID and LVIA circuits

   

CY_SET_REG8(CYREG_RESET_CR1,CY_GET_REG8(CYREG_RESET_CR1)|0x03);

   

 

   

// Disable LVID and LVIA resets by clearing bit 7 in RESET_CR3 register

   

CY_SET_REG8(CYREG_RESET_CR3,CY_GET_REG8(CYREG_RESET_CR3)&0x7F);

   

 

   

 

   

Does it work for you ?

   

 

   

Thank you,

   

Pavan

0 Likes
AlVa_264671
Level 5
Level 5
25 sign-ins First like given First like received
        Thank you very much Pavan ! Yes, it does ! Regards   
0 Likes