2007-12-19 12:35 AM
How to create table data that will store in flash in C language?
2011-05-17 03:20 AM
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 Vdd2011-05-17 03:20 AM
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