pic ei taha siis k2ivituda ei mikroBasicu testprogega ega ka millegi muuga...
bas siis siin:
program Led_blinking
main:
TRISB = 0 ' configure pins of portb as output
PORTB = %11111111 ' turn ON diodes on portb
delay_ms(1000) ' wait for 1 second
PORTB = %00000000 ' turn OFF diodes on portb
delay_ms(1000) ' wait for 1 second
goto main ' endless loop
end
hex faili peale k6rvetades ei ilmne mingeid probleeme kuid toite taha lylitamisel led ainult p6leb...kas viga v6ib olla selles et pic ise vigane?
bas siis siin:
program Led_blinking
main:
TRISB = 0 ' configure pins of portb as output
PORTB = %11111111 ' turn ON diodes on portb
delay_ms(1000) ' wait for 1 second
PORTB = %00000000 ' turn OFF diodes on portb
delay_ms(1000) ' wait for 1 second
goto main ' endless loop
end
hex faili peale k6rvetades ei ilmne mingeid probleeme kuid toite taha lylitamisel led ainult p6leb...kas viga v6ib olla selles et pic ise vigane?
Comment