'******************* declaramos el pic a usar y el cristal*
Device = 16F84A 'en nuestro caso vamos a utilizar este pic
XTAL 4
' ************ renombramos al PORTB.1 como LED*************
Symbol LED = PORTB.0
Symbol buzzer=PORTB.1
'****************definiciones de puertos*******************
TRISB.1 = 0
PORTB = 0
DelayMS 30
'****************** aqui empieza el programa***************
main:
High LED ' encendemos el LED
High buzzer 'encendemos el buzzer
DelayMS 500 'esperamos 1/2 segundo
Low LED ' apagamos el Led
Low buzzer 'apagamos el buzzer
DelayMS 500 'esperamos 1/2 segundo
GoTo main 'volvemos a la etiqueta main y empieza nuevamente el ciclo
End