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

PSoC™ 6 Forum Discussions

antrc_3264986
Level 3
Level 3

I am trying to create a timeout interrupt where the time is settable by the SW.  <TCPWM_name>_TriggerReload(); TriggerStart() Doesnot work. The SetPeriod value is ignored.

0 Likes
1 Solution
ajays_86
Employee
Employee
First like received

Hi andrew.trobia_3264986,andrew.trobia_3264986

Please use the attached project for generating the timeout. Let me know if you have any query.

Thanks,

Ajay

View solution in original post

0 Likes
2 Replies
ajays_86
Employee
Employee
First like received

Hi andrew.trobia_3264986,andrew.trobia_3264986

Please use the attached project for generating the timeout. Let me know if you have any query.

Thanks,

Ajay

0 Likes
antrc_3264986
Level 3
Level 3

In essence, the difference is the  call:

Cy_TCPWM_Enable_Multiple(PumpSensor_timeout_HW, PumpSensor_timeout_CNT_MASK);

This call was not obvious to me when I read the documentation. I don't understand what it does. However, thanks for finding it. The documentation talked about reload in the specific driver code. This call is underneath in the general driver. I missed that totally.

I had to strip down the project to the example I gave you for IP reasons. Giving the answer the stripped version was also a help. Thanks!

0 Likes