problem with PORTD and blink_led

Help
2012-12-10
2013-05-30
  • alejandro1957
    alejandro1957
    2012-12-10

    as the title does not get up the PORTD even if I do it from code.
    this is the code used.maybe is a problem of PORTE and PORTD configuration?

    #CHIP 16F877A,4
    #CONFIG OSC=XT,WDT_OFF,PWRTE_ON,CP_OFF,DEBUG_OFF,WRT_OFF,CPD_OFF,LVP_OFF,BODEN_ON,BOREN_OFF
    Inicio: 
       TRISA=b'000000'
       TRISB=b'00000000'
       TRISC=b'00000000'
       TRISD=b'00000000'
       TRISE=b'00000000'
       PORTA=b'000000'
       PORTB=b'00000000'
       PORTC=b'00000000'
       PORTD=b'00000000'
       PORTE=b'000'
       INTCON=b'00000000'
       CVRCON=b'00000000'
       CCP1CON=b'00000000'
       CCP2CON=b'00000000'                                                      
       ADCON0=b'00000000'
       ADCON1=b'00000110'
       DO
         SET PORTB.1 ON
         WAIT 500 ms
         SET PORTB.1 OFF
         WAIT 50 ms
         SET PORTB.2 ON
         WAIT 500 ms
         SET PORTB.2 OFF
         WAIT 50 ms
       LOOP
    
     
  • alejandro1957
    alejandro1957
    2013-01-10

    resolved,
    problem with the track of the breadboard