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

PSoC™ Creator & Designer

Anonymous
Not applicable
        how to enable the LVD interruput?and how to revise the LVD ISR   
0 Likes
3 Replies
pushekm_21
Employee
10 likes received 5 likes given First like received
Employee
        For enabling the LVD interrupts you have to set the LVD level either from the device editor or from VLT_CR register. For enabling the interrupt you have to set the LSB of INT_MSK0 register. This bit is responsible for enabling the interrupts for LVD.   
   
For revising the LVD ISR, you have to place a jump or a call instruction to the self defined ISR placed in assembly or C language. For placing the LJMP or CALL instruction you should modify the boot.tpl. Modifying the contents in boot.tpl will preserve the contents even when the project code is regenerated.   
Anonymous
Not applicable

 This is great!  Thank you for your answer.  It was just what I was looking for.

   

I have a battery operated application.  I plan on using the LVD to flag weak or dead batteries.

   

 

   

Best Regards,

   

 

   

Bill Grimm

   

Avorex Design

0 Likes
ETRO_SSN583
Level 9
5 likes given 1000 replies posted 750 replies posted
Level 9

This might be useful as well, also has LVD info -

   

 

   

www.cypress.com/    AN32200

   

 

   

Regards, Dana.

0 Likes