Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

RE: [AVR-Chat] ATMega16 + WH1602

RE: [AVR-Chat] ATMega16 + WH1602

2009-10-05 by Tim Mitchell

----Original Message----
Show quoted textHide quoted text
From: AVR-Chat@yahoogroups.com
[mailto:AVR-Chat@yahoogroups.com] On Behalf Of Dave
McLaughlin Sent: 03 October 2009 17:50 To:
AVR-Chat@yahoogroups.com Subject: RE: [AVR-Chat] ATMega16 +
WH1602 

> Is the second line OK?
> 
> Have you adjusted the contrast input to the device? If
> this voltage is 
> wrong, the display will show as solid boxes. Another
> reason could be the 
> RESET is not working.
> 

Top line filled with black boxes means that the LCD module is not
initialised.
If it was contrast, both lines would be black (or blank).

Can you wiggle a pin to check if your code is actually running?

If code is running then I would guess it is a timing problem in the LCD
setup routines. The timings can be a bit unpredictable between different
displays.

-- 
Tim Mitchell

Pin for Interrupts

2009-10-05 by Антощенков Роман Викторович

Hello.

For example AtMega8535,AtMega16,AtMega32 have 3 interrupts from pins
(INT0, INT1, INT2).
Is there another Mega in Dip package with 4 interrupts from pins?
Possibly generate interrupt (Falling edge) from any pin?

Another idea check pin state in loop but possibly lose signal.

-- 
Best regards,
Roman Antoshchenkov
mailto:djantoxa@rambler.ru

Re: [AVR-Chat] Pin for Interrupts

2009-10-05 by enkitec@gmail.com

?????????? ????? ?????????? wrote:
> Hello.
>
> For example AtMega8535,AtMega16,AtMega32 have 3 interrupts from pins
> (INT0, INT1, INT2).
> Is there another Mega in Dip package with 4 interrupts from pins?
> Possibly generate interrupt (Falling edge) from any pin?
>
> Another idea check pin state in loop but possibly lose signal.
>
>   

Read the datasheet.

You can use the ICP pin or the ANA_COMP interrupt.

Mark

Re: [AVR-Chat] Pin for Interrupts

2009-10-05 by wg0z@aol.com

the mega32, probably the others aslo, can easily support more active-low interrupts.

search datasheet for  "pin change interrupt". you can, in effect, get an INT3 if you configure the PCINT correctly
Show quoted textHide quoted text
-----Original Message-----
From: Антощенков Роман Викторович <djantoxa@rambler.ru>
To: Tim Mitchell <AVR-Chat@yahoogroups.com>
Sent: Mon, Oct 5, 2009 9:28 am
Subject: [AVR-Chat] Pin for Interrupts




Hello.
For example AtMega8535,AtMega16,AtMega32 have 3 interrupts from pins
INT0, INT1, INT2).
s there another Mega in Dip package with 4 interrupts from pins?
ossibly generate interrupt (Falling edge) from any pin?
Another idea check pin state in loop but possibly lose signal.
-- 
est regards,
oman Antoshchenkov
ailto:djantoxa@rambler.ru

------------------------------------
Yahoo! Groups Links
   Individual Email | Traditional
   http://docs.yahoo.com/info/terms/



[Non-text portions of this message have been removed]

Re: [AVR-Chat] Pin for Interrupts

2009-10-05 by David Kelly

On Mon, Oct 05, 2009 at 01:37:23PM -0300, enkitec@gmail.com wrote:
> ?????????? ????? ?????????? wrote:
> > Hello.
> >
> > For example AtMega8535,AtMega16,AtMega32 have 3 interrupts from pins
> > (INT0, INT1, INT2).
> > Is there another Mega in Dip package with 4 interrupts from pins?
> > Possibly generate interrupt (Falling edge) from any pin?
> >
> > Another idea check pin state in loop but possibly lose signal.
> 
> Read the datasheet.

Ditto.

> You can use the ICP pin or the ANA_COMP interrupt.

Many devices have a pin change interrupt where if any pin (or a pin
included in a mask) of a port changes. Commonly used to read keypad
matrix.

-- 
David Kelly N4HHE, dkelly@HiWAAY.net
========================================================================
Whom computers would destroy, they must first drive mad.

Re: [AVR-Chat] Pin for Interrupts

2009-10-05 by enkitec@gmail.com

David Kelly wrote:
> On Mon, Oct 05, 2009 at 01:37:23PM -0300, enkitec@gmail.com wrote:
>   
>> ?????????? ????? ?????????? wrote:
>>     
>>> Hello.
>>>
>>> For example AtMega8535,AtMega16,AtMega32 have 3 interrupts from pins
>>> (INT0, INT1, INT2).
>>> Is there another Mega in Dip package with 4 interrupts from pins?
>>> Possibly generate interrupt (Falling edge) from any pin?
>>>
>>> Another idea check pin state in loop but possibly lose signal.
>>>       
>> Read the datasheet.
>>     
>
> Ditto.
>
>   
>> You can use the ICP pin or the ANA_COMP interrupt.
>>     
>
> Many devices have a pin change interrupt where if any pin (or a pin
> included in a mask) of a port changes. Commonly used to read keypad
> matrix.
>   

    Sure do, but unfortunately not the ones mentioned.

    Mark

pseudo-INT3 for atmega32 et al.

2009-10-05 by wg0z@aol.com

try this ?!?:

?? load timer 0 count register?with 255 decimal

?? configure?timer 0 to increment with a falling(maybe rising)?edge on T0 pin

?? enable/use timer0 overflow interrupt



? you must reset count register to 255 decimal in your isr,

? and configure t0 pin as input in your startup code



[Non-text portions of this message have been removed]

Re: [AVR-Chat] Pin for Interrupts

2009-10-06 by Антощенков Роман Викторович

Hello.

Thanks for answers.
For more external interrupts there are ATMega 48, 88, 168 in dip
package.

-- 
Best regards,
Roman Antoshchenkov
mailto:djantoxa@rambler.ru

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.