Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

PIN CHANGE INTERRUPT on ATmega16 for a change of any PORTx p

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR
View previous topic :: View next topic  
Author Message
Jan_Huygh

Bascom Member



Joined: 24 Nov 2005
Posts: 26
Location: VILVOORDE

belgium.gif
PostPosted: Mon Nov 21, 2011 3:27 pm    Post subject: PIN CHANGE INTERRUPT on ATmega16 for a change of any PORTx p Reply with quote

The webmaster can delete this post.
After looking in the parametric table I figured out that the solution is to use the ATmega164A... it does support pin change interrupt on any port and it is pin compatible with the ATmega16.


I've been scanning trought the ATmega16 data sheet but could not find a way to trigger an interrupt when any pin on PORTB or PORTD changes.
Probably this means it can not be done... but before I start writing this as a polling routine I tought it was wise to ask here if I overlooked it.
So can I trigger an interrrupt when any pin on PORTB or PORTD changes on an ATmega16?

Jan Huygh
Back to top
View user's profile Visit poster's website
MAK3

Bascom Member



Joined: 24 Sep 2010
Posts: 450
Location: Germany

germany.gif
PostPosted: Mon Nov 21, 2011 8:11 pm    Post subject: Reply with quote

Quote:
I've been scanning trought the ATmega16 data sheet but could not find a way to trigger an interrupt when any pin on PORTB or PORTD changes.


You can do this with INT0....INT2 but not with any pin.
You can check all other Pin's in the main Loop.

(ATXMEGA can do it on any pin, but even here you need to check which pin fires the interrupt)

MAK3
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum