Jump to content

LowFilter

Members
  • Content Count

    4
  • Joined

  • Last visited

Community Reputation

0 Neutral

About LowFilter

  • Rank
    Newbrie
  1. Yes, compiling! I'll let you know if it works or not Thanks a lot!
  2. Thanks very much guys! I'll try that tomorrow and i'll let you know
  3. Hi everybody! here is my program: #include <system.h> #define mode PORTA.1; #define dis1 PORTC.0; #define dis2 PORTC.1; #define dis3 PORTC.2; void main() { TRISA = 0xFF; //sets PORTA as input TRISC = 0; //sets PORTC as output ADCON0 = ADCON0 & 0x0E; //A/D converter registers ADCON0 = ADCON0 | 0x08; ADCON1 = ADCON1 & 0xFC; ADCON1 = ADCON1 | 0x04; unsigned short int hundreds, tens, units, b, c, e, sel; unsigned int sound; unsigned int tempo; ADCON0 = ADCON0 | 1; // starts AD conversion sel = ADRES; if(mode == 1) //Sound Mode { if(0<=sel<
×
×
  • Create New...