Author |
Message |
Topic: 64 bit math |
PICman
Replies: 6
Views: 11321
|
Forum: General CCS C Discussion Posted: Tue Jan 10, 2012 12:01 pm Subject: 64 bit math |
Are there any quantities in the universe that are known to 64 bit accuracy? That is 18 x 10^18, or roughly 10,000 x the number of grains of sand in the Hoover dam! What would a lowly micro controlle ... |
Topic: double precision floating point |
PICman
Replies: 17
Views: 29370
|
Forum: General CCS C Discussion Posted: Sat Dec 03, 2011 9:23 am Subject: double precision floating point |
@lifespeed
I also work on source code to eventually address a 48-bit DDS chip (AD9854/56 from AD). I presently use the 32-bit AD9850 for now... And althrough double precision float would be the eas ... |
Topic: ...Float multiplication/division not working |
PICman
Replies: 9
Views: 16852
|
Forum: General CCS C Discussion Posted: Sat Dec 03, 2011 4:53 am Subject: ...Float multiplication/division not working |
Thanks Douglas Kennedy...
That confirms what i said on my last post... CCS has an "autocast" function that automatically casts the variables to the smallest memory needs possible... Is th ... |
Topic: ...Float multiplication/division not working |
PICman
Replies: 9
Views: 16852
|
Forum: General CCS C Discussion Posted: Fri Dec 02, 2011 5:48 pm Subject: ...Float multiplication/division not working |
Thanks PCM_programmer !!!!!
I had to add ".0" to all my values to "tell" the compiler that i need a float value.
But what i don't understand, is that i have ALREADY configure ... |
Topic: ...Float multiplication/division not working |
PICman
Replies: 9
Views: 16852
|
Forum: General CCS C Discussion Posted: Fri Dec 02, 2011 6:05 am Subject: ...Float multiplication/division not working |
Hi RF_developer...
In calculations, i always try to privilege the use of ints and double precision floats. I rarely use single precision floats.
And i wanted to use INTs for this project... but ... |
Topic: ...Float multiplication/division not working |
PICman
Replies: 9
Views: 16852
|
Forum: General CCS C Discussion Posted: Thu Dec 01, 2011 6:14 pm Subject: ...Float multiplication/division not working |
1 - 0 for your HP35 !!!!
In debugging, i tried different values for my DDS.
And in editing / translating (from french to english) my code to send it here, i erased the wrong value. 34359738 is f ... |
Topic: ...Float multiplication/division not working |
PICman
Replies: 9
Views: 16852
|
Forum: General CCS C Discussion Posted: Thu Dec 01, 2011 12:30 pm Subject: ...Float multiplication/division not working |
Hi....
My code is a controller for a DDS chip (AD9850).
I want to enter the RF frequency directly ("frequence" variable) and then, do a simple calculation (one multiplication and a div ... |
Topic: Silly question blinking a led (delay_ms) |
PICman
Replies: 21
Views: 27334
|
Forum: General CCS C Discussion Posted: Wed Nov 30, 2011 8:58 pm Subject: Silly question blinking a led (delay_ms) |
Doesn't the code need oscillator setup ?
setup_oscillator(OSC_4MHZ|OSC_INTRC|OSC_PLL_OFF,0); |
Topic: #INT_EXT and #INT_RDA problem |
PICman
Replies: 11
Views: 16417
|
Forum: General CCS C Discussion Posted: Mon Aug 03, 2009 9:24 pm Subject: #INT_EXT and #INT_RDA problem |
My question: Is it better to simply NOT to use "fast_io" and simply IGNORE the TRIS commands ?
I've made a LOT of assembler and still have the habit of predefining the TRIState of the PIC ... |
Topic: #INT_RDA and PIC16F87 |
PICman
Replies: 23
Views: 69738
|
Forum: General CCS C Discussion Posted: Fri Jul 31, 2009 2:29 pm Subject: #INT_RDA and PIC16F87 |
Thank you VERY MUCH PCM programmer !!!
I had a real problem trying to activate the silicon UART on a PIC16F88.
I started to read here and there and, - BOY - , I was discouraged to see - NOT AGAI ... |
Topic: ...ADC in a PIC12F683 |
PICman
Replies: 12
Views: 28103
|
Forum: General CCS C Discussion Posted: Thu May 07, 2009 4:15 pm Subject: ...ADC in a PIC12F683 |
Thanks a lot Bungee !!!! Your code worked !!!
Now, it's time for me to study your code to know what was my error !
Again, thanks a lot ! (I don't know why, i got a lot of problems dealing with A ... |
Topic: ...ADC in a PIC12F683 |
PICman
Replies: 12
Views: 28103
|
Forum: General CCS C Discussion Posted: Thu May 07, 2009 10:39 am Subject: ...ADC in a PIC12F683 |
OOps... forgot to login...
Thanks Thelma, but there is no low voltage programming mode in the F683. The "NOLVP" command is not recognized by the compiler. |
Topic: ...ADC in a PIC12F683 |
PICman
Replies: 12
Views: 28103
|
Forum: General CCS C Discussion Posted: Thu May 07, 2009 6:13 am Subject: ...ADC in a PIC12F683 |
Hi...
Sincerely, i do not know what to do...
It's ridiculously simple: i want to read an analog input using a PIC12F683
I made it work ! But... sometimes !!!! Most of the times, i alwars have ... |
Topic: ...Line-by-line software access to I2C |
PICman
Replies: 0
Views: 25191
|
Forum: Code Library Posted: Wed Mar 25, 2009 5:02 am Subject: ...Line-by-line software access to I2C |
This code is a "do-nothing" code that shows how I2C works. It continuously writes data into a 24LC256 I2C serial EEPROM and then checks it's contents for data integrity. Comments are sent on ... |
Topic: "hand written" software I2C driver |
PICman
Replies: 5
Views: 6945
|
Forum: General CCS C Discussion Posted: Fri Mar 06, 2009 3:01 pm Subject: "hand written" software I2C driver |
Here's a test code i've written about one year ago.
It is designed for 24LC256 I2C EEPROMS. The code is not optimized at all and highly commented (in French). It does read and write on the EEPROM.
... |
|