ADC14 & interrupts in CY8C29466

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

cross mob
Anonymous
Not applicable

Hello community,

   

 

   

I´m using a CY8C29466 to read some analog signals, communicate via UART and SPI and make a timer.

   

I´m using interrupt for the Uart´s, SPI and timer. Everithing work fine, until I enable the AD. If it execute the commands:
    AD_14bits_Start(AD_14bits_HIGHPOWER);
    AD_14bits_StartAD();

   

none of the interrupts work. Has someone experienced something like this? Could it be some configuration?

   

I would appreciate some help.

   

 

   

Regards,

   

Michel

0 Likes
2 Replies
TeHe_281121
Level 3
Level 3

Hi Michel,

   

This may shed some light on your problem.

   

www.planetpsoc.com/component/content/article/57-psoc-1-adcs--the-five-golden-rules.html

0 Likes
Anonymous
Not applicable

Hello all,

   

 

   

Thanks for the link Terrence.

   

I´ve found the problem, but it seems a little strange to me. I´ve made a mistake and called a ISR from the delta_sigmaINT.asm.

   

The ISR is of another module, and when I enabled the AD, everything stopped working. I suppose the interrupt calling was breaking my program. I hadn´t enable the AD interrupt, so I found this behavior strange. Is it coherent?

   

 

   

Thanks,

   

 

   

Michel

0 Likes