1. Led Intermitente (MikroBasic)

1. Led Intermitente (MikroBasic)
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 =                ' B0 enciende
          delay_ms (1000)       ' Por un segundo
          portb.0 = 0                ' B0 apaga
          delay_ms (1000)       ' Por un segundo
    wend
end.

Compartir en Google Plus

About habacuc.electronics

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Comentario Blogger
    Comentario Facebook