Skip to main content
daniel7
Associate II
Nov 28, 2007 3:48 AM UTC
Question

How to split the GPIO port in multiple sections?

Posted on November 28, 2007 at 04:48

How to split the GPIO port in multiple sections?

This topic has been closed for replies.

2 replies

daniel7
daniel7Author
Associate II
Nov 27, 2007 1:59 PM UTC
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
Nov 28, 2007 3:48 AM UTC
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)