TODOPIC
Microcontroladores PIC => Lenguaje C para microcontroladores PIC => Mensaje iniciado por: jdaniels en 23 de Agosto de 2007, 16:00:36
-
Saludos, cuando escribo algo en la lcd, por ejemplo lcd_putc("todopic"); se escribe todo bien pero al final aparece un caracter raro, (todopic▓)no es el cursor pense que era el pero no, ya que con la instruccion lcd_send_byte lo puse a que apareciera para ver si era este caracter y no lo es, sale justamente al final cuando escribo algo sea lo q sea, del resto el lcd ando fino no tiene rollos y la libreria es lcd.c a alguien le pasa lo mismo el caracter es como si fuera el FFh o 255d es decir todo negro █ bueno en el lcd se ve asi ▓
-
Hola. ¿Parpadea ese caracter? Yo no me acuerdo si el cursor parpadeaba..creo que no. Debe ser el cursor. Fijate en la configuracion del LCD cuando lo inicializas, debes estar seteando que aparezca el cursor de ese modo.
Saludos
-
sip, ese cursor incluso puede parpadear y se configura al inicio del lcd.
-
Hola Bruno gracias por responder no parpardea, se mantiene fijo, si le doy para que aparezca aparece pero como debe osea sale "_", y sale asi todopic▓_ osea despues del caracter raro, que puede ser? suponte que sea el cursor como hago para que no aparezca osea se que debo cargar lcd_send_byte(0,0x0C) pero despues del lcd_init() o antes o como hago pa meterlo en la libreria
-
Si subes el codigo del programa y la libreria podremos ayudarte mejor.
Pegalo utilizando el boton Codigo y selecciona CCS..
-
[code=css][code]
#include <16F877A.h>
#fuses HS,NOPUT,NOPROTECT,NOBROWNOUT,NOLVP,NOWDT // Fusibles a Configurar
#use delay(clock=20000000) // Cristal
#include <LCD2.c> // Libreria Pantalla LCD
void main()
{
lcd_init();
lcd_putc("Hola");
}
Tan simple como eso ojo lcd2 es lo mismo que lcd.c solo modificando el delay_cycles() por delay_us()[/code][/code]
-
Ok les tengo algunos avances si pongo lcd_putc('A'); osea un solo caracter no aparece el dichoso caracter raro, pero si tengo que escribir una palabra entiendase lcd_putc("lo que sea"); si aparece, con printf no sale el caracter raro, escriba una letra o una palabra no sale con printf, que sera? puede que sea una locura toda rara de ccs o quien sabe, pero alguien podria probar a ver si tambien le pasa lo mismo o el loco aqui soy yo? :D
PD: Uso ccs version 4.013
-
¿Qué versión del CCS estás usando?
Suerte!!! ;)
-
¿Qué versión del CCS estás usando?
Suerte!!! ;)
Creo que Vszener tiene razon, mira esto:
4.012 A type conversion problem with some >> operations is fixed
4.012 A new method to calcualte a ROM checksum for PIC16 is added (see ex_checksum.c)
4.013 Fixed a bug in PCM concerning some bit arrays
4.013 Configuration word for 12 bit parts has been moved for MPLAB
4.013 A post increment problem with 1 bit data types is fixed
4.014 A problem using ZERO_RAM and ICD=TRUE together on some PIC18 parts is fixed
4.014 Sending a constant string to functions with a char param no longer sends an extra byte <<<<<<<<<<<<
4.014 The reserved bits in the configuration words are now set correctly
4.014 Constant data structure names now appear in the .SYM file in the ROM section
4.015 A number of IDE issues have been fixed, more are comming
4.015 An error message problem with very large programs is fixed
4.016 An access violation error in the IDE is fixed
4.017 Several IDE issues have been fixed
4.017 Updates made for the newest chips
4.018 A problem with the registers used by SETUP_CCPx for some chips is fixed
4.019 More IDE issues have been delt with
4.019 WDT setup has been clarified for several chips, check the header file if you get a compile error
4.020 Some problems with arrays of function pionters have been fixed
4.020 The cursor disapearing on blank lines in the IDE is fixed
4.020 A Linux version has been released
4.021 More IDE issues have been fixed
4.021 Linker error messages have been clarified
4.021 Some command line linker issues have been resolved
4.021 A bug dealing with pointers to constants is fixed
4.021 The & unary operator by default no longer returns a generic (int8 *)
4.022 An interface problem to MPLAB is fixed
4.023 An IDE problem building some projects is fixed
4.024 A problem with the floating point unary minus operator on some chips is now fixed
4.024 The IDE now includes an option to use clasic menus instead of the new ribbons
4.025 Updates made for the newest chips
4.026 A code optimization bug has been fixed
4.026 Problems with reading and writting to flash on some parts is fixed
4.026 Experimental code completion added to the IDE (defaults to off for now)
4.027 Removed an IDE query after compilation concerning file reloads
4.028 A run time error in CCSC for some users is fixed
4.029 An optimization problem dealing with bit arrays is fixed
4.029 Some issues with write_program_memory erasing too much or not enough are fixed
4.029 Updates made for the newest chips
4.030 Some IDE editor problems have been fixed
4.031 Some WDT issues on chips with a WDTCON register are fixed
4.031 A linker problem has been fixed dealing with matching overloaded functions
4.031 A problem with #define CCS3 setting the pointer size incorrectly is now fixed
4.032 Some linker warnings and error messages have been fixed and clarified
4.032 A problem with < and > for bit operands is fixed
4.033 A new #import option for binary files has been added
4.033 Some new GETENV options have been added added
4.033 Switch is fixed to work with over 128 cases
4.033 A multiple compilation unit example is now included (mcu.zip)
4.033 Some warnings in stdlib.h are removed
4.033 A problem with memset clearing too much RAM in PCH is fixed
4.033 Some issues with arrays of function pointers is fixed
4.033 Updates made for the newest chips
4.034 A problem with EXTERN on 1 bit variables is fixed
4.034 Some issues with data saved in ROM have been fixed. See readme.txt for info on ROM data.
4.035 A problem with some constant strings in PCM is fixed
4.035 A bug in memcpy for large arrays in PCH is fixed
4.036 A problem with some PCM switch statements is fixed
4.037 PJT file is no longer overwritten on each compile
4.037 IDE updates for PCD beta testing
4.038 An RS232 problem for some configurations (since 4.037) is fixed
4.039 The IDE file slide out is fixed
4.039 A PCB problem with subtract in some complex expresions is fixed
4.040 A number of IDE issues are fixed including some build problems
4.040 Optimization improvements
4.040 Updates for the newest parts
4.041 A parametter passing bug recently introduced is fixed
4.042 COF debug files now include the full paths (instead of rel paths) to source files for MPLAB
4.043 A bug recently introduced concerning indirect bit assignments is fixed
4.044 A PCB math error subtracting from a constant is fixed
4.044 PCH was not allowing large constant arrays in 4.043, this is fixed
4.045 Bit to Bit assignments broke in 4.044 now fixed
4.046 Release of the PCD 24 bit compiler
4.048 A problem with PORT_B_PULLUPS is fixed
4.048 An issue with SIZEOF on ROM data is fixed
4.048 A number of updates for PCD, more to come soon
4.048 The 16F88x comparator function is fixed
4.049 I/O port registers for many chips were wrong in the 4.048 release, now fixed
4.050 An optimization bug has been fixed
4.050 A number of PCD bug fixes were made
4.050 An access violation in the PCW debugger has been fixed
4.050 #ROM now has a CHAR option to compress two characters into a 14 bit word
4.051 A number of PCD bug fixes were made
4.052 An ADC bug introduced in 4.051 is fixed
4.053 A problem with the conversion of constant integers in floating point expresions is fixed
Creo que deberias utilizar la ultima revision de la version 3, creo que es la 3.249, verificalo... :? :?
-
Es que antes cosas raras, es mejor ver el listado de bugs :mrgreen:
Suerte!!! ;)
-
Ok gracias MGLSOFT y vszener por cierto la version la puse en mi ultimo comentario, estan leyendo de volada?? :lol:
Casualmente tengo esa version (3.249) déjame instalarla y les aviso que tal
-
Buenos muchachos les comento los resultados
Despues de instalar la version 3.249 (parece windows 95 jaja) y lidiar un buen rato con ella, me he dado cuenta que no muestra el display a 20Mhz, le puse la libreria LCD.C modificada para >4Mhz pero nada, en fin el asunto es que cambie a 4Mhz y FUNCIONO, no me sale el caracter loco ese, ya sea que ponga lcd_putc para escribir una palabra o letra lo hace de maravilla. Entonces me puse a pensar y si tambien "camino" hacia adelante? y instale la version 4.038 y tambien funciono calidad no sale el dichoso caracter, y nuevamente me puse a revisar lo que pego MGLSOFT y creo que el error deja de estar en las versiones 4.020 porque me parece que es este (4.020 The cursor disapearing on blank lines in the IDE is fixed) ahora a partir de que version saldra ni idea no me pondre a averiguar eso jaja
Gracias nuevamente a todos por la ayuda prestada, fue de gran pero gran ayuda
-
En latin se dice:
CCS Usuarium Renegarum Est
:D :D :D