RE: [bascom] falling/rising INT0


From "Ben Zijlstra" <bzijlstra@home.nl>
Date Sun, 14 Mar 2004 11:30:04 +0100

Yes, I have seen the same happen and so does VA3TO (Hugh).
I will have to check the datasheets for that.

Back later...

Ben Zijlstra
http://members.home.nl/bzijlstra

-----Original Message-----
From: owner-bascom@grote.net [mailto:owner-bascom@grote.net]On Behalf Of
Eddy Wright
Sent: Sunday, March 14, 2004 3:46 AM
To: bascom@grote.net
Subject: Re: [bascom] falling/rising INT0


Ben, I looked at your example on your web site and I was able to compile
using Config Int0=Rising when I use the Mega16 but not with the Mega32. I
receive Error 219 "NT0-INT3 are always low level triggered in the MEGA" when
I try to compile with the Mega32 chip.
Is this correct?  I would have thought the interrupts would have been the
same on those 2 chips...

Thanks,
Eddy



----- Original Message -----
From: "Eddy Wright" <eddy@wrighthobbies.com>
To: <bascom@grote.net>
Sent: Saturday, March 13, 2004 8:06 PM
Subject: Re: [bascom] falling/rising INT0


> How did you get Config int=falling/rising to work? Did you set it using
ASM?
> I so, I'd love to see the code. I need to do the same for a pair of wheel
> encoders...
>
> Thanks,
> Eddy
>
> ----- Original Message -----
> From: "Marek RC" <multipro@neo.pl>
> To: <bascom@grote.net>
> Sent: Tuesday, March 02, 2004 10:28 PM
> Subject: Re: [bascom] falling/rising INT0
>
>
> > Config Int0=falling/rising  in ATmega32  works o.k. !....sometimes
> > two mistakes complicated the solution and .....waste time !
> > it works fine even when slowly rising edge is connecting .
> > in asm additionally we can set  "any change edge"  mode ......
> > mark
> >
> >
> > ----- Original Message -----
> > From: "Marek RC" <multipro@neo.pl>
> > To: <bascom@grote.net>
> > Sent: Tuesday, March 02, 2004 9:24 PM
> > Subject: Re: [bascom] falling/rising INT0
> >
> >
> > > Thanks........ I will check all once more ...of course .........or...
> > > change hw ......
> > >
> > > Marek
> > >
> > >
> > > ----- Original Message -----
> > > From: "Ben Zijlstra" <bzijlstra@home.nl>
> > > To: <bascom@grote.net>
> > > Sent: Tuesday, March 02, 2004 9:08 PM
> > > Subject: RE: [bascom] falling/rising INT0
> > >
> > >
> > > > If I check some code on a PIC16F877 written in C I see the line
> > > >
> > > > //wait for a good frame
> > > > while(!bit_test(INT0));
> > > >
> > > > In the text that belongs to this part of the C-code
> > > >
> > > > "The RTL8019AS's INT0 line is polled. When INT0 goes high, the
> PIC16F877
> > > > reads the RTL8019AS's ISR"
> > > >
> > > > --
> > > >
> > > > On a AVR I have translated this to
> > > >
> > > > config INT0 = rising
> > > > enable interrupts
> > > > enable int0
> > > > on int0 xxxxx etc. etc
> > > >
> > > > --
> > > >
> > > > Sound like the interrupt on the up-going edge of the signal.
> > > >
> > > > You could test it with a flip-flop with a TTL 7400 to be sure.
> > > >
> > > > Ben Zijlstra
> > > > http://members.home.nl/bzijlstra
> > > >
> > > > -----Original Message-----
> > > > From: owner-bascom@grote.net [mailto:owner-bascom@grote.net]On
Behalf
> Of
> > > > Marek RC
> > > > Sent: Tuesday, March 02, 2004 8:03 PM
> > > > To: bascom@grote.net
> > > > Subject: Re: [bascom] falling/rising INT0
> > > >
> > > >
> > > > Ok....... Ben and Ken ...thanks .....but do you really know that
> > > > interrupt  is on the edge ?......configuration in Bascom isn't any
> proof
> > > > ....
> > > > .... all then may depend on hardware ....and often it seems that
works
> > > > fine ....until we take a look more precisely with oscilloscope
> !........
> > > > ...as I mentioned before I tried set uP registers with ASM only
> > > > (inside Bascom however !).... and no effect  .... don't know why .
> > > > In my circuit I can insert a small connecting capacitor and should
be
> > > > ok.....but
> > > > it doesn't explain what's really going on ...
> > > >
> > > > Mark
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: "Ken Arck" <ah6le@ah6le.net>
> > > > To: <bascom@grote.net>
> > > > Sent: Tuesday, March 02, 2004 7:01 PM
> > > > Subject: Re: [bascom] falling/rising INT0
> > > >
> > > >
> > > > > At 06:27 PM 3/2/2004 +0100, you wrote:
> > > > > >Hi.....
> > > > > >... is it  possible to set successfully external interrupt INT0
> > > > (ATmega32)
> > > > > >on falling/rising edge ?....I know that Bascom has problems with
> that
> > ,
> > > > > >but ........ I have tried to do this in asm ...and no effects !!!
> > > > > >...always it works like low level trig !...... anybody has
checked
> > it
> > > > ?...
> > > > >
> > > > > <---I'm using a rising level trigger on INT0, in a Mega128. As a
> > matter
> > > of
> > > > > fact, I use INT0, INT1 and INT3, all on rising edge. It works just
> > fine:
> > > > >
> > > > > Enable Interrupts
> > > > > Enable INT0 : Enable INT1 : Enable INT2
> > > > > Config INT0 = Rising : Config INT1 = Rising : Config INT2 = Rising
> > > > >
> > > > > On INT0 Dtmf1
> > > > > On INT1 Dtmf2
> > > > > On INT2 Dtmf3
> > > > >
> > > > > HTH,
> > > > >
> > > > > Ken
> > > > >
> > > >
> > >
> >
>
> --------------------------------------------------------------------------
> > > > ----
> > > > > President and CTO - Arcom Communications
> > > > > Makers of state-of-the-art repeater controllers
> > > > > and accessories.
> > > > > http://www.ah6le.net/arcom/index.html
> > > > > Check our website for February Specials!
> > > > > AH6LE/R - IRLP Node 3000
> > > > > http://www.irlp.net
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >