Jump to content

nessunosexy

User
  • Posts

    1
  • Joined

  • Last visited

About nessunosexy

  • Birthday 11/27/1995

nessunosexy's Achievements

Newbie

Newbie (1/14)

  • First Post
  • Week One Done
  • One Month Later
  • One Year In
  • Conversation Starter

Recent Badges

0

Reputation

  1. salve a tutti sono uno studente e il professore ci ha dato per casa da realizzare il lampeggio di un quattro led sulla porta c di un pic (il PC16887)compilandolo con sourceboost (così si può vedere se funziona). io ho scritto questo ma non riesco proprio a trovare l'errore e vi chiedo una mano. #include <system.h> void main() { ansel=0; anselh=0; int cont; cont=0; trisa=0xFF; trisc=0; portc=0; option_reg=0x85; while(1) { while(cont<50) { intcon.TMR0IF=0; TMR0=100; while(intcon.TMR0IF==0); cont=cont++; } cont=0; if(portc.0==0) { portc=0xFF; } else { portc=0; } } tmro==0 questo è quello che mi dice quando lo compilo: Building... BoostC Optimizing C Compiler Version 6.97 (for PIC16 architecture) http://www.sourceboost.com Copyright© 2004-2010 Pavel Baranov Copyright© 2004-2010 David Hobday Single user Lite License (Unregistered) for 0 node(s) Limitations: PIC12,PIC16 max code size:2048 words, max RAM banks:2, Non commercial use only interrupt.c failure C:\Program Files\SourceBoost\Samples\C\BoostC\interrupt.c(17:2): error: unknown identifier 'portb' C:\Program Files\SourceBoost\Samples\C\BoostC\interrupt.c(17:2): error: failed to generate expression C:\Program Files\SourceBoost\Samples\C\BoostC\interrupt.c(27:2): error: unknown identifier 'trisb' C:\Program Files\SourceBoost\Samples\C\BoostC\interrupt.c(27:2): error: invalid operand 'trisb' C:\Program Files\SourceBoost\Samples\C\BoostC\interrupt.c(27:8): error: failed to generate expression C:\Program Files\SourceBoost\Samples\C\BoostC\interrupt.c(30:2): error: unknown identifier 'portb' C:\Program Files\SourceBoost\Samples\C\BoostC\interrupt.c(30:2): error: invalid operand 'portb' C:\Program Files\SourceBoost\Samples\C\BoostC\interrupt.c(30:8): error: failed to generate expression "C:\Program Files\SourceBoost\boostc_pic16.exe" interrupt.c -t PIC16F688 Exit code was 1. Removing target: interrupt.obj Failed to locate output file 'C:\Program Files\SourceBoost\Samples\C\BoostC\Interrupt.hex' Done Failed
×
×
  • Create New...