AnsweredAssumed Answered

K22 Flexbus CSPMCR Registers

Question asked by weblar on Jun 9, 2014
Latest reply on Jun 10, 2014 by weblar

Hi,

 

I have the Flexbus of a K22 hooked up to an OLED display through FB_AD[7:0].

 

I'm not convinced that I've configured the Flexbus peripheral correctly as I'm seeing spurious pulses on the FB_AD[0] signal when looking at the bus on a logic analyser.

 

My code so far is...

 

// Configure the FlexBus chip select

FB->CS[0].CSAR = EBI_BASE_ADDRESS;                              // 0x60000000

// Set up the port size to 8bit

FB->CS[0].CSCR = FB_CSCR_PS(1) | FB_CSCR_AA_MASK | FB_CSCR_WS(1) | FB_CSCR_BLS_MASK;

// Set up the chip select mask register

FB->CS[0].CSMR = FB_CSMR_V_MASK;

 

Do I need to set FB_BE_7_0 = 1 and TSIZ[1:0] = 0b01 in the FB_CSPMCR register in order for correct 8-bit operation?

 

Thanks in advance,

Kev

Outcomes