... müsste eigentlich klappen, da ich ein "Build successful!", sowie ein "Program succeeded." erhalte.
Ich versuche mit MPLAB und Hi-Tech C Compiler zu programmieren, aber irgend etwas mache ich falsch.
Das ist das Code-Beispiel:
Danke!Code:#include <12F675.h> #device ADC=10 #fuses INTRC_IO,NOWDT,NOPUT,NOPROTECT,NOCPD,NOMCLR #use delay(clock=4000000) #define GP0 PIN_A0 #define GP1 PIN_A1 #define GP2 PIN_A2 #define GP3 PIN_A3 #define GP4 PIN_A4 #define GP5 PIN_A5 #byte OSCCAL = 0x80 void init() { OSCCAL = 0x80 set_tris_a( 0b11111101 ) setup_comparator( NC_NC_NC_NC ) setup_adc_ports( NO_ANALOGS ) setup_adc( ADC_OFF ) } main() { init() while ( TRUE ) { output_high( GP4 ) delay_ms( 250 ) output_low( GP4 ) delay_ms( 250 ) } }







Zitieren

Lesezeichen