Jump to content

messcalitto

Members
  • Content Count

    3
  • Joined

  • Last visited

Community Reputation

0 Neutral

About messcalitto

  • Rank
    Newbrie
  1. What about dsPIC support of SourceBoost?
  2. I wrote this program for PIC16F877 void main(void) { trisa = 0xff; trisb = 0; while(1) { if ((porta & 010b) == 010b) { portb = 0xff; } else { portb = 0; } }; } Under simulator I assigned button to porta Pin 1 and LED block to portb and result was - portb doesn't set at all when I push button. This code works for PIC16F84.
  3. I wrote this code on SourceBoost 5.9.1 and BoostC 2.0.1 target PIC16F877 #include "system.h" void main(void) { trisa = 0xff; trisd = 0; adcon1 = 0x82; adcon0 = 0x41; while(1) { set_bit( adcon0, GO ); while ((adcon0 & GO) == GO); portd = adresl; delay_ms(5); }; } it works fine. On debuger I configured Variable PSU -> RA0 as source of analog signal and LED Block -> PORTD as indicator to view result. It works fine. I wrote simular code for target PIC16F77 #include "system.h" void main(void) { trisa = 0xff; trisd = 0; adcon1 = 0x02; adcon0 = 0x41; while(1) { set_bit( adcon0, GO ); while ((adcon0 & GO) == GO); portd = adres; delay_ms(5); }; } now LED Block on PORTD doesn't indicate anything. Is this a some bug of debuger or there is some thing wrong in my code?
×
×
  • Create New...