Author |
Message |
Topic: PIC 18F, HW EUSART, Interrupts, Full duplex = garbage data? |
Laurent Chouinard
Replies: 2
Views: 5751
|
Forum: General CCS C Discussion Posted: Tue Dec 08, 2009 8:22 am Subject: PIC 18F, HW EUSART, Interrupts, Full duplex = garbage data? |
Sir, I hope someone is paying you for your contributions here because you are, once again, a life saver.
In-very-deed, bug #14 in the errata A0 chip is the one I experience, and Microchip confirms ... |
Topic: PIC 18F, HW EUSART, Interrupts, Full duplex = garbage data? |
Laurent Chouinard
Replies: 2
Views: 5751
|
Forum: General CCS C Discussion Posted: Mon Dec 07, 2009 11:25 am Subject: PIC 18F, HW EUSART, Interrupts, Full duplex = garbage data? |
I've search the forums and couldn't find anyone that had this particular problem, so I'm posting it.
I'm using a PIC18F6722 with the hardware serial port. I declare the serial port like this:
#u ... |
Topic: Version 4 Comments |
Laurent Chouinard
Replies: 270
Views: 413600
|
Forum: General CCS C Discussion Posted: Wed Dec 12, 2007 12:20 pm Subject: Version 4 Comments |
Follow-up: see http://www.ccsinfo.com/forum/viewtopic.php?t=33000 |
Topic: CODE SAMPLE: Using pointers to constants for string storage |
Laurent Chouinard
Replies: 0
Views: 5322
|
Forum: General CCS C Discussion Posted: Wed Dec 12, 2007 12:19 pm Subject: CODE SAMPLE: Using pointers to constants for string storage |
After several hours of development, I finally came up with a half-decent solution to the famous problem of easily accessing strings stored in ROM via the use of pointers. Furthermore, my approach perm ... |
Topic: Version 4 Comments |
Laurent Chouinard
Replies: 270
Views: 413600
|
Forum: General CCS C Discussion Posted: Tue Dec 11, 2007 2:21 pm Subject: Pointers to rom constants? |
Now I've just spend the last two hours trying to pass a pointer to ROM to a function, using v4.064, and even though it compiles, it always produces gibberish.
I've tried so many things that I could ... |
Topic: String concatenation at compile time |
Laurent Chouinard
Replies: 5
Views: 5572
|
Forum: General CCS C Discussion Posted: Tue Dec 11, 2007 9:04 am Subject: String concatenation at compile time |
Yes! Thank you, it works.
I assumed the compiler required a character to do it, like most other... |
Topic: String concatenation at compile time |
Laurent Chouinard
Replies: 5
Views: 5572
|
Forum: General CCS C Discussion Posted: Tue Dec 11, 2007 8:45 am Subject: String concatenation at compile time |
I mean concatenation at compile time, not at runtime. |
Topic: String concatenation at compile time |
Laurent Chouinard
Replies: 5
Views: 5572
|
Forum: General CCS C Discussion Posted: Tue Dec 11, 2007 8:08 am Subject: String concatenation at compile time |
I would like to know if there is a way to do string concatenation at compile time, like:
In PHP i would do "blah" . "something"
In VB I would do: "blah" & &quo ... |
Topic: PCH optimization of unused functions |
Laurent Chouinard
Replies: 3
Views: 4681
|
Forum: General CCS C Discussion Posted: Mon Oct 15, 2007 12:56 pm Subject: PCH optimization of unused functions |
Update:
Yes. That is exactly why. I just tried it with a blank test program and, indeed, if rom locations are specified, code is compiled. Otherwise, if function is not called, it's not compiled.
... |
Topic: PCH optimization of unused functions |
Laurent Chouinard
Replies: 3
Views: 4681
|
Forum: General CCS C Discussion Posted: Mon Oct 15, 2007 12:52 pm Subject: PCH optimization of unused functions |
I understand your test shows exactly what should be happening, but why would a whole include file loaded with 5 functions that are never referenced to anywhere would still be compiled?
One thing to ... |
Topic: PCH optimization of unused functions |
Laurent Chouinard
Replies: 3
Views: 4681
|
Forum: General CCS C Discussion Posted: Mon Oct 15, 2007 12:16 pm Subject: PCH optimization of unused functions |
I am currently writing code to add to my programs the ability to receive a new firmware through TCP/IP.
I made various elegant hacks to achieve this, such as faking boot code, freezing rom areas to ... |
Topic: PIC24 and PCD designs |
Laurent Chouinard
Replies: 9
Views: 10088
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2007 9:51 am Subject: PIC24 and PCD designs |
libor: Maybe, but generally I tend to avoid external ram or rom and it complicates things unnecessarily (emulator support? external flashing from ICSP? etc)
Instead of upgrading my platform with ex ... |
Topic: PIC24 and PCD designs |
Laurent Chouinard
Replies: 9
Views: 10088
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2007 9:06 am Subject: PIC24 and PCD designs |
SET: In my case, flash is a big limitation. I've hit the ceiling of my 128KB flash PIC, and the biggest pics they make are 256KB of flash, either in PIC24, PIC30 or PIC33... |
Topic: PIC24 and PCD designs |
Laurent Chouinard
Replies: 9
Views: 10088
|
Forum: General CCS C Discussion Posted: Mon Jul 30, 2007 7:48 am Subject: PIC24 and PCD designs |
kevcon: That is exactly why I'm using CCS at the moment. Great product at a very low cost. |
Topic: PIC24 and PCD designs |
Laurent Chouinard
Replies: 9
Views: 10088
|
Forum: General CCS C Discussion Posted: Fri Jul 27, 2007 10:45 am Subject: PIC24 and PCD designs |
kevcon: I am looking at it, but may move to Freescale's Coldfire v2 series due to lack of a compiler for pic24. (I have yet to evaluate the available compilers for coldfire, as I may be just as disapp ... |
|