TODOPIC
Microcontroladores PIC => Lenguaje Basic para microcontroladores PIC => Mensaje iniciado por: gesteva en 07 de Agosto de 2005, 22:47:00
-
Alguien sabe como se lee un caracter un una LCD alfanumerica en proton?
Hay un comando llamado LCDREAD pero dice claramente que solo es para GLCD... yo necesito capturar en una variable un caracter presente en una posicion determinada de la ALCD.
Alguna Idea?
Saludos! 
GESTEVA
-
Este comando es para LCD gráficos (GLCD)
En la ayuda pone este ejemplo,
Syntax
Variable = LCDREAD Ypos , Xpos
Or
Variable = LCDREAD TEXT Ypos , Xpos
Overview
Read a byte from a graphic LCD. Can also read Text RAM from a Toshiba T6963 LCD.
Operators
Variable is a user defined variable.
Ypos :-
With a Samsung KS0108 graphic LCD this may be a constant, variable or expression within the range of 0 to 7 This corresponds to the line number of the LCD, with 0 being the top row.
With a Toshiba T6963 graphic LCD this may be a constant, variable or expression within the range of 0 to the Y resolution of the display. With 0 being the top line.
Xpos: -
With a Samsung KS0108 graphic LCD this may be a constant, variable or expression with a value of 0 to 127. This corresponds to the X position of the LCD, with 0 being the far left column.
With a Toshiba graphic LCD this may be a constant, variable or expression with a value of 0 to the X resolution of the display divided by the font width (LCD_X_RES / LCD_FONT_WIDTH). This corresponds to the X position of the LCD, with 0 being the far left column.
Example
" Read and display the top row of the Samsung KS0108 LCD
DEVICE = 16F877
LCD_TYPE = SAMSUNG " Target a Samsung graphic LCD
DIM VAR1 as BYTE
DIM Xpos as BYTE
CLS " Clear the LCD
PRINT "Testing 1 2 3"
FOR Xpos = 0 TO 127 " Create a loop of 128
VAR1 = LCDREAD 0 , Xpos " Read the LCD"s top line
PRINT AT 1 , 0 , "Chr= " , Dec VAR1," "
DELAYMS 100
NEXT
STOP
Notes
The graphic LCDs that are compatible with PROTON+ are the Samsung KS0108, and the Toshiba T6963. The Samsung display has a pixel resolution of 64 x 128. The 64 being the Y axis, made up of 8 lines each having 8-bits. The 128 being the X axis, made up of 128 positions. The Toshiba LCDs are available with differing resolutions.
-
Entiendo bien lo que me explicas al respecto de la instrucción LCDREAD.
Pero mi pregunta se refiere a si existe la forma en Protón de Leer una pantalla LCD Alfanumérica...??? pues como bien lo explicas aqui LCDREAD solo funciona con GLCD.
Gracias nuevamente!
-
Yo no sé cómo hacerlo. Los displays tienen una pequeña RAM, si pudieses leer esa RAM de algún modo podrías encontrar una solución.
Saludos
ricky