Autor Tema: Como leo un caracter en una ALCD en Proton?  (Leído 1582 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Desconectado gesteva

  • PIC12
  • **
  • Mensajes: 52
Como leo un caracter en una ALCD en Proton?
« 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! Rebotado

GESTEVA

Desconectado RGL

  • Colaborador
  • PIC24F
  • *****
  • Mensajes: 634
RE: Como leo un caracter en una ALCD en Proton?
« Respuesta #1 en: 09 de Agosto de 2005, 15:19:00 »
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.


Desconectado gesteva

  • PIC12
  • **
  • Mensajes: 52
RE: Como leo un caracter en una ALCD en Proton?
« Respuesta #2 en: 10 de Agosto de 2005, 22:26:00 »
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! Sonrisa Gigante

Desconectado RGL

  • Colaborador
  • PIC24F
  • *****
  • Mensajes: 634
RE: Como leo un caracter en una ALCD en Proton?
« Respuesta #3 en: 13 de Agosto de 2005, 12:14:00 »
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