Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 15th September 2003, 01:17 AM   (permalink)
Default External Interrupt not working - 16F877

Hey all,

This is my first post. I'm trying to program a 16F877 using CH Flash Basic, the CH stands for Celestial Horizon. Problem I ran into yesterday is this: tried to get the external interrupt working. Got the program similar to an example I saw, but it didn't work. Have any of you noticed problems with RB0 since it's next to the power pin. I moved my requested input down to RB7 and wrote just a simple polling op for that pin and it worked just fine. Either my interrupt programming is just plain wrong or I'm getting interference at the pin.

I've got an LCD hooked up and the program is just basically supposed to switch between two text lines until a button is pushed, then it's supposed to go to a subroutine and execute it.

Like I said it worked if I just use polling for a pin input, but not when I tried to use the external interrupt. I'd prefer to use the interrupt version since I want it to have an auto shut off if there is no activity after a minute or so.

Any help would be greatly appreciated.
usaf1 is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 08:47 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker