gan_canny
Junior Member
Offline
Posts: 89
Thank You
-Given: 101
-Receive: 26
|
|
« Reply #25 on: March 01, 2011, 05:41:34 17:41 » |
|
Well there are many types of LCD and many ways they can have issues. First you need to know whether your LCD has a controller. If it doesn't have a controller this will be a very difficult project for you. Is the LCD character or graphic or both. Is it a serial interface ( rs232 I2C SPI) or parallel If parallel is it a 4 bit or 8 bit interface. Does it have the correct bias voltage to provide contrast. When all that is known next comes the initialization an initial command is often sent then a delay before sending additional commands. LCD.C is a template rather than a universal solution.
|
|
|
Logged
|
|
|
|
mario2000
Active Member
Offline
Posts: 165
Thank You
-Given: 350
-Receive: 556
|
|
« Reply #26 on: March 01, 2011, 10:03:15 22:03 » |
|
Hi, thanks for replying, the problem is that the new version of the code lcd.c changed, now lcd.c no works This is a sample code: #include <16F873A.h> #FUSES NOWDT //No Watch Dog Timer #FUSES XT //Crystal osc <= 4mhz for PCM/PCH , 3mhz to 10 mhz for PCD #FUSES NOPUT //No Power Up Timer #FUSES NOBROWNOUT //No brownout reset #FUSES NOLVP //No low voltage prgming, B3(PIC16) or B5(PIC18) used for I/O #FUSES NOCPD //No EE protection #FUSES NOWRT //Program memory not write protected #FUSES NODEBUG //No Debug mode for ICD #FUSES NOPROTECT //Code not protected from reading
#use delay(clock=4000000) #define LCD_ENABLE_PIN PIN_B0 #define LCD_RS_PIN PIN_B1 #define LCD_RW_PIN PIN_B2 #define LCD_DATA4 PIN_B4 #define LCD_DATA5 PIN_B5 #define LCD_DATA6 PIN_B6 #define LCD_DATA7 PIN_B7
#include <lcd.c>
void main() { lcd_init(); lcd_gotoxy(1,1); printf(lcd_putc,"Helo World");
while(TRUE){ }
}
I downloaded the compiler from the following link provided on this site: http://www.4shared.com/file/l1ZEIjms/CCS_PCWHD_4114.htmlupload simulation here.
|
|
|
Logged
|
|
|
|
gan_canny
Junior Member
Offline
Posts: 89
Thank You
-Given: 101
-Receive: 26
|
|
« Reply #27 on: March 26, 2011, 02:39:14 14:39 » |
|
There isn't enough information to help you. The code snippet suggests a 4 bit parallel interface to a LCD controller. The printf(lcd_putc,"Helo World"); is a recursive call . This is a feature of CCS in that they take each character from the string starting with "H" and call lcd_putc. It is called several times until the string is fully read. Now lcdputc in turn has to break the char into two nibbles and call the LCD interface for each nibble. It also has to not exceed any LCD timing issues. Simulation is helpful but often leads to the expectation that what is artificial can become real. The real PCB circuit and components will if you are lucky behave as simulated. The more complex the project the more the risk that it won't.
|
|
|
Logged
|
|
|
|
kemalserkan
Guest
|
|
« Reply #28 on: March 29, 2011, 06:28:25 06:28 » |
|
there is a problem in lcd.c library. i'm using 18f4550. i want to use portd for lcd. i can use lcd with my own lcd library, but i cant use portd pins with lcd.c. i disable the spp module, but still it doesnt work. here is the pin connection(i'm using ccsc 4.114) #include <lcd.c> #define ENABLE_PIN D3 #define RS_PIN D2 #define RW_PIN D0 #define Data4 D4 #define Data5 D5 #define Data6 D6 #define Data7 D7
|
|
|
Logged
|
|
|
|
gan_canny
Junior Member
Offline
Posts: 89
Thank You
-Given: 101
-Receive: 26
|
|
« Reply #29 on: March 29, 2011, 01:46:03 13:46 » |
|
Well again you aren't disclosing the error messages you get just that it doesn't work with lcd.c You may know this but in case you don't #defines are like the replace function in a word processor. The compiler jut replaces the expression on the left with the expression on the right so #define Data4 D4 means Data4 is replaced with D4 but now that means D4 also needs to be defined. Typically it would be #define D4 PIN_D4 and PIN_D4 in turn is redefined by the compiler to be a numbered pin where the number is specific to the pic chip ( this part is automatic after you specify the device( chip) so you don't need to define PIN_D4).
|
|
|
Logged
|
|
|
|
|
machine
Newbie
Offline
Posts: 30
Thank You
-Given: 3
-Receive: 34
|
|
« Reply #31 on: July 12, 2011, 01:50:39 01:50 » |
|
The files not contain keygen...
|
|
|
Logged
|
|
|
|
glitch_inc
Newbie
Offline
Posts: 28
Thank You
-Given: 14
-Receive: 8
|
|
« Reply #32 on: July 12, 2011, 03:30:20 03:30 » |
|
Its in this thread on the first page. Post by GodBlessU
|
|
|
Logged
|
|
|
|
petarp
Junior Member
Offline
Posts: 68
Thank You
-Given: 26
-Receive: 51
|
|
« Reply #33 on: July 13, 2011, 08:46:34 08:46 » |
|
Hi. Anyone have CCS ver. 4.121 and 4.122? Please share.
Thanks.
|
|
|
Logged
|
|
|
|
cjack
Junior Member
Offline
Posts: 76
Thank You
-Given: 100
-Receive: 1524
|
|
« Reply #34 on: September 23, 2011, 06:31:52 06:31 » |
|
|
|
|
Logged
|
|
|
|
mitsos
Hero Member
Offline
Posts: 860
Thank You
-Given: 3092
-Receive: 4596
|
|
« Reply #35 on: September 24, 2011, 06:26:08 18:26 » |
|
hi
something goes wrong with fileserve as free user. I download(many times) the pc4124.exe with size 1.31MBytes instead of 22.51Mbytes. Can someone reupload both files to ifile.it for example.
regards mitsos
|
|
|
Logged
|
|
|
|
|
adriatec
Newbie
Offline
Posts: 8
Thank You
-Given: 0
-Receive: 8
|
|
« Reply #37 on: January 14, 2012, 01:16:14 13:16 » |
|
Hi, as far as I know the new series of dsPIC33E and PIC24E supported by the version 4.128 of the CCS PCWHD. If anybody has, please share with us.
|
|
|
Logged
|
|
|
|
ulderico
Junior Member
Offline
Posts: 72
Thank You
-Given: 150
-Receive: 819
|
|
« Reply #38 on: January 28, 2012, 08:00:50 08:00 » |
|
|
|
|
Logged
|
|
|
|
metal
Global Moderator
Hero Member
Offline
Posts: 2420
Thank You
-Given: 862
-Receive: 678
Top Topic Starter
|
|
« Reply #39 on: January 28, 2012, 08:42:02 08:42 » |
|
This thread is now for CCS C v4.xxx
|
|
|
Logged
|
|
|
|
Old_but_Alive
Senior Member
Offline
Posts: 331
Thank You
-Given: 746
-Receive: 120
|
|
« Reply #40 on: January 28, 2012, 06:35:34 18:35 » |
|
@ulderico, the link is already bad
|
|
« Last Edit: January 28, 2012, 06:47:35 18:47 by Old_but_Alive »
|
Logged
|
I fought Ohm's Law ... and the law won I only use Mosfets because I have a Bipolar mental disorder :-)
|
|
|
Wannabe
Global Moderator
Senior Member
Offline
Posts: 430
Thank You
-Given: 228
-Receive: 285
|
|
« Reply #41 on: January 28, 2012, 07:07:24 19:07 » |
|
|
|
|
Logged
|
|
|
|
alichan
Junior Member
Offline
Posts: 94
Thank You
-Given: 28
-Receive: 88
|
|
« Reply #42 on: January 30, 2012, 08:39:12 20:39 » |
|
Just a suggestion.
Could you do as in the thread for Labcenter Proteus, centralizing all the important links in an untouchable main post in this same thread? So we could follow the changes easily without polluting the thread with comments.
Something like:
Date: Dec 20, 1980 CCS 4.100: link (keygen not provided) Keygen: link
Cheers
|
|
|
Logged
|
|
|
|
fonak
Junior Member
Offline
Posts: 70
Thank You
-Given: 76
-Receive: 197
|
|
« Reply #43 on: March 11, 2012, 02:09:04 14:09 » |
|
Hi all sonsivri's.
Anyone have new version ccs compiler 4,130 ?
Please shere.
Recent changes.
4.130 The setup_low_volt_detect() function missing for many parts is back 4.130 Poor optimization of CONST data structure access is fixed 4.130 A bug declaring variables inside a for statement is fixed 4.130 A hex file problem when using both #FILL_ROM and #ROM is fixed 4.130 I2C slave functions and EX_SLAVE have been updated to work with the newest chips 4.129 Support for the newest devices has been added 4.129 Built in functions for the EPMP module have been added 4.129 Some issues with the PIC24 EP chips have been resolved 4.129 Added a work-around for the UART problem on KA3xx parts 4.128 A typecast inconsistancy with ANSI for 24 bit parts is fixed 4.128 A device database problem with EP chips is fixed
|
|
|
Logged
|
|
|
|
diamadiss
Junior Member
Offline
Posts: 69
Thank You
-Given: 202
-Receive: 4
|
|
« Reply #44 on: March 23, 2012, 08:08:34 20:08 » |
|
Hello, I install CCS v4.128 and MPLAB®IDE Plug-in. I run the ccs and i make build in my code and works ok. When i try to make build via mplab shows me a message "registration file error' in picture below. Also i install version CCS v4.108 and shows me the same message. I have windows 7 ultimate 64-bit. Thanks.
|
|
« Last Edit: March 23, 2012, 08:17:14 20:17 by diamadiss »
|
Logged
|
|
|
|
TheOwlar
Inactive
Offline
Posts: 2
Thank You
-Given: 10
-Receive: 1
|
|
« Reply #45 on: March 28, 2012, 06:47:30 18:47 » |
|
You may know this but in case you don't... MPLAB comes with a free version of the CSS
In the picture, it would seem that you are using the free version and not the "FULL" one
|
|
|
Logged
|
|
|
|
ulderico
Junior Member
Offline
Posts: 72
Thank You
-Given: 150
-Receive: 819
|
|
« Reply #46 on: March 31, 2012, 09:48:18 09:48 » |
|
|
|
|
Logged
|
|
|
|
eljose
Newbie
Offline
Posts: 7
Thank You
-Given: 18
-Receive: 8
|
|
« Reply #47 on: March 31, 2012, 10:55:14 10:55 » |
|
Can you upload it on another server please, i don't have a 4shared account, and i can't download it. Thanks
|
|
|
Logged
|
|
|
|
lucasdark
Newbie
Offline
Posts: 34
Thank You
-Given: 20
-Receive: 15
|
|
« Reply #48 on: April 01, 2012, 12:09:31 00:09 » |
|
You can Subscribe free of charge.
Best regards, Saludos,
|
|
|
Logged
|
|
|
|
pickit2
Moderator
Hero Member
Offline
Posts: 4668
Thank You
-Given: 834
-Receive: 4325
There is no evidence that I muted SoNsIvRi
|
|
« Reply #49 on: April 01, 2012, 12:29:39 00:29 » |
|
|
|
|
Logged
|
Note: I stoped Muteing bad members OK I now put thier account in sleep mode
|
|
|
|