cancel
Showing results for 
Search instead for 
Did you mean: 

FSMC question

sarhangpour
Associate II
Posted on July 24, 2014 at 19:32

I have a question:

the following lines show how FSMC is addressed:

#define LCD_BASE        (0x60000000UL | 0x0C000000UL)

#define LCD_REG16  (*((volatile U16 *)(LCD_BASE  ))) 

#define LCD_DAT16  (*((volatile U16 *)(LCD_BASE+2)))

no problem with the base address, but why is LCD_DAT16   addressed as LCD_BASE+2? is that a dummy location within the current FSMC bank/region?

when I change this address to, say LCD_BASE+4, lcd is not initialized. My question is,

on what basis this address is chosen, provided that other choices seem not to work.
0 REPLIES 0