- This topic has 5 replies, 2 voices, and was last updated 11 years, 3 months ago by .
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- You must be logged in to reply to this topic.
|
Microcontroller › AVR › Inter-microcontroller interrupt service
Hi all,
I am planning to try to interrupt an ATMega32a using an ATTiny2313…The code i have written to the attiny is a logic code, which gives an output of high or low on a pin, say PIND0…My question is that can i directly connect that pin to the external interrupt pin of the ATMega32a or should I introduce some level translation using a transistor or is there any other way?…The ATTiny is interfaced to 5 buttons…I am doing this because i have exhausted all other pins in the atmega32 for a project and this logic derivation decides whether the a32 must be interrupted or not…That logic, i have coded into attiny2313…Any help is appreciated…
Thanks in advance
Hi Shishir,
Yes, you need a 3V to 5V logic converter circuit inbetween the attiny and atmega.
Are u sure attiny 2313 outputs only 3v on a pin?
I think the Attiny devices can be operated in 3V only. Would suggest you to go through the datasheet of your particular microcontroller and confirm it yourself. It must be there in the ‘maximum ratings’ inside the datasheet
It says 2.2 to 5.5v…
Alright Shishir, It is a 5V device and you can use a single 5V supply for both the ICs and there is no logic converters required !
Could you please post the circuit diagram of the connection in question so that I can help you better.