AMW004 Wallaby Module GPIOs and Peripherals
See also:
- AMW004 Module details
- AMW004-E03 Eval Board details
- AMW004 ZentriOS-WZ SDK support
- Controlling GPIOs and Peripherals
- Device Memory
- Zentri Module Comparison
Functions and Pins
Mackerel Evaluation Board
The table below shows functions, defaults and pins for the AMW004 Wallaby GPIOs. The table also shows connections and header pins for the AMW004-E03 Mackerel evaluation board.
Note: header and pin numbering is different for different versions of the Mackerel AMW004-E03.
Wallaby AMW004 | Mackerel AMW004-E03.3 | E03.3, E03.4 | E03.5 | ||||||
---|---|---|---|---|---|---|---|---|---|
GPIO | Available Functions | Default Function | ADC | PWM | Wake | Pin | Connections | Header-Pin | Header-Pin |
GPIO0 | dac0 | Standard I/O, factory reset | pwm3 | 7 | Button 1 | H1-4 | H1-4, H9-29 | ||
GPIO1 | system.indicator.gpio wlan | 8 | LED G (Green) | H1-3 | H1-3, H9-3 | ||||
GPIO2 | system.indicator.gpio network | 9 | LED Y (Yellow) | H1-6 | H1-6, H9-9 | ||||
GPIO3 | none | adc4 | wake | 11 | H1-8 | H1-8 | |||
GPIO4 | none | adc5 | 12 | H1-7 | H1-7 | ||||
GPIO5 | system.indicator.gpio softap | pwm0 | wake | 13 | LED R (Red) | H1-10 | H1-10, H9-27 | ||
GPIO6 | none | pwm1 | wake | 14 | H1-9 | H1-9 | |||
GPIO7 | none | adc0 | pwm3 | 15 | Thermistor | H1-12 | H1-12, H9-7 | ||
GPIO8 | none | adc1 | 17 | H1-11 | H1-11 | ||||
GPIO9 | none | adc2 | pwm0 | wake | 18 | H1-14 | H1-14 | ||
GPIO10 | none | pwm3 | wake | 19 | H1-13 | H1-13 | |||
GPIO11 | Standard I/O, wake, web setup (see Web Setup Note) | pwm2 | wake | 20 | Button 2 | H1-16 | H1-16, H9-5 | ||
GPIO12 | none | adc3 | pwm1 | wake | 21 | H1-15 | H1-15 | ||
GPIO13 | uart1.rx | uart1.rx | adc6 | 23 | H4-2 | H5-3, H2-17, H9-21 | |||
GPIO14 | uart1.tx | uart1.tx | adc7 | 24 | H4-1 | H5-5, H2-18, H9-19 | |||
GPIO15 | uart1.rts | none | pwm1 | 26 | H4-3 | H5-1, H2-15, H9-25 | |||
GPIO16 | uart1.cts | none | pwm2 | 27 | H4-4 | H5-7, H2-16, H9-23 | |||
GPIO17 | spi0.clk not available for digital I/O | spi0.clk | wake | 30 | H2-13 | H2-13 | |||
GPIO18 | spi0.mosi not available for digital I/O | spi0.mosi | 31 | H2-14 | H2-14 | ||||
GPIO19 | spi0.miso not available for digital I/O | spi0.miso | 32 | H2-11 | H2-11 | ||||
GPIO20 | none | pwm0 | wake | 33 | H2-12 | H2-12 | |||
GPIO21 | Standard I/O | adc8 | pwm0 | 34 | User LED2 | H2-9 | H2-9, H9-17 | ||
GPIO22 | Standard I/O | adc9 | 35 | User LED1 | H2-10 | H2-10, H9-11 | |||
GPIO23 | none | 36 | H2-7 | H2-7 | |||||
GPIO24 | none | wake | 37 | H2-8 | H2-8 | ||||
GPIO25 | uart0.tx | none | 38 | H2-5 | H2-5 | ||||
GPIO26 | uart0.rx | none | wake | 39 | H2-6 | H2-6 | |||
GPIO27 | I2C_SCL | none | wake | 41 | H2-3 | H2-3, H9-15 | |||
GPIO28 | I2C_SDA | none | 42 | H2-4 | H2-4, H9-13 |
Mackerel reset header pins
E03.3, E03.4
- RESET_N: H1-17
E03.5
- RESET_N: H1-17, H9-1
Mackerel power header pins
E03.3, E03.4
- GND: H1-2, H1-19, H2-2, H2-19
- VDD: H1-1, H1-20, H2-1, H2-20
E03.5
- GND: H1-2, H1-19, H2-2, H2-19, H5-9, H5-10, H5-13, H5-14
- VDD: H1-1, H1-20, H2-1, H2-20, H5-11, H5-12
Default Mackerel GPIO Usage
The default Mackerel GPIO usage shown in response to the command get gpio.usage
is:
get gp u
! # Description
# 0 GPIO input_highz
# 1 system.indicator.wlan
# 2 system.indicator.network
# 5 system.indicator.softap
# 11 setup.control_gpio
# 13 UART1 RX
# 14 UART1 TX
# 17 SPI0 CLK
# 18 SPI0 MOSI
# 19 SPI0 MISO
# 21 GPIO output
# 22 GPIO output
See the gpio.usage variable documentation.
Wallaby PWMs
Number of independent PWMs (groups) | 4 |
---|---|
minimum PWM frequency | 5Hz |
Maximum frequency | 1.2MHz |
Default PWM frequency | 1KHz |
PWM Group ID | GPIOs |
---|---|
pwm0 | 5, 9, 20, 22 |
pwm1 | 6, 12, 15 |
pwm2 | 11, 16 |
pwm3 | 0, 7, 10 |
GPIOs by Function
Wallaby UART
Name | GPIO |
---|---|
uart0.tx | 25 |
uart0.rx | 26 |
uart0.cts | N/A |
uart0.rts | N/A |
uart1.tx | 14 |
uart1.rx | 13 |
uart1.cts | 16 |
uart1.rts | 15 |
Wallaby ADC
Name | GPIO |
---|---|
adc0 | 7 |
adc1 | 8 |
adc2 | 9 |
adc3 | 12 |
adc4 | 3 |
adc5 | 4 |
adc6 | 13 |
adc7 | 14 |
adc8 | 21 |
adc9 | 22 |
Wallaby PWM
Name | GPIOs |
---|---|
pwm0 | 5, 9, 20, 21 |
pwm1 | 6, 12, 15 |
pwm2 | 11, 16 |
pwm3 | 0, 7, 10 |
Wallaby SPI Master
Name | GPIO |
---|---|
spi0.clk | 17 |
spi0.mosi | 18 |
spi0.miso | 19 |
Wallaby DAC
Name | GPIO |
---|---|
dac0 | 0 |
Wallaby I2C
Name | GPIO |
---|---|
I2C_SCL | 27 |
I2C_SDA | 28 |