K22 Flexbus CSPMCR Registers

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

K22 Flexbus CSPMCR Registers

ソリューションへジャンプ
712件の閲覧回数
weblar
Contributor V

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

ラベル(1)
タグ(3)
0 件の賞賛
1 解決策
478件の閲覧回数
weblar
Contributor V

Never mind, managed to fix the issue by setting the port size to 32bit but only using the lower 8 bits.

The display now works correctly with no extra tinkering.

元の投稿で解決策を見る

0 件の賞賛
1 返信
479件の閲覧回数
weblar
Contributor V

Never mind, managed to fix the issue by setting the port size to 32bit but only using the lower 8 bits.

The display now works correctly with no extra tinkering.

0 件の賞賛