info:avr32_gpio_writing
This is an old revision of the document!
AVR32 UC3A controlling GPIO
For the UC3A0512, read the pin value register and then write to the output value register.
// Set the output value of PORT0 \\ AVR32_GPIO.port[ 0 ].ovrs = value ; \\
//Clear the output value of PORT0 \\ AVR32_GPIO.port[ 0 ].ovrc = value ;\\
//Read the port pins \\ value = AVR32_GPIO.port[ 0 ].pvr ; \\
You can also use the .ovr function:
Example PORT0 has the value 0xAAFF55FF
AVR32_GPOI.port[0].ovr = 0x55AAFFBB;\\
then all the bits will change, because if you use the ovrs or ovrc you can only change set or clear.
info/avr32_gpio_writing.1240854055.txt.gz · Last modified: 2009/04/27 13:40 by tomgee