Author |
Message |
Topic: constant type conversion |
Regas
Replies: 2
Views: 5828
|
Forum: General CCS C Discussion Posted: Sat Nov 30, 2013 3:21 am Subject: constant type conversion |
Yes thanks for competent answer Ttelmah.
It seems there is no possibility to make it easier, I have to use the “CCS Base Converter” or another PConvert tool, and paste and copy the values.
... |
Topic: constant type conversion |
Regas
Replies: 2
Views: 5828
|
Forum: General CCS C Discussion Posted: Fri Nov 29, 2013 3:23 pm Subject: constant type conversion |
For a CAN Parameter table I have to write int and float constants to the same variable.
Int32 value; //variable to transmit
value = 0x001 //Int32 1
This is OK.
value = 0x3B23D70A; //float32 0.0 ... |
Topic: ICD-U64 update problem |
Regas
Replies: 0
Views: 2675
|
Forum: General CCS C Discussion Posted: Mon Mar 26, 2012 1:45 am Subject: ICD-U64 update problem |
Hi There
About Three Weeks ago I have sent the following message to the CCS Support Center, but I never get answer.
-------------------------------------------------------------------------
... |
Topic: PCD: type conversion float32 to signed int16 |
Regas
Replies: 3
Views: 4877
|
Forum: General CCS C Discussion Posted: Thu Jun 17, 2010 5:28 am Subject: PCD: type conversion float32 to signed int16 |
Hi newguy
Thanks, amazing, it works!
A measured execution time is about 6us with
slightly overclocked dsPIC30F6014A (32Mhz). |
Topic: PCD: type conversion float32 to signed int16 |
Regas
Replies: 3
Views: 4877
|
Forum: General CCS C Discussion Posted: Wed Jun 16, 2010 12:59 pm Subject: PCD: type conversion float32 to signed int16 |
I use PCD compiler v.4...
For a Project with CAN Bus I need to convert an incoming float32 number to an signed int16 number. The value of 0.1 - 200 should be converted to the value 1 - 2000 and -0 ... |
Topic: Problem with PCD compiler and const declaration |
Regas
Replies: 3
Views: 6966
|
Forum: General CCS C Discussion Posted: Fri Jan 08, 2010 3:42 pm Subject: Problem with PCD compiler and const declaration |
Hi FvM
Thank you for help.
Yes I use PCD V4.104.
The last posted routine is really working when compiled separately sorry.
I could not find the
#nolist pragma
in the header file, bu ... |
Topic: Fast isr routine with PCD compiler |
Regas
Replies: 2
Views: 4261
|
Forum: General CCS C Discussion Posted: Fri Jan 08, 2010 6:59 am Subject: Fast isr routine with PCD compiler |
I have to write an extreme fast interrupt routine for dsPIC30 Chip using pcd compiler.
No registers are changed and the top int level in this project is used.
The keyword fast can then be used ... |
Topic: Problem with PCD compiler and const declaration |
Regas
Replies: 3
Views: 6966
|
Forum: General CCS C Discussion Posted: Fri Jan 08, 2010 5:21 am Subject: Problem with PCD compiler and const declaration |
The following code fragment works well:
char Strg[] ={"Test"};
int8 ii;
ii =0;
while (Strg[ii] !=0){
... |
|