I tried to program a ... simple stupid blinking light ... and it doesn't work ... as it should !!!
Doesn't workCode:'****************************************************************************** 'Configuration '****************************************************************************** @ __CONFIG _BODEN_ON &_CP_OFF & _PWRTE_ON & _WDT_ON & _LVP_OFF & _MCLRE_ON & _INTRC_OSC_CLKOUT CMCON = 7 VRCON = 0 ... '***************************************************************************** 'Initialisation des ports '***************************************************************************** PORTA = 0 PORTB = 0 TRISA = %00000111 TRISB = %00000000 ... '****************************************************************************** oubli: ' Boucle d'arret si oubli cavalier '****************************************************************************** PORTB.0 = 1 PAUSE 200 PORTB.0 = 0 PAUSE 200 GOTO Oubli
But That snippet works fine :
The load on PORTB.0 is a simple LED drawing 12 mA ...Code:( same as previous ) ... '****************************************************************************** oubli: ' Boucle d'arret si oubli cavalier '****************************************************************************** HIGH PORTB.0 PAUSE 200 LOW PORTB.0 PAUSE 200 GOTO Oubli
Has someone an idea ???
Alain




Bookmarks