Beruflich Dokumente
Kultur Dokumente
INSTRUMENTACION MEDICA
TERMOMETRIA CLINICA
299016-5
CONTENIDO
INTRODUCCION
1.DIAGRAMA DE FLUJO
2.ARQUITECTURA DE PIC 16F877A
3.PROGRAMA DE CONTROL EN ASM.MPLAB
4.SIMULACION EN PROTEUS
5. CONCLUSIONES
BIBLIOGRAFIA
INTRODUCCION
Los diagnosticos en el ser humano , son la clave para evitar daos y perjuicios en
los sistemas biolgicos y fsicos del cuerpo de una persona, una revisin
exhaustiva y con los equipos idneos,calibrados y confiables ,permite reducir
daos y corregir malos habitos, malas posturas y por lo tanto mejorar la calidad de
vida de un paciente.
Con el presente trabajo colaborativo, nuestro grupo de trabajo,expone la forma de
disear un instrumento clnico , basado en la magnitud de temperatura, una de las
variables que a nivel de diagnostico , revela la presencia de irregularidades de
funcionamiento del ser humano, la maquina perfecta.
1.DIAGRAMA DE FLUJO
ENDC
NUMERO equ d'32'
ORG 00H
GOTO INICIO
;SUBRUTINAS
INICIO
bsf STATUS,RP0
bcf STATUS,RP1
movlw d'15'; configuracion para una sola entrada analogica
movwf ADCON1
;movlw d'1'
movwf TRISA
clrf TRISB ;Puertos de salida ; B0=Led_verde,B1=Led_amarillo,B2=Led_rojo
,B3=Bocina
clrf TRISC
clrf TRISD ;Bancos configurados como salida
;salimos del banco 1
bcf STATUS,RP0
bcf STATUS,RP1
PRINCIPAL
call Iniciar_pantalla
call Mensaje_Normal
CICLO_AD
call LCD_Linea2
movlw b'10000001'
movwf ADCON0
call conver
call Retardo_1s
GOTO CICLO_AD
Mensaje_Normal
call LCD_Borra
call LCD_Cursor_Incremento
call LCD_Cursor_Off
call LCD_Linea1
movlw 'N'
call LCD_envia_caracter
movlw 'O'
call LCD_envia_caracter
movlw 'R'
call LCD_envia_caracter
movlw 'M'
call LCD_envia_caracter
movlw 'A'
call LCD_envia_caracter
movlw 'L'
return
Mensaje_hipo
call LCD_Borra
call LCD_Cursor_Incremento
call LCD_Cursor_Off
call LCD_Linea1
call LCD_envia_caracter
movlw 'H'
call LCD_envia_caracter
movlw 'I'
call LCD_envia_caracter
movlw 'P'
call LCD_envia_caracter
movlw 'O'
call LCD_envia_caracter
movlw 'T'
call LCD_envia_caracter
movlw 'E'
call LCD_envia_caracter
movlw 'R'
call LCD_envia_caracter
movlw 'M'
call LCD_envia_caracter
movlw 'I'
call LCD_envia_caracter
movlw 'A'
return
Mensaje_hiper
call LCD_Borra
call LCD_Cursor_Incremento
call LCD_Cursor_Off
call LCD_Linea1
call LCD_envia_caracter
movlw 'H'
call LCD_envia_caracter
movlw 'I'
call LCD_envia_caracter
movlw 'P'
call LCD_envia_caracter
movlw 'E'
call LCD_envia_caracter
movlw 'R'
call LCD_envia_caracter
movlw 'T'
call LCD_envia_caracter
movlw 'E'
call LCD_envia_caracter
movlw 'R'
call LCD_envia_caracter
movlw 'M'
call LCD_envia_caracter
movlw 'I'
call LCD_envia_caracter
movlw 'A'
return
conver
bsf STATUS,RP0
movlw b'10001110'
movwf ADCON1
bcf STATUS,RP0
call Retardo_20micros
bsf ADCON0,GO
nop
nop
nop
nop
nop
consu
btfsc ADCON0,GO
goto consu
bsf STATUS,RP0
movf ADRESL,W
bcf STATUS,RP0
movwf DATO
rrf DATO,F
call CENT_DEC_UNID
movf CENT,W
addlw 030h
call LCD_envia_caracter
movf DEC,W
addlw 030h
call LCD_envia_caracter
movf UNID,W
addlw 030h
call LCD_envia_caracter
movlw 'd'
call LCD_envia_caracter
return
;ACTIVACION DE CONTROL
INICIO_2
movwf DATO
btfss DATO,0
goto Led_verde
btfss DATO,1
goto Led_verde
goto INICIO_2
Led_verde
Led_Amarillo
INICIO_3
bsf PORTB,1 ;Activa puerto 1 del canal B
call Retardo_2s
bcf PORTB,0
call Retardo_2s
call Mensaje_hipo
bsf PORTB,3
goto INICIO_3
Led_Rojo
INICIO_4
bsf PORTB,2 ;Activa puerto 2 del canal B
call Retardo_2s
bcf PORTB,0
call Retardo_2s
call Mensaje_hiper
bsf PORTB,3
goto INICIO_4
INCLUDE <LCD_8BIT_TUTOR.INC>
INCLUDE <RETARDOS.INC>
INCLUDE <MATEMATICAS.INC>
INCLUDE <CENT_DEC_UNID.INC>
end
4.SIMULACION EN PROTEUS
5.CONCLUSIONES
BIBLIOGRAFIA