Jump to content

RobHumphris

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About RobHumphris

  • Rank
    Newbrie
  1. I've had the same problem, running 5.0.4 Buttons connected to PortB are not causing interrupts, the assembled code works in the PIC ide debugger. This concerns me as I was just about to purchase a copy of C2C. Here's the code: #include <p16f877.h> void interrupt( void ) { char intFlags = intcon & 0x07; portd ^= intFlags; intcon = intcon & 0xF8; } main() { option_reg = 0x07; // set prescaler to 1:256 trisd = 0x00; trisb = 0xFF; intcon = 0xB8; while(1) { clear_wdt(); } }
×
×
  • Create New...