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

External Interrupt Trigger level

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



Joined: 18 Sep 2004
Posts: 22

View user's profile Send private message

External Interrupt Trigger level
PostPosted: Mon Jan 17, 2005 8:56 pm     Reply with quote

Hi

I've built a zero crossing circuit (using LM311) that will input the zero cross pulses into RB0/EXT pin of my 16F877 microcontroller.

What amplitude and width of a pulse can 16F877's external interrupt detect?

I looked in 16F877 datasheet but could not find it there.

Thanks.
Haplo



Joined: 06 Sep 2003
Posts: 659
Location: Sydney, Australia

View user's profile Send private message

PostPosted: Mon Jan 17, 2005 10:48 pm     Reply with quote

External interrupt on the RB0/INT pin is edge triggered. Figure 3-3 in the datasheet shows that RB0 has a TTL input buffer, so it is a TTL level logic (that means the input low voltage is 0 to 0.15VDD and the input high voltage is 2.0 to VDD, according to Table 15-2).

Keep in mind that the absolute minimum input voltage for almost all the pins (including RB0) is -0.3v.
Ttelmah
Guest







PostPosted: Tue Jan 18, 2005 3:10 am     Reply with quote

The 'active time' needed for an interrupt signal, on the 877, is parameter 22, in table 15-2. It is the instruction cycle time for the processor, but asynchronous (effectively the signal should be present for one complete instruction cycle, or it can be missed). remember that the timing starts, from the active 'high' level already given by another poster.

Best Wishes
pop



Joined: 18 Sep 2004
Posts: 22

View user's profile Send private message

PostPosted: Tue Jan 18, 2005 2:39 pm     Reply with quote

Thanks guys. I better look at the datasheet closely next time :D
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