E
easyarm
- Jan 1, 1970
- 0
want to store a pic *.jpg in ARM 7 ( philips LPC 2106) mcu?
does any one has any ideas of how to do this?
does any one has any ideas of how to do this?
easyarm said:want to store a pic *.jpg in ARM 7 ( philips LPC 2106) mcu?
does any one has any ideas of how to do this?
Tauno Voipio said:It's just binary data. Store it as any data array. The exact instructions
depend on your set-up.
How are you going to use the stored data?
how do u convert a pic to 1/0?
I do not wish to store diskonchip but the mcu.
42Bastian Schick said:It is already. Any data (even this I am writing) is stored in 1s and
0s
Maybe tell us your compiler setup ?
Easy with gnu:
file: pic.S
.data
.globl my_pic
my_pic: .incbin "mypic.jpg"
No compile and link with your programs.
"to store" is general. It does not necessarily need a disk.
MyArm said:can u suggest a color LCD ( smaller- I do not know about its size) that can
be connect to a philipz LPC 2106 (like Leon's schematic)?
why there is no compile or link necessary?It is already. Any data (even this I am writing) is stored in 1s and
0s
Maybe tell us your compiler setup ?
Easy with gnu:
file: pic.S
.data
.globl my_pic
my_pic: .incbin "mypic.jpg"
No compile and link with your programs.
easyarm said:why there is no compile or link necessary?
it has to be *.hex form before loading it up to philips mcu.
correct me if I am wrong.
why there is no compile or link necessary?
The Real Andy said:Take a step back and analyse the problem.
I am assuming that you want to store the image(s) in ROM. Work out the size
of you image. If you have some space to throw away, store the image as a
bitmap, much easier to decode. There is plenty of programs out there that
will spin a bmp into a hex format suitable for MCU's.
If space is limited, maybe you could look at some kind of simple
compression, such as RLE. Not quite as good as jpg, but much better than
bmp. You could even manufacture your own RLE algorithm. Failing that, i
guess jpg is an option, but it will take some work to decode, unless there
is some free source available.
news:[email protected]...