pic
DESCRIPTION
TRANSCRIPT
![Page 1: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/1.jpg)
PIC
Sergio Giovanni Hernández Renteria1451948
![Page 2: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/2.jpg)
Sumar 3 Números en HEX y DEC
Lo que realiza mi circuito es sumar 3 números en HEX y también en DEC, se toman los datos desde un teclado matricial y se muestran en una LCD de 2 líneas.
HEX: DEC:
![Page 3: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/3.jpg)
Hexadecimal
9 + 7 = 16 (16 – 16 = 0 y nos llevamos 1) En este caso la respuesta obtenida, 16, no está entre el
0 y el 15, por lo que tenemos que restarle 16. Por lo tanto, la respuesta obtenida será 10 (sistema hexadecimal).
A + A = 20 ( 20 – 16 = 4 y nos llevamos 1)
A + B + C = 33 ( 33 – 32 = 1 y nos llevamos 2)La respuesta es 33 y no está entre el 0 y el 15, por lo que tenemos que restarle 32. Por lo tanto, la respuesta obtenida será 21 (sistema hexadecimal). En esta operación hemos tenido que restar 32, y no 16 como hacíamos anteriormente. Esto ha ocurrido porque si a 33 le restamos 16 seguiríamos estando fuera del sistema hexadecimal, con un número que no se encuentra entre el 0 y el 15.
![Page 4: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/4.jpg)
Material (1/2)
LCD JHD 162A Teclado MatricialPIC16F84A
Protoboard
![Page 5: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/5.jpg)
Material (2/2)
Cable Capacitor 100n Capacitor 22p
Cristal de CuarzoDe 4MHz
Potenciómetro 10kResistencias de 330Ohms
![Page 6: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/6.jpg)
Circuito
![Page 7: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/7.jpg)
Librerias (.INC)
![Page 8: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/8.jpg)
Compilamos el Código
![Page 9: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/9.jpg)
PIC-600
![Page 10: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/10.jpg)
Configuramos el PIC
![Page 11: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/11.jpg)
Seleccionamos el .HEX
![Page 12: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/12.jpg)
![Page 13: Pic](https://reader034.vdocuments.co/reader034/viewer/2022051612/54beda514a79593b678b4679/html5/thumbnails/13.jpg)