Author |
Message |
Topic: Calling all efficient coders! Fast divide equation needed! |
evsource
Replies: 8
Views: 9495
|
Forum: General CCS C Discussion Posted: Tue Mar 05, 2013 10:57 pm Subject: Calling all efficient coders! Fast divide equation needed! |
One thing I did on a commercial project (very time sensitive A/D and computation loop) was to break a divide down into a sum of divide-by-2's.
Great suggestion, thank you.
What I'm failing ... |
Topic: Calling all efficient coders! Fast divide equation needed! |
evsource
Replies: 8
Views: 9495
|
Forum: General CCS C Discussion Posted: Tue Mar 05, 2013 10:44 pm Subject: Re: Calling all efficient coders! Contest for speedy equatio |
I'm thinking it's quite likely I'm missing something that could substantially reduce the time.
Well, I just found a way to knock off 13us.
How I reduced the time by 13us was with the multi ... |
Topic: Calling all efficient coders! Fast divide equation needed! |
evsource
Replies: 8
Views: 9495
|
Forum: General CCS C Discussion Posted: Tue Mar 05, 2013 6:56 pm Subject: Re: Calling all efficient coders! Contest for speedy equatio |
I'm thinking it's quite likely I'm missing something that could substantially reduce the time.
Well, I just found a way to knock off 13us. So I'm feeling a little more confident that there are oth ... |
Topic: Calling all efficient coders! Fast divide equation needed! |
evsource
Replies: 8
Views: 9495
|
Forum: General CCS C Discussion Posted: Tue Mar 05, 2013 6:40 pm Subject: Calling all efficient coders! Fast divide equation needed! |
Hi all,
I have an equation that I'm trying to execute in under 50us. I'm beginning to doubt it's possible. If I can't get in under that, I can still benefit from the fastest implementation possible ... |
Topic: Are dashes not allowed in function names? |
evsource
Replies: 3
Views: 4471
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2013 7:58 am Subject: Are dashes not allowed in function names? |
I don't think any mathematical operator would be allowed in a function name.
Think about it. How could the compiler parse:
fred-harry();
Is this the variable fred, minus the functi ... |
Topic: Are dashes not allowed in function names? |
evsource
Replies: 3
Views: 4471
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2013 7:35 am Subject: Are dashes not allowed in function names? |
Surprising that I've never come across this over the years, but I just had a function referring to something with a DC-DC converter. So I named it dc-dc_...
The compiler barked at me. I changed it ... |
Topic: ex_fat.c problem |
evsource
Replies: 13
Views: 16756
|
Forum: General CCS C Discussion Posted: Fri Mar 04, 2011 6:38 pm Subject: ex_fat.c problem |
So now I'm completely stumped. I would still prefer to use Andrew's code, as it is lighter weight and is already integrated into my code. I would probably live with the 25kHz speed, but that's prett ... |
Topic: ex_fat.c problem |
evsource
Replies: 13
Views: 16756
|
Forum: General CCS C Discussion Posted: Thu Mar 03, 2011 11:59 am Subject: ex_fat.c problem |
I obviously don't know all the details of your changeover but I have to state that I've been using the Brush Electronics CCS SD card driver for quite a few years and on two different products now. I ... |
Topic: ex_fat.c problem |
evsource
Replies: 13
Views: 16756
|
Forum: General CCS C Discussion Posted: Thu Mar 03, 2011 11:05 am Subject: ex_fat.c problem |
Contact CCS tech support. They have newer beta code based on Microchip's MDD library.
Yeah, that's made my investigation more interesting.
I'd like to discuss some of my findings, however, I wa ... |
Topic: ex_fat.c problem |
evsource
Replies: 13
Views: 16756
|
Forum: General CCS C Discussion Posted: Mon Feb 28, 2011 2:47 pm Subject: Re: ex_fat.c problem |
Hello,
I am working with the ex_fat.c sample program from CCS and have encountered some problems getting it to work. I am using the 3,3V Ethernet Controller board (PIC18F67J60) to run this pro ... |
Topic: Problem ex_fat.c unable to create file/directory on MMC card |
evsource
Replies: 11
Views: 19811
|
Forum: General CCS C Discussion Posted: Mon Feb 28, 2011 12:19 pm Subject: Problem ex_fat.c unable to create file/directory on MMC card |
I just tested ex_fat.c formated my card, wrote data into multiple files. I was able to see them using dir and opening them to check.
When I plug the card into the computer, I can not see anything ... |
Topic: weird behaviour of ex_fat.c example - help appreciated :) |
evsource
Replies: 20
Views: 23082
|
Forum: General CCS C Discussion Posted: Mon Feb 28, 2011 12:17 pm Subject: weird behaviour of ex_fat.c example - help appreciated :) |
Apparently, I need the full version of winhex to write to the SD.. and I wasn't able to open the disk with DiskEdit.. So I used a freeware called HxD.
I tried to format the SD under windows in FA ... |
Topic: fat.c + mmcsd.c Working but Windows can't read the files |
evsource
Replies: 16
Views: 30527
|
Forum: General CCS C Discussion Posted: Fri Feb 25, 2011 5:22 pm Subject: fat.c + mmcsd.c Working but Windows can't read the files |
After a few tries it started to work correctly. The funny thing, that it's formatted with the PIC, and that was the solution. Now the computer can also read it -though the printer's SD reader blinks r ... |
Topic: Please help me about ex_fat of CCS example |
evsource
Replies: 1
Views: 3635
|
Forum: General CCS C Discussion Posted: Fri Feb 25, 2011 4:35 pm Subject: Please help me about ex_fat of CCS example |
It's too bad someone hasn't posted a response to this. I'm getting the same behavior, and have read this in some other places on the forum. Everything works great on the PIC, but try to read the SD ca ... |
Topic: restart_cause() returns MCLR_FROM_RUN but NOMCLR set? |
evsource
Replies: 1
Views: 3525
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 4:31 pm Subject: restart_cause() returns MCLR_FROM_RUN but NOMCLR set? |
I've got a 16F88, V4.032 compiler. Chip is resetting in my noisy environment. The restart cause is always MCLR_FROM_RUN, but I have the NOMCLR fuse set. What's going on? |
|