Enlightments ???? Ok ...
Here a cutout ...
PORTA = 0 ' declare port level BEFORE port direction = safe power-on
PORTB = 0
'Pour 16F628
CMCON = 7 ' PortA Digital inputs
CCP1CON = 0 ' PWM off
' DATA @1,word 625,0,word 545,word 750 ' pre-setting EEPROM
'************************************************* *****************************
' Initialisation commutation : Vérification batterie
'************************************************* *****************************
init:
battok = 1 ' setting critical variables ...
dejavu = 0
bougie = 0
error = 0
Servo = 0
TRISA = %00000011 ' Port Direction
TRISB = %00000001
Pause 400 ' Stabilisation au branchement
GoSub verbatt ' beginning of real program ...batt testing i.e.
Cheers
Alain
************************************************** ***********************
Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
************************************************** ***********************
IF there is the word "Problem" in your question ...
certainly the answer is " RTFM " or " RTFDataSheet " !!!
*****************************************
Bookmarks