Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

More than 2 INT pins..

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
zolsi

Bascom Member



Joined: 24 Jan 2006
Posts: 51

belgium.gif
PostPosted: Sat Mar 25, 2006 4:46 pm    Post subject: More than 2 INT pins.. Reply with quote

Wich atmel avr µc is handle by bascom and has more than 2 interutp pins ? (atmega103 ?)


Thank you !


Cool
Back to top
View user's profile
bzijlstra

Bascom Ambassador



Joined: 30 Dec 2004
Posts: 1179
Location: Tilburg - Netherlands

netherlands.gif
PostPosted: Sat Mar 25, 2006 5:31 pm    Post subject: more than one interrupt.... Reply with quote

Atmega32 has two pins for interrupts. And how do I know that? I go to www.avrfreaks.net and click devices. Get a list with all AVR's with all features and a layout of the chip.

Lot's of info on that site.

Have fun
Ben Zijlstra
Back to top
View user's profile Visit poster's website
zolsi

Bascom Member



Joined: 24 Jan 2006
Posts: 51

belgium.gif
PostPosted: Sat Mar 25, 2006 7:28 pm    Post subject: Reply with quote

haha

very friendly answer thank you !!



btw, i asked for MORE than 2 INT pins ...
Quote:
Atmega32 has two pins for interrupts.
Back to top
View user's profile
i.dobson

Bascom Expert



Joined: 05 Jan 2006
Posts: 1571
Location: Basel, Switzerland

switzerland.gif
PostPosted: Sat Mar 25, 2006 7:42 pm    Post subject: Reply with quote

Hi,

Have a look at a mega48 or mega88. They have a 2 external interrupts and several pin change interrupts on port C.

Regards
Ian Dobson

_________________
Walking on water and writing software to specification is easy if they're frozen.
Back to top
View user's profile
Luciano

Bascom Member



Joined: 29 Nov 2004
Posts: 3149
Location: Italy

blank.gif
PostPosted: Sat Mar 25, 2006 8:11 pm    Post subject: Reply with quote

Hi,

About the pin change interrupts.
(ATmega48, ATmega88, ATmega168).

There are 3 Interrupt Vectors (Interrupt routines) for the
pin change interrupts.

PCINT0 for the pins PCINT7..0.
PCINT1 for the pins PCINT14..8
PCINT2 for the pins PCINT23..16


Best regards,

Luciano

Interrupt Vectors in ATmega168:
Back to top
View user's profile
zolsi

Bascom Member



Joined: 24 Jan 2006
Posts: 51

belgium.gif
PostPosted: Sat Mar 25, 2006 8:45 pm    Post subject: Reply with quote

Thank you for this infos.
in fact i need 3 int pins for : the easy tcp/ip + 2 flowmeters. Wich µc would you choose ? Pin change int pins are the same as int pins ?


Thanks a lot.
Back to top
View user's profile
Dibor

Bascom Member



Joined: 04 Dec 2004
Posts: 137
Location: ISRAEL

israel.gif
PostPosted: Sun Mar 26, 2006 7:06 am    Post subject: Reply with quote

Hello
Try to use Mega32
Has 3 external int. pins

CUL
Back to top
View user's profile MSN Messenger
i.dobson

Bascom Expert



Joined: 05 Jan 2006
Posts: 1571
Location: Basel, Switzerland

switzerland.gif
PostPosted: Sun Mar 26, 2006 6:14 pm    Post subject: Reply with quote

Hi,

You actually need 1 interupt and 2 external counters.

You could use a mega32 with the 2 flowmeters connected to T0 & T1 (portb.0 & 1). For the flow meters all you need to do is count the number of pulses over a fixed period of time.

The TCP/IP module could be connected to INT0 (portD.2).
Why not use I2C for TCP/IP, it uses fewer pins if that helps.

Regards
Ian Dobson

_________________
Walking on water and writing software to specification is easy if they're frozen.
Back to top
View user's profile
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive 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