SD card speed optimization 18f2550
Posted: 29 Aug 2010 15:06
I have several general questions:
1) How much faster are A/D conversions if I perform them myself based on the calculations from the datasheet? Or does the function perform these calculations per the datasheet?
2) I am using this command:
I am using an external 8MHz oscillator. When I set the clock to 48 Mhz I am getting strange output. When I bump it down to 32 Mhz, the output is accurate. I was under the impression that the SD library function Mmc_Fat_Write() would take care of the Wait states no matter what the clock speed is set at.
3) In short, in what ways can I optimize the speed at which I can get the ADC_Read() values to the card?
[edit] I should add that at 32MHz I am getting ~ 40 writes/second.
1) How much faster are A/D conversions if I perform them myself based on the calculations from the datasheet? Or does the function perform these calculations per the datasheet?
2) I am using this command:
Code: Select all
while(1) {
WordToStr(ADC_Read(0), file_contents);
Mmc_Fat_Write(file_contents, _FILE_CONTENTS_SIZE);
}
3) In short, in what ways can I optimize the speed at which I can get the ADC_Read() values to the card?
[edit] I should add that at 32MHz I am getting ~ 40 writes/second.