Hi, Jerson
Halas, there are no TRIS mods in the whole program ( including PbP commands ).
Just reading 3 EEPROM locations to verify if the device is ( application ) programmed or not.
add to that a BUTTON command to verify, if EEPROM unprogrammed, if the programming jumper has been inserted ...
as you can see, I just had cut those "unsignificant" lines.Code:TRISA = %00000111 TRISB = %00000000 '****************************************************************************** 'Lecture des valeurs en EEPROM '****************************************************************************** READ 1,dureeprog READ 2,side READ 3,neutre IF ( neutre <> 255 ) AND( dureeprog <> 255 ) THEN start '****************************************************************************** ' Vérification Présence Cavalier si première programmation '****************************************************************************** Delay = 0 BUTTON ModProg,0,255,0,delay,1,Mesurepro '****************************************************************************** oubli: ' Boucle d'arret si oubli cavalier '****************************************************************************** ...
I've also verified the ASM lines, but nothing noticeable ...
the strange thing is I had added those lines just past TRISA and TRISB, to verify PortB ( same LED load + 270 Ohms on each PortB output ) ...
and it worked well ...Code:'****************************************************************************** 'Verification PORTB '****************************************************************************** ' FOR I = 0 to 7 ' ' PORTB.0[i] = 1 ' PAUSE 300 ' ' NEXT I ' ' FOR I = 7 to 0 Step -1 ' ' PORTB.0[i] = 0 ' PAUSE 300 ' ' NEXT I
I've already seen Port outputs not working , like here, but it was when driving large capacitive loads ( 3.5 µF between output and ground !!! ).
Solution had been using HIGH and LOW ... like here.
But, Here, it's the first time I see that with LEDs as loads ...
so, I know what to do ... but really don't understand why !!!
Alain




Bookmarks