Jump to content

usafirmware

Members
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About usafirmware

  • Rank
    Newbrie
  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
×