Page 1 of 1

how to monitor change of a group pins

Posted: Thu Jul 28, 2016 12:08 pm
by leo.ni
Hi,all. i want to monitor a change of a group pins using interrupt, how do i configure it ? Thanks a lot!

Re: how to monitor change of a group pins

Posted: Fri Jul 29, 2016 12:58 am
by blue_z
Insufficient information to provide a practical answer.
In kernel or user space or bare-metal?

Re: how to monitor change of a group pins

Posted: Mon Aug 01, 2016 3:47 am
by leo.ni
i am sorry for reply later! i use bare-metal。Thanks a lot!

Re: how to monitor change of a group pins

Posted: Tue Aug 02, 2016 7:55 pm
by blue_z
Depending on the quantity of pins and how much latency you can tolerate, you could either generate an interrupt on each pin, or use a periodic timer interrupt to sample all the pin states.
The SoftPack should have example code.

Regards

Re: how to monitor change of a group pins

Posted: Thu Aug 04, 2016 12:15 pm
by leo.ni
Thank a lot! i will look for the sample in soft package.