16bit data write

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

16bit data write

830 Views
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.

Labels (1)
0 Kudos
3 Replies

677 Views
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:

677 Views
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 Kudos

677 Views
lothar
Contributor II

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

0 Kudos