Jump to content


  • Content Count

  • Joined

  • Last visited


Everything posted by meder

  1. What is the proper syntax for use of structures. No matter what I try, the compilier chokes. struct{ char led; char led1; }bitdata={1,0}; What ANSI part has been implemented? TIA
  2. Its nice to have a working bug free sample app to get a Dev system up and running. The sample inter.c does not toggle the portb bit correctly. If you run it the bit stays high. But, MPLAB 6.4 happily toggles the bit! Heres the correct coding: //This sample program for the PIC16F84 target shows how //to use interrupts. If there is a LED connected to //B7 it will blink. #include <system.h> char led = 1; void interrupt( void ) { if( led == 1 ) { portb |= 128; led = 0; } else { portb &= ~128; led = 1;
  • Create New...