Hola, soy Sergi (por si se quieren dirigir a mi), y me estoy iniciando a la programacion, la cuestion esque encontre un circuito de 8 leds, para la practica de diferentes programas. El problema esque no me funciona nunca, lo alimento a 5V a 200mA. En este tema os dejo una imagen del circuito + la programacion, y desearia que me dijeran si el error es del diagrama, de la programacion, o d ambos, y cual es ese error, para que no me vuelva a ocurrir mas :evil:.
PROGRAMACIÓN:
"
AllDigital
TRISA = %11111111
TRISB = %00000000
Dim step1 As Bit
Dim step2 As Bit
Dim rutina As Bit
Symbol led1 = PORTB.0
Symbol led2 = PORTB.1
Symbol led3 = PORTB.2
Symbol led4 = PORTB.3
Symbol led5 = PORTB.4
Symbol led6 = PORTB.5
Symbol led7 = PORTB.6
Symbol led8 = PORTB.7
step1: 'rutina 1
led1 = 1
led1 = 0
led2 = 1
led2 = 0
led3 = 1
led3 = 0
led4 = 1
led4 = 0
led5 = 1
led5 = 0
led6 = 1
led6 = 0
led7 = 1
led7 = 0
led8 = 1
led8 = 0
Goto step1
"
Me harian un gran favor ayudandome, gracias de antemano, y que tengan un buen dia.
Soopy46
PROGRAMACIÓN:
"
AllDigital
TRISA = %11111111
TRISB = %00000000
Dim step1 As Bit
Dim step2 As Bit
Dim rutina As Bit
Symbol led1 = PORTB.0
Symbol led2 = PORTB.1
Symbol led3 = PORTB.2
Symbol led4 = PORTB.3
Symbol led5 = PORTB.4
Symbol led6 = PORTB.5
Symbol led7 = PORTB.6
Symbol led8 = PORTB.7
step1: 'rutina 1
led1 = 1
led1 = 0
led2 = 1
led2 = 0
led3 = 1
led3 = 0
led4 = 1
led4 = 0
led5 = 1
led5 = 0
led6 = 1
led6 = 0
led7 = 1
led7 = 0
led8 = 1
led8 = 0
Goto step1
"
Me harian un gran favor ayudandome, gracias de antemano, y que tengan un buen dia.
Soopy46
Adjuntos
Última edición por un moderador: