Read sequence of numbers from file in SD card

For questions and comments on PICmicro programming in general. And for any items that don't fit into the forums above.

Moderators: sean, Mods

Read sequence of numbers from file in SD card

Postby sorell13 on Mon Apr 12, 2010 10:57 am

Hello!
I have an EB037 Card Reader Board.
Can you advice me how is the simplest way to read a sequence (or matrix let's say) of numbers from an SD card? (I want to use the values of the matrix as offsets for different values of pwm in the program; I don't wantt to use the EEPROM of the microcontroller). I want to separate the numbers with spaces between them(in my file which I read). I already made the connections, initialize the sd card and everything goes right till now.
Thank you,
Sorin
sorell13
 
Posts: 6
Joined: Fri Dec 18, 2009 8:07 pm

Re: Read sequence of numbers from file in SD card

Postby Benj on Mon Apr 12, 2010 3:55 pm

Hello Sorin,

Each byte of memory stored on the MMC/SD card can be a value from 0 - 255.

Would this be enough scope for use with your PWM or do you need the numbers to be ACSII numeric.

If you need the numbers to be ASCII eg 100 would be 3 bytes to store the characters for the 1 and two 0's then this will add a fair amount of complexity to your program.
Regards
Ben Rowland
Matrix Multimedia
User avatar
Benj
 
Posts: 3468
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix Multimedia Ltd

Re: Read sequence of numbers from file in SD card

Postby sorell13 on Sun Jul 25, 2010 2:38 pm

Thanks! It worked.
Do you know when it will be released Flowcode for 16 bit and / or 32 bit pic micro ?
sorell13
 
Posts: 6
Joined: Fri Dec 18, 2009 8:07 pm


Return to General PICmicro programming

Who is online

Users browsing this forum: No registered users and 1 guest