how to monitor change of a group pins

Discussion around AT91RM9200 and SAM9 Series Products.

Moderator: nferre

leo.ni
Posts: 52
Joined: Mon Jun 06, 2016 4:20 am

how to monitor change of a group pins

Thu Jul 28, 2016 12:08 pm

Hi,all. i want to monitor a change of a group pins using interrupt, how do i configure it ? Thanks a lot!
blue_z
Location: USA
Posts: 1560
Joined: Thu Apr 19, 2007 10:15 pm

Re: how to monitor change of a group pins

Fri Jul 29, 2016 12:58 am

Insufficient information to provide a practical answer.
In kernel or user space or bare-metal?
leo.ni
Posts: 52
Joined: Mon Jun 06, 2016 4:20 am

Re: how to monitor change of a group pins

Mon Aug 01, 2016 3:47 am

i am sorry for reply later! i use bare-metal。Thanks a lot!
blue_z
Location: USA
Posts: 1560
Joined: Thu Apr 19, 2007 10:15 pm

Re: how to monitor change of a group pins

Tue Aug 02, 2016 7:55 pm

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
leo.ni
Posts: 52
Joined: Mon Jun 06, 2016 4:20 am

Re: how to monitor change of a group pins

Thu Aug 04, 2016 12:15 pm

Thank a lot! i will look for the sample in soft package.

Return to “SAM9 ARM9 MPU”

Who is online

Users browsing this forum: Google [Bot] and 2 guests