Hola, antes que nada darte las gracias por tanto ejemplo y tan claros.
queria decirte que e intentado montar el ejemplo 24 sobre el Mplab con el plugin para css y no hay manera, creo k es por una incompatibilidad de librerias , al menos eso e leido, pero queria saber que es lo k me pasa realmente. esto es lo k me da mplab:
Executing: "C:\Program files\Picc\CCSC.exe" +FH "flex_lcd_c.c" +EXPORT +DF +LN +T +A +M +Z +Y=9 +EA
*** Error 128 "C:\Documents and Settings\Pedro Francisco\Desktop\16f84_flexlcd\flex_lcd_c.c" Line 28(142,183): A #DEVICE required before this line
C:\Documents and Settings\Pedro Francisco\Desktop\16f84_flexlcd\flex_lcd_c.o ===> 1 Errors, 0 Warnings.
Halting build on first failure as requested.
BUILD FAILED: Sun Nov 16 19:57:11 2008
Cuando monto tu ejemplo, por que me da este error??.
Un saludo
#include <18F2550.h>
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL3,CPUDIV1,VREGEN
#use delay(clock=48000000)
2) No hay funcion Delayms(), la funcion correcta es delay_ms().
Compilando el codigo desde el MPLAB con el CCS v.4.073:
Me dio como resultado:
Executing: "C:\Archivos de programa\PICC\Ccsc.exe" +FH "lcd_16f84.c" +DF +LN +T +A +M +Z +Y=9 +EA
Memory usage: ROM=2% RAM=0% - 1%
0 Errors, 0 Warnings.
Loaded C:\Documents and Settings\Miguel Lopez\Mis documentos\Mis archivos recibidos\Pruebas\lcd_16f84.cof.
BUILD SUCCEEDED: Mon Nov 17 10:29:20 2008
Saludos
pregunta CCS v.4.073 y MPLAB IDE v8.00?
teno el mplab 7.6 y el pwc de css la 4.0 y queria usar mplab para debugear ...
ok, me bajare las versiones que me as dicho de pwc y de mplab , tengo un problema k aun no me e bajado el proteus y no tengo ni idea como funcu¡iona asi que esta noche a ver si lo tengo todo solucionado y mañana os cuento.
Muchisimas gracias por contestar tan rapido
pregunta CCS v.4.073 y MPLAB IDE v8.00?
CCS PCB v.4.073, PCH v.4.073, PCH v.4.057, PCD v.4.057, MPLAB v.8.10. :-)
Prueba cargar el .cof que genera la compilacion (ya se haga en el IDE del CCS o del MPLAB) en el Proteus. Es muy bueno para debuggear.
Saludos
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Timer uses 1:128 Postscale
#FUSES XT //Crystal osc <= 4mhz
#FUSES NOPROTECT //Code not protected from reading
#FUSES BROWNOUT //Reset when brownout detected
#FUSES BORV20 //Brownout reset at 2.0V
#FUSES NOPUT //No Power Up Timer
#FUSES NOCPD //No EE protection
#FUSES STVREN //Stack full/underflow will cause reset
#FUSES NODEBUG //No Debug mode for ICD
#FUSES LVP //Low Voltage Programming on B3(PIC16) or B5(PIC18)
#FUSES NOWRT //Program memory not write protected
#FUSES NOWRTD //Data EEPROM not write protected
#FUSES IESO //Internal External Switch Over mode enabled
#FUSES FCMEN //Fail-safe clock monitor enabled
#FUSES PBADEN //PORTB pins are configured as analog input channels on RESET
#FUSES NOWRTC //configuration not registers write protected
#FUSES NOWRTB //Boot block not write protected
#FUSES NOEBTR //Memory not protected from table reads
#FUSES NOEBTRB //Boot block not protected from table reads
#FUSES NOCPB //No Boot Block code protection
#FUSES MCLR //Master Clear pin enabled
#FUSES LPT1OSC //Timer1 configured for low-power operation
#FUSES XINST //Extended set extension and Indexed Addressing mode enabled
#FUSES PLL12 //Divide By 12(48MHz oscillator input)
#FUSES CPUDIV4 //System Clock by 4
#FUSES USBDIV //USB clock source comes from PLL divide by 2
#FUSES VREGEN //USB voltage regulator enabled