Re: [bascom] INT0 Problem


From robert <euclid@catskill.net>
Date Wed, 13 Jun 2001 20:59:52 -0400

Srikanth,
Hi, What was that remark about the INT0?  I noticed that in my AVR Studio the
simulator automatically sets the GIFR.6 & 7 bits. even if I uncheck them the
simulator resets them. What data sheet shows the bug?
Thanks,
Robert

P E wrote:

> Dear George,
>
> You have the folloing wrong.
>
> config int0=rising, falling whats happened to that line. secondly
>
> hardware problem with atmel. If you see the data  sheets, You would see that
> the Gifr.6 and gifr.7 register are set on the interrupt. this you better
> clear before enabling the interrupts.
>
> srikanth kamath
>
> -----Original Message-----
> From: owner-bascom@grote.net [mailto:owner-bascom@grote.net]On Behalf Of
> Saum, George
> Sent: Wednesday, June 13, 2001 8:38 AM
> To: bascom@grote.net
> Subject: [bascom] INT0 Problem
>
> Hi:
>         Hope someone can help me with this problem.  I am trying to 
> interface a
> keypad to an 8032.  The keypad has some external electronics that
> generate an 'any key pressed' signal which is a negative going pulse
> lasting about 50 msec.
> I want to use this pulse to interrupt the microprocessor which will then
> obtain the actual key pressed through a serial port arrangement.  I am
> having trouble with the interrupt generation.  Here is the interrupt
> test code:
> Declare Sub Label2
> Enable Interrupts
> Enable INT0
> On INT0 Label2
> Do
> Loop
> End
> Label2:
>         Print "Interrupt"
> Return
>
> What is wrong with this code?  Have I left something out?  I am using
> Bascom-8051 ver 2.0.2.0.  The above code compiles but will not respond
> to the negative going keypulse.
>                 Thanks for any help.
>                         Bud