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 support@ccsinfo.com

External Interrupt Problem

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
buAliSina



Joined: 02 Nov 2010
Posts: 8

View user's profile Send private message

External Interrupt Problem
PostPosted: Sat Nov 06, 2010 7:47 am     Reply with quote

hi ,

I have a big problem with 16F628A Ext_isr.

My input signal that should make an interrupt is 2.8 (or 3) Volts
and seems it doesn't work (5 volts needed)
and I can't use any Op-Amp in my circuit.

So I'll be grateful if someone help me with this.
_________________
Just a dead body ignores Human suffering
Ttelmah



Joined: 11 Mar 2010
Posts: 19348

View user's profile Send private message

PostPosted: Sat Nov 06, 2010 8:32 am     Reply with quote

Start by reading the data sheet.

The INT pin does not require '5v'. it requires 0.8*Vdd.
Now, one answer then, if you are running slow enough, and don't 'need' 5v for anything else, would be to lower the PIC's supply voltage. Take Vdd down to 3.5v, and 2.8 or 3v, will trigger this input.

Beyond this, then you do need to buffer the signal. One very small solution, would be to set the PIC pin to interrupt on the signal going low, rather than rising, and connect your signal into the base of a transistor (with a resistive divider). Then connect the transistor's emitter to gnd, and the collector to the interrupt pin. Program the weak pull-up 'on', and the interrupt will fire when your signal turns the transistor on. If you (say) use a 10K resistor to the base, and a 3.3K to ground, this will happen between about 2, and 2.5v.

Best Wishes
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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