program memory

Technical questions regarding the XTC tools and programming with XMOS.
Post Reply
aortiz557
Member++
Posts: 27
Joined: Fri Jan 06, 2012 3:55 pm

program memory

Post by aortiz557 »

hey, just wanted to know if anyone knew how to define a value in program memory instead of ram. i am making a driver for a ks0108 lcd, and need to store the font files somewhere. i suppose the alternative would be using the spi flash, but i want to avoid that for now if i can.


User avatar
Berni
Respected Member
Posts: 363
Joined: Thu Dec 10, 2009 10:17 pm
Contact:

Post by Berni »

The XMOS chips only have RAM memory inside them while the external SPI flash is accessed manually by sending read/write commands to it as there is no hardware external memory interface.

You have 64KB of memory to work with while a 8x8 pixel monochrome font for the entire ASCII palette is about 2KB only.
aortiz557
Member++
Posts: 27
Joined: Fri Jan 06, 2012 3:55 pm

Post by aortiz557 »

aha! that makes perfect sense. thank you very much.
User avatar
Folknology
XCore Legend
Posts: 1274
Joined: Thu Dec 10, 2009 10:20 pm
Contact:

Post by Folknology »

Well the fonts could go into the OTP memory, just remember its permanent!

regards
Al
Post Reply