View previous topic :: View next topic |
Author |
Message |
dyeatman
Joined: 06 Sep 2003 Posts: 1933 Location: Norman, OK
|
|
Posted: Sun Mar 13, 2011 12:50 pm |
|
|
When you activate the signal on B0 does the A0 LED blink? _________________ Google and Forum Search are some of your best tools!!!! |
|
|
Besugo
Joined: 12 Mar 2011 Posts: 20
|
|
Posted: Sun Mar 13, 2011 12:55 pm |
|
|
I've tried your code, still no interrupt... pin_A0 just won't toggle (I've check the connection, it's ok). |
|
|
Besugo
Joined: 12 Mar 2011 Posts: 20
|
|
Posted: Sun Mar 13, 2011 12:56 pm |
|
|
Yes, B0 blinks/toggles/outputs high when i tell it to. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Mar 13, 2011 2:02 pm |
|
|
Post a complete description of the external circuit which is connected to
the INT0 pin on the PIC. Post the voltage levels that are seen on the
INT0 pin. Post the Vdd voltage of the PIC. Post if this is a Proteus project. |
|
|
Besugo
Joined: 12 Mar 2011 Posts: 20
|
|
Posted: Sun Mar 13, 2011 3:28 pm |
|
|
INT0 it's just connected to a wire, pic is powered by pickit3 3,5V, but tried also with a 5V external PSU. So voltage at INT0 it's 3,5V.
Not a Proteus project. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Mar 13, 2011 4:09 pm |
|
|
You need a circuit like this. It must have a pull-up resistor to the same
Vdd voltage as the PIC uses. The push-button switch must connect to
ground when you push it.
Code: |
Vdd
|
<
> 4.7K
< ___ Switch
To | _|_|_
PIC -----------------o o------
pin |
--- GND
-
|
|
|
|
Besugo
Joined: 12 Mar 2011 Posts: 20
|
|
Posted: Sun Mar 13, 2011 4:34 pm |
|
|
Thanks for all your help.
Tried that as well, doesn't work. |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Mar 13, 2011 5:00 pm |
|
|
Post the test program that you tried, and that doesn't work with that schematic. |
|
|
Besugo
Joined: 12 Mar 2011 Posts: 20
|
|
Posted: Sun Mar 13, 2011 5:06 pm |
|
|
the code is already in some previous posts.
Thanks |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sun Mar 13, 2011 5:08 pm |
|
|
I'm done. |
|
|
Besugo
Joined: 12 Mar 2011 Posts: 20
|
|
Posted: Fri Mar 25, 2011 9:53 am |
|
|
This forum it's not the most helpful out there... |
|
|
|