iPod IWIP3G User Guide - Page 67
Getdir, Getbias, Setdir, Setbias, Reset
UPC - 649241862819
View all iPod IWIP3G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 67 highlights
5.27 PIO Command PIO is used to get and set PIO states and directions. There are 6 usable IO pins (PIO2-PIO7) on the WT11/12 module, 11 (PIO0-PIO10) on the WT32; thus the range for the mask and state parameters for the WT11/12 is 4-FF (excluding values that have bits 0 or 1 set), for the WT32 it is 0-07FF. 5.27.1 Syntax Synopsis: PIO {cmd} [mask] [states] Description: cmd GET Read the contents of the PIO data register. Bits that are set denote pins that are pulled up. GETDIR Read the contents of the PIO direction register. Bits that are set denote output pins; others are input pins, i.e. controlled externally, such as the PIO buttons on the WT32 evaluation board. GETBIAS Read the contents of the PIO bias register. Bits that are set denote pins that are pulled up/down strongly, others are pulled up/down weakly. SET {mask} {states} Set the contents of the PIO data register; the first parameter is the bit mask for deciding which PIOs are affected, the second parameter is the bits to set/unset. SETDIR {mask} {states} Set the contents of the PIO direction register. By default, only bit 8 (PIO7) is set, thus only it can be controlled locally with PIO SET, and all others are input pins. SETBIAS {mask} {states} Set the contents of the PIO bias register. By default, all pins are pulled up/down weakly. RESET Set the registers to iWRAP defaults. 67