Skip to main content
daniel7
Associate II
November 28, 2007
Question

How to split the GPIO port in multiple sections?

  • November 28, 2007
  • 2 replies
  • 765 views
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
November 27, 2007
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
November 28, 2007
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)