Hola a todos bueno comenzara con mi primer tutorial propio de proton ide , para los que desconocen esto es para programar microcontroladores , realizare un ejemplo sencillo y con el tiempo realizare ejemplos un poco mas completos
Usare el pic 16f877a xq a futuro haré cosas mas interesantes .
'****************************************************************
'* Name : F2APC.BAS *
'* Author : [select VIEW...EDITOR OPTIONS] *
'* Notice : Copyright (c) 2013 [select VIEW...EDITOR OPTIONS] *
'* : All Rights Reserved *
'* Date : 20/JUNIO/2013 *
'* Version : 1.0 *
'* Notes : *
'* : *
'****************************************************************
Device = 16F877A
XTAL = 4
Symbol BOTON1 = PORTD.0 ; PARA LOS BOTONES DEL PIC
Symbol BOTON2 = PORTD.1
Symbol BOTON3 = PORTD.2
Symbol BOTON4 = PORTD.3
Symbol LED=PORTD.4
Symbol ok=PORTD.5
LCD_DTPIN = PORTB.4
LCD_RSPIN = PORTB.2
LCD_ENPIN = PORTB.3
Dim suma As Byte
In:
If BOTON1 = 0 Then sumar
If BOTON2 = 0 Then resta
If suma = 5 Then High LED : Else : Low LED
GoTo In
sumar:
suma = suma +1
DelayMS 250
Print At 1,1, DEC3 suma
GoTo In
resta:
suma = suma -1
DelayMS 250
Print At 1,1, DEC3 suma
GoTo In
En la noche subo el gif del funcionamiento y explico todo