projecten1
projecten1

Reputation: 67

Put the data from a .wav file into the flash memory of pic18F4550

I'm new at hardware programming: I work with the pic18F4550 with the C compiler from microchip version 8.63. My question is: has someone example code to write a .wav file (binary data) to the flash memory of the pic18F4550?

Upvotes: 2

Views: 855

Answers (1)

Judge Maygarden
Judge Maygarden

Reputation: 27593

Use a bin2c program to convert the WAV file to a C source file with the data contained in a const char array. Then compile and link this file with your source code. Your linker should place const variables in flash memory on the PIC.

Upvotes: 1

Related Questions