Jump to content


  • Content Count

  • Joined

  • Last visited

Everything posted by usafirmware

  1. What is wrong with this .... #include <pic16F685.h> #define BANK_0 0x0000 #define IOPORTC ((unsigned volatile *)(BANK_0 + PORTC)) #define IOTRISC ((unsigned volatile *)(BANK_0 + TRISC)) .. later on in a function definition ... *IOTRISC &= ~SEGMENT_MASK; // By writing zero's to the bits that correspond to segments, we set them all to outputs This generates a non descriptive error (general error). The code is included as an attachment. Thanks for the help... 7segment.zip
  • Create New...