MICROCONTROLADORES: MANEJO DE PANTALLAS LCD
Pantalla LCD 16×2
La pantalla LCD es un display de cristal líquido alfanumérico, el cual dispone de 2 filas y 16 caracteres. Este dispositivo permite la visualización de información gráfica mediante símbolos o caracteres.
Características de la pantalla LCD 16×2.
Pines de alimentación.
VSS: GND o tierra.
VDD: La alimentación a 5V o Vcc.
VE: Corresponde al pin de control de contraste del display. Para ajustarlo, se utiliza un potenciómetro conectado al VDD.
Pines de control:
RS: Configura la selección de registro de control de datos.
- Con 0 lógico: Registro de comandos(Escritura).
- Con 1 lógico: Registro de datos o carácter (Escritura y lectura).
R/W: Corresponde el pin de escritura y lectura. Permite escribir o leer un dato desde la pantalla.
- 0 lógico: Escritura del LCD.
- 1 Lógico: Lectura del LCD.
Enable: Corresponde al pin de habilitación.
- Con 0 lógico: Indica que está deshabilitado todas las funciones.
- Con 1 lógico: Indica que está habilitado para dar inicio a la lectura y escritura en la pantalla LCD.
Pines de bus de datos.
El bus de datos va desde el pin Do al D7. Para realizar la comunicación con la pantalla LCD, se utiliza los 8 bits del bus de datos; tomando en cuenta los 4 bits más significativos del bus de datos(D4 a D7) y los 4 bits menos significativos del bus de datos(D3 a D0).
Ejemplo: Mostrar mensaje con una pantalla LCD 16×2
Funciones del programa.
#INCLUDE <16F887.h>: La librería que se va a utilizar es la del pic16F887.
#USE DELAY(CLOCK=4000000): Se habilita la frecuencia del oscilador del sistema a 4MHZ.
#FUSES NOWDT: Son los fusibles de configuración. El #FUSES NOWDT: Se desactiva el Watch Dog Timer.
#INCLUDE<lcd.c>: El driver lcd.c, por defecto está configurado para utilizar el puerto D.
lcd_init(): Función que inicializa la pantalla LCD.
lcd_gotoxy(x,y): Mueve el cursor a la posición indicada por los parámetros X y Y.
- X: Indica número de carácter.
- Y: Indica número de línea.
printf(lcd_putc “Sensoricx”): Permite escribir cadena de caracteres en la pantalla LCD.
Materiales.
- Un pic16F887
- Una pantalla LCD 16×2.
Explicación del circuito.
Se mostrará un mensaje estático en una pantalla LCD 16×2. La pantalla LCD, está conectado en el puerto D del pic16F887.
PROGRAMA.
Video.
CONTENIDOS MÁS RELEVANTES.
LOS MEJORES SITIOS PARA APRENDER ELECTRICIDAD GENERAL
Leer Más
LOS MEJORES SITIOS PARA APRENDER ELECTRONICA
Leer Más
PLC: APRENDER A PROGRAMAR
Leer Más
LOS MEJORES SITIOS PARA APRENDER ROBOTICA COMPLETAMENTE GRATIS.
Leer Más
DESCARGAR GRATIS LIBROS DE ELECTRÓNICA
Leer Más
LOS MEJORES SITIOS PARA APRENDER INSTRUMENTACIÓN Y CONTROL
Leer Más
MICROCONTROLADORES: CURSO COMPLETAMENTE GRATIS.
Leer Más
PLC: CURSO COMPLETAMENTE GRATIS.
Leer Más
APRENDE LABVIEW CON ESTOS SENCILLOS TUTORIALES
Leer Más
IGBT. QUE ES- PARA QUE SIRVE- COMO FUNCIONA
Leer Más
INVERSOR DE GIRO DE MOTOR TRIFÁSICO
Leer Más
CONTROL ELECTRICO-INTRODUCCION
Leer Más
If you want to use the photo it would also be good to check with the artist beforehand in case it is subject to copyright. Best wishes. Aaren Reggis Sela
If some one wishes expert view concerning running a blog afterward i recommend him/her to pay a visit this blog, Keep up the nice job. Maritsa Dirk Andrew
Touche. Solid arguments. Keep up the amazing effort. Lindie Hunfredo Alicia
Looking forward to reading more. Great article. Really looking forward to read more. Much obliged. Emilia Keenan Caputo
You are my breathing in, I own few blogs and occasionally run out from to brand. Felisha Whitaker Hermia
You have mentioned very interesting points! ps nice web site. Barry Jarid Zita
I value the post. Much obliged. Noriko Rickenbacker
Very informative article.Thanks Again. Great. Keven Huffstickler
Pretty nice post. I just stumbled upon your blog and wished
to say that I have really enjoyed surfing around your blog posts.
In any case I will be subscribing to your rss feed and I hope you write again very soon!
I cannot thank you enough for the blog post.Much thanks again. Want more. Eugenio Klarin
I really like and appreciate your blog article. Fantastic. Esteban Sevick
Thanks a lot for the blog article.Really thank you! Want more. Roland Frisbee
Major thanks for the article post.Much thanks again. Keep writing. Victor Panella
I don’t even know how I ended up here, but I thought this post was great.
I do not know who you are but certainly you’re
going to a famous blogger if you are not already 😉 Cheers!