Author |
Message |
Topic: #TYPE ARG=Wx:Wy |
arocholl
Replies: 5
Views: 10415
|
Forum: General CCS C Discussion Posted: Sun Oct 04, 2015 4:37 pm Subject: #TYPE ARG=Wx:Wy |
concerns confirmed: this feature is implemented in a way that cannot be used in any real program. Clearly didn't had it enabled by default because is extremely buggy.
The biggest problem: It does n ... |
Topic: #TYPE ARG=Wx:Wy |
arocholl
Replies: 5
Views: 10415
|
Forum: General CCS C Discussion Posted: Sun Oct 04, 2015 11:16 am Subject: #TYPE ARG=Wx:Wy |
Yes, I know. Still doesn't make sense to me is off by default in PCD which is specific for 16bits which does in fact support stack.
My fear is this mode may be way less tested and produce new compi ... |
Topic: #TYPE ARG=Wx:Wy |
arocholl
Replies: 5
Views: 10415
|
Forum: General CCS C Discussion Posted: Sat Oct 03, 2015 1:16 pm Subject: #TYPE ARG=Wx:Wy |
I saw this in PCD manual as a way to avoid using scratch RAM variables for function arguments. Inspecting the ASM code shows way more efficient and faster code, and of course using less RAM overall. T ... |
Topic: SOLVED: Strange PWM behaviour |
arocholl
Replies: 12
Views: 14512
|
Forum: General CCS C Discussion Posted: Thu Apr 03, 2014 4:38 pm Subject: SOLVED: Strange PWM behaviour |
Hi Alan, do you mind adding the full code you ended up with? I am not sure to realize what you left and what you remove from the original post. I am having some trouble to get a DSPIC33EP to work with ... |
Topic: USB host on dsPIC33EP chips |
arocholl
Replies: 9
Views: 13048
|
Forum: General CCS C Discussion Posted: Fri May 24, 2013 3:58 am Subject: USB host on dsPIC33EP chips |
If you need USB support, I would not recommend CCS compiler, go with the Microchip compilers. If you use an external USB IC, such as FTDI, then you only work with standard RS232 or SPI commands, depen ... |
Topic: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
arocholl
Replies: 11
Views: 20448
|
Forum: General CCS C Discussion Posted: Wed May 22, 2013 6:26 am Subject: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
I will send this to CCS, but they will probably put it in the same queue other of my (old) requests are waiting for any attention, so not very optimistic.
In the second topic, it is still bogus cod ... |
Topic: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
arocholl
Replies: 11
Views: 20448
|
Forum: General CCS C Discussion Posted: Wed May 22, 2013 3:26 am Subject: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
When the compiler generates data lengths twice their normal size, that is normally for reading from program memory (32bits would take 64bits in program memory for these types of chips). You might pas ... |
Topic: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
arocholl
Replies: 11
Views: 20448
|
Forum: General CCS C Discussion Posted: Tue May 21, 2013 7:51 am Subject: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
Just for reference of anyone interested, this is the code I will end up using, short of any other higher level suggestion.
//Required: Set write page register to the right value,
/ ... |
Topic: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
arocholl
Replies: 11
Views: 20448
|
Forum: General CCS C Discussion Posted: Tue May 21, 2013 7:00 am Subject: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
As a side note, as you may expect #locate doesn't work either. It generates code for the assigned address with no care or extra code to handle pages, just tries to go to that location with raw code, w ... |
Topic: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
arocholl
Replies: 11
Views: 20448
|
Forum: General CCS C Discussion Posted: Tue May 21, 2013 6:47 am Subject: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
Good input, I didn't think on Addresmod this way before your post, but more like a EEPROM or External RAM interface... Assuming it works as advertised, it could be a good workaround for some uses of u ... |
Topic: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
arocholl
Replies: 11
Views: 20448
|
Forum: General CCS C Discussion Posted: Mon May 20, 2013 8:24 am Subject: DSRPAG / DSWPAG - EDS mode in RAM for PIC24 / DSPIC33 parts |
Some large RAM parts such as PIC24EP and dsPIC33EP can handle (and has internal RAM well above) 32KB RAM, but these parts use a paginated RAM which requires handling the DSRPAG and DSWPAG registers.
... |
Topic: Under construction - undocumented PCD changes in V4.094- |
arocholl
Replies: 6
Views: 8833
|
Forum: General CCS C Discussion Posted: Mon Dec 20, 2010 8:32 am Subject: Under construction - undocumented PCD changes in V4.094- |
The only practical way to trust a new CCS compiler version is to actually compare assembler output. This is working well for me and tells me whether I should upgrade for a given code or not.
Basica ... |
Topic: Decode RC6 protocol using simple routine |
arocholl
Replies: 14
Views: 87969
|
Forum: Code Library Posted: Thu Nov 25, 2010 8:47 am Subject: Decode RC6 protocol using simple routine |
Quick suggestion: your enable_interrupts(INT_TIMER0); should be at the end of the ISR, not at the beginning. Otherwise you increase risk of reentrancy. |
Topic: error messages |
arocholl
Replies: 9
Views: 14768
|
Forum: General CCS C Discussion Posted: Tue Nov 23, 2010 12:47 pm Subject: error messages |
You can not use strings in a case!
Yes, you can with CCS v4.1xx, see http://www.ccsinfo.com/content.php?page=V4.1xx , they extended beyond standard C for that.
Probably the user was working wi ... |
Topic: #ORG and Unused code |
arocholl
Replies: 3
Views: 4614
|
Forum: General CCS C Discussion Posted: Tue Nov 23, 2010 7:31 am Subject: #ORG and Unused code |
The whole 'point' of ORG, is to allow _you_ to take over function placement. If you have taken this over, why be surprised if the compiler does not then remove unused functions....
I partially agre ... |
|