Author |
Message |
Topic: Convert 2 Bytes EEPROM to Float Number |
epideath
Replies: 9
Views: 7458
|
Forum: General CCS C Discussion Posted: Tue Sep 26, 2006 9:16 pm Subject: Convert 2 Bytes EEPROM to Float Number |
You can try this. You will have to include the MATH.H file though
float precise = 11.1234567;
precise = floor(precise*100.0);
precise = precise/100.0;
Regards |
Topic: 25LC256 and PIC4525 |
epideath
Replies: 2
Views: 6231
|
Forum: General CCS C Discussion Posted: Mon Sep 11, 2006 11:14 am Subject: 25LC256 and PIC4525 |
EDIT: Thanks for catching that PCM_Programmer. I wish that was disabled by defalt hehe
This might be a bit off-topic, well unless it really is a programming
error
I have the following ... |
Topic: Help with new style MMC card |
epideath
Replies: 5
Views: 7894
|
Forum: General CCS C Discussion Posted: Thu Aug 17, 2006 8:50 am Subject: Help with new style MMC card |
Thanks much for the quick responses. It is good to see a data sheet on these MMC Plus cards. hehe I didn't even know what they where called. again thanks alot. I will look over all of the information. ... |
Topic: Help with new style MMC card |
epideath
Replies: 5
Views: 7894
|
Forum: General CCS C Discussion Posted: Wed Aug 16, 2006 5:33 pm Subject: Help with new style MMC card |
Hi All,
I have had this code working flawlessly with the original MMC card that I had purchased. it has a single row of 7 contacts just like you would see on any of the web sites talking about inte ... |
Topic: PIC Training |
epideath
Replies: 6
Views: 9575
|
Forum: General CCS C Discussion Posted: Mon Aug 07, 2006 11:24 am Subject: PIC Training |
I used this one extensively for learning. But I had no idea what a PIC was when I bought the book. I already had a good background in programming, but it covers taht too. It has theroy, and ha ... |
Topic: counter1 question |
epideath
Replies: 2
Views: 4481
|
Forum: General CCS C Discussion Posted: Sat Jul 22, 2006 10:51 pm Subject: counter1 question |
Take a look at the errata PDF file here is a link to it
http://www.microchip.com/stellent/idcplg?IdcService=SS_GET_PAGE&nodeId=1335&dDocName=en010296
It talks about just this problem.
... |
Topic: PIC12F629 Timer issue |
epideath
Replies: 16
Views: 22286
|
Forum: General CCS C Discussion Posted: Sat Jul 22, 2006 10:44 pm Subject: PIC12F629 Timer issue |
Looks like you got some numbers crossed
Timer0Value = 256 - (0.00033333/(8/(10000000/4)))
Timer1Value = 65536 - (0.000454545/(1/(10000000/4)))
should be
Timer0Value = 256 - (0.000454545/(8 ... |
Topic: MMC/ SD Current Drawn upon Write? |
epideath
Replies: 5
Views: 6467
|
Forum: General CCS C Discussion Posted: Sat Jul 22, 2006 11:20 am Subject: MMC/ SD Current Drawn upon Write? |
http://sandisk.com/Oem/Manuals/ |
Topic: Floating Point Numbers in #ROM Statement |
epideath
Replies: 5
Views: 6368
|
Forum: General CCS C Discussion Posted: Fri Jul 21, 2006 2:37 pm Subject: Floating Point Numbers in #ROM Statement |
Er. I'm sorry 'epideath', but you are wrong
I didn't say that he couldn't do it this way. I was just giving an alternative. But I also didn't no about the little program to convert the floating poi ... |
Topic: #LOCATE'ing Struct Arrays |
epideath
Replies: 3
Views: 4695
|
Forum: General CCS C Discussion Posted: Fri Jul 21, 2006 9:05 am Subject: #LOCATE'ing Struct Arrays |
You may want to look at using an external EEPROM to store your data. They are cheap and easy to interface. This would get around the 96 byte limitations. Then you can just read one DAYRECORD at a time ... |
Topic: MMC/ SD Current Drawn upon Write? |
epideath
Replies: 5
Views: 6467
|
Forum: General CCS C Discussion Posted: Fri Jul 21, 2006 9:00 am Subject: MMC/ SD Current Drawn upon Write? |
Well according to the datasheet the current draw max at 3.6V are:
READ - 50ma
WRITE - 60ma
SLEEP - 150uA
Regards |
Topic: Floating Point Numbers in #ROM Statement |
epideath
Replies: 5
Views: 6368
|
Forum: General CCS C Discussion Posted: Fri Jul 21, 2006 8:52 am Subject: Floating Point Numbers in #ROM Statement |
You can do this. It won't allow you to specify where in memory to put it. but it will allocate it in the Program Rom vs. RAM.
Not sure if that will meet your needs or not.
float const SomeValu ... |
Topic: Thank you |
epideath
Replies: 5
Views: 6056
|
Forum: General CCS C Discussion Posted: Thu Jul 20, 2006 10:36 pm Subject: Thank you |
Is it possible that the code is set to this:
#device adc=8
?
If so try changing it to
#device adc=10
Hope this helps |
Topic: Basic ADC question |
epideath
Replies: 4
Views: 7475
|
Forum: General CCS C Discussion Posted: Tue Jul 18, 2006 7:53 pm Subject: Basic ADC question |
You have the setting already to use the internal reference. it is the
setup_adc_ports(AN0);
the range is the same as the power supply to the device. So if it is powered by +5v to ground then ... |
Topic: PCF8583 Clock ic |
epideath
Replies: 4
Views: 5912
|
Forum: General CCS C Discussion Posted: Fri Jul 14, 2006 8:57 am Subject: PCF8583 Clock ic |
please post some of your code. |
|