CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

PIC18F27J13 External Interrupts
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
dyeatman



Joined: 06 Sep 2003
Posts: 1937
Location: Norman, OK

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 12:50 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 12:55 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 12:56 pm     Reply with quote

Yes, B0 blinks/toggles/outputs high when i tell it to.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 2:02 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 3:28 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 4:09 pm     Reply with quote

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

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 4:34 pm     Reply with quote

Thanks for all your help.

Tried that as well, doesn't work.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 5:00 pm     Reply with quote

Post the test program that you tried, and that doesn't work with that schematic.
Besugo



Joined: 12 Mar 2011
Posts: 20

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 5:06 pm     Reply with quote

the code is already in some previous posts.

Thanks
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sun Mar 13, 2011 5:08 pm     Reply with quote

I'm done.
Besugo



Joined: 12 Mar 2011
Posts: 20

View user's profile Send private message

PostPosted: Fri Mar 25, 2011 9:53 am     Reply with quote

This forum it's not the most helpful out there...
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group