16bit data write

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

16bit data write

811件の閲覧回数
Luky
Contributor II

Hi,

I have a problem. I need 16bit GPIO for LCD Data.How I make mapping from 16bit variable to GPIO? There is 16bit  PORTC but it is PTC0-PTC13+PTC16,PTC17.

ラベル(1)
0 件の賞賛
3 返答(返信)

658件の閲覧回数
lothar
Contributor II

hi

I'm not a pro and maybe i missunderstood your question, but i would do it like in the attachement. Perhaps it works :smileyhappy:

658件の閲覧回数
Luky
Contributor II

it almost worked but GPIO_PDOR is divided on LOW 16bit and HIGH 16bit. I would modify mask and it will maybe work. Thanks for your idea

0 件の賞賛

658件の閲覧回数
lothar
Contributor II

Ok didn't know that. But the mask stays the same. It's even more easy i guess.

0 件の賞賛