Diagrama de Circuito
Código para el Pic
'//Título:Led Intermitente
'//Versión:mikroBasic 4.60
'//Autor: Samuel Ramsbott
'//Correo: habacuc.electronics@gmail.com
'//////////////////////////////////////////////////////////////////////////////////////
'//Descripción:Encendido de un led de forma automatica...
'/////////////////////////////////////////////////////////////////////////////////////
program MKB1
' Area de declaración.
main:
' Programa Principal
trisb.0 = 0 'Configurar PORTB.O como salida
while true
portb.0 = 1 ' B0 enciende
delay_ms (1000) ' Por un segundo
portb.0 = 0 ' B0 apaga
delay_ms (1000) ' Por un segundo
wend
end.
Comentario Blogger
Comentario Facebook