Você está na página 1de 21

TRABAJO COLABORATIVO

INSTRUMENTACION MEDICA
TERMOMETRIA CLINICA
299016-5

CARLOS ARMANDO LUQUE TORRES


80061566

UNIVERSIDAD NACIONAL ABIERTA Y A DISTANCIA UNAD


ESCUELA DE CIENCIAS BASICAS TECNOLOGIA E INGENIERIA
TECNOLOGIA EN ELECTRONICA
EL ROSAL,CUND
2 DE ABRIL DE 2015

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

2.ARQUITECTURA DE PIC 16F877A


El microcontrolador que se esta trabajando en la primera practica de
instrumentacin medica, es un circuito integrado de 40 pines, que cuenta con
cinco puertos de entradas y salidas y que se caracteriza especialmente por tener
siete puertos de entradas analgicas. En nuestro caso, vamos a utilizar el canal
A0,tambin es importante resaltar , que este PIC al igual que el conocido PIC
16F84A, tiene una arquitectura RISC, con tan solo un juego de 35 instrucciones
con un ancho de 14 bits. La frecuencia puede llegar hasta lo 20 Mhz, sobrado para
el diseo propuesto, otro aspecto clave es que su organizacin esta en cuatro
bancos de la memoria RAM, y tiene una memoria tipo Flash que es donde
escribimos las instrucciones,su capacidad es de 8 kilobytes.El voltaje de operacin
oscilla entre los 2 voltios y 5.5 voltios. La corriente mxima por canal es de 25 mA.
Tengase en cuenta que en la memoria RAM, se tienen los registros de operacin
de este integrado de diseo DIL , adems que accedemos a los Bancos por medio
de una combinacin de bits del registro STATUS.

3.PROGRAMA DE CONTROL EN ASM.MPLAB

;UNIVERSIDAD NACIONAL ABIERTA Y A DISTANCIA "UNAD"


;TECNOLOGIA EN ELECTRONICA
;INSTRUMENTACION MEDICA
;299016_5
;TERMOMETRIA CLINICA

__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC


LIST P=16F877A
INCLUDE <P16F877.INC>
CBLOCK .32

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

bsf PORTB,0 ;energiza puerto 0 del canal B


call Mensaje_Normal

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

GOMEZ HERNANDEZ, SAULO, Protocolo Academico de Instrumentacin


Mdica,Universidad Nacional Abierta y a Distancia UNAD,Bogot ,(2010).
QUINTERO MUOZ,JORGE EDUARDO,Mdulo de Instrumentacin
Mdica,Universidad Nacional Abierta y a DistanciaUNAD.

Você também pode gostar