View previous topic :: View next topic |
Author |
Message |
zolsi
Joined: 24 Jan 2006 Posts: 51
|
Posted: Sat Mar 25, 2006 4:46 pm Post subject: More than 2 INT pins.. |
|
|
Wich atmel avr µc is handle by bascom and has more than 2 interutp pins ? (atmega103 ?)
Thank you !
|
|
Back to top |
|
|
bzijlstra
Joined: 30 Dec 2004 Posts: 1179 Location: Tilburg - Netherlands
|
Posted: Sat Mar 25, 2006 5:31 pm Post subject: more than one interrupt.... |
|
|
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 |
|
|
zolsi
Joined: 24 Jan 2006 Posts: 51
|
Posted: Sat Mar 25, 2006 7:28 pm Post subject: |
|
|
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 |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Sat Mar 25, 2006 7:42 pm Post subject: |
|
|
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 |
|
|
Luciano
Joined: 29 Nov 2004 Posts: 3149 Location: Italy
|
Posted: Sat Mar 25, 2006 8:11 pm Post subject: |
|
|
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 |
|
|
zolsi
Joined: 24 Jan 2006 Posts: 51
|
Posted: Sat Mar 25, 2006 8:45 pm Post subject: |
|
|
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 |
|
|
Dibor
Joined: 04 Dec 2004 Posts: 137 Location: ISRAEL
|
Posted: Sun Mar 26, 2006 7:06 am Post subject: |
|
|
Hello
Try to use Mega32
Has 3 external int. pins
CUL |
|
Back to top |
|
|
i.dobson
Joined: 05 Jan 2006 Posts: 1570 Location: Basel, Switzerland
|
Posted: Sun Mar 26, 2006 6:14 pm Post subject: |
|
|
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 |
|
|
|