' * ' * Nombre del Ejemplo ' Ejemplpo 7 ' * Autor: ' Ing. Pablo Rodas -CTS' * Fecha: ' 20111128: ' ' * Descripcion ' AMnejo de funciones ' ' * Configuracion ' MCU: P16F887 ' Archivo Simulacion PROTEUS: Entrenador ' Oscillador: HS, 4.0000 MHz ' ' * NOTAS ' * ' SECCION DE DECLARACIONES DE SIMBOLOS '***************************************************************************** ' SECCION DE DECLARACIONES DE VARIABLES '***************************************************************************** dim LCD_RS as sbit sbit at RB2_bit LCD_EN as sbi sbit at RB3_bit LCD_D4 as sbi sbit at RB4_bit LCD_D5 as sbi sbit at RB5_bit LCD_D6 as sbi sbit at RB6_bit LCD_D7 as sbi sbit at RB7_bit LCD_RS_Direction as sbi sbit LCD_EN_Direction as sbi sbit LCD_D4_Direction as sbi sbit LCD_D5_Direction as sbi sbit LCD_D6_Direction as sbi sbit LCD_D7_Direction as sbi sbit i, resp respue uest sta a as byte byte txt as string string[3]
' SECCION DE DECLARACIONES DE CONSTANTES '***************************************************************************** sub functio function n suma(dim a, b as byte byte) as byte byte
result=a+b end end sub sub sub functio function n resta(dim a, b as byte byte)as byte byte
result=a-b end end sub sub
' SECCION DE SUBPROCEDIMIENTOS '***************************************************************************** sub procedu procedure re setup A N S EL = 0 ' Configuracion de los canales analogicos ANSE ANSELH LH = 0 ' (Puerto A,E y B)como digitales C1ON C1ON_b _bit it = 0 ' Apago los comparadores analogicos C2ON C2ON_b _bit it = 0
Thank you for interesting in our services. We are a non-profit group that run this website to share documents. We need your help to maintenance this website.