cancel
Showing results for 
Search instead for 
Did you mean: 

How to create table data that will store in flash in C language?

hg-chen
Associate II
Posted on December 19, 2007 at 09:35

How to create table data that will store in flash in C language?

2 REPLIES 2
hg-chen
Associate II
Posted on May 17, 2011 at 12:20

How to create table data that will store in flash in C language?

for example, in assembly language ,the following data I put in code

will store in flash as data table,right?

how to do it in C language?

.Note_h DC.B $0F,$0E,$0D,$0B,$0B,$09,$08,$07,$07,$00 ; OCR1 high byte

.Note_l DC.B $86,$E4,$4A,$C8,$20,$E8,$E1,$C3,$74,$44 ; OCR1 low byte

.DutyTime DC.B $0A,$09,$08,$07,$07,$06,$05,$05,$04,$88 ; ~0.25% at Vdd

16-32micros
Associate III
Posted on May 17, 2011 at 12:20

Dear Kuni,

You can simply declare it as a ''const'' int table[] = ... , for more details you can refer to EWARM C Compiler help.

STOne-32