cancel
Showing results for 
Search instead for 
Did you mean: 

How to split the GPIO port in multiple sections?

daniel7
Associate II
Posted on November 28, 2007 at 04:48

How to split the GPIO port in multiple sections?

2 REPLIES 2
daniel7
Associate II
Posted on November 27, 2007 at 14:59

Hi.

Is there any way to split one of the GPIO ports in multiple sections.

If I e.g. have an 8 bit parallel D/A converter, if think it is a bit strange that I have to use the whole port for only use 8 connections. The best solution would be if I was able to configure which connections that are related and only write to these connections and not to the entire port.

Is there any solution?

kleshov
Associate II
Posted on November 28, 2007 at 04:48

There is a solution. Use bitwise AND/OR operations and bitmasks.

http://en.wikipedia.org/wiki/Mask_(computing)