IO Mapping
The nXPico W exposes an IO e WiFi module (ModuleId 1704) under the device node: the same channel set as nXPico, on the same GPIOs, plus the WiFi configuration parameters described in WiFi Configuration.
Digital Inputs
Section titled “Digital Inputs”| Channel | Parameter ID | Type | GPIO | Default mapping |
|---|---|---|---|---|
| Input 0 | 1000 | BIT | GP2 | IN0 |
| Input 1 | 1001 | BIT | GP3 | IN1 |
| Input 2 | 1002 | BIT | GP6 | IN2 |
| Input 3 | 1003 | BIT | GP7 | IN3 |
| Input 4 | 1004 | BIT | GP20 | IN4 |
| Input 5 | 1005 | BIT | GP21 | IN5 |
| Input 6 | 1006 | BIT | GP22 | IN6 |
Digital Outputs
Section titled “Digital Outputs”| Channel | Parameter ID | Type | GPIO | Default mapping |
|---|---|---|---|---|
| Output 0 | 2000 | BIT | GP10 | OUT0 |
| Output 1 | 2001 | BIT | GP11 | OUT1 |
| Output 2 | 2002 | BIT | GP8 | OUT2 |
| Output 3 | 2003 | BIT | GP9 | OUT3 |
| Output 4 | 2004 | BIT | GP14 | OUT4 |
| Output 5 | 2005 | BIT | GP15 | OUT5 |
Analog Inputs
Section titled “Analog Inputs”12-bit ADC, raw value 0…4095 over 0…3.3 V.
| Channel | Parameter ID | Type | GPIO | ADC | Default mapping |
|---|---|---|---|---|---|
| Analog 0 | 3000 | WORD | GP26 | ADC0 | AN0 |
| Analog 1 | 3001 | WORD | GP27 | ADC1 | AN1 |
| Analog 2 | 3002 | WORD | GP28 | ADC2 | AN2 |
PWM outputs
Section titled “PWM outputs”The six digital outputs can be driven as PWM outputs at runtime, exactly as on nXPico — same channels, same pins, same behaviour.
| Channel | Parameter ID | Drives |
|---|---|---|
PWM_ENABLE | 9100 | bit n = output n in PWM |
PWM0…PWM5 | 9000‑9005 | level 0…65535 of GP10, GP11, GP8, GP9, GP14, GP15 |
PWM_ENABLE := 2#0000_0100; (* OUT2 becomes a PWM output *)PWM2 := 32768; (* 50% duty *)The carrier frequency is a device parameter, one per pair of outputs: 9200 for OUT0/OUT1, 9201 for OUT2/OUT3, 9202 for OUT4/OUT5. Range 9 Hz…100 kHz, default 2289 Hz, and the duty stays 0…65535 whatever frequency you choose.
The full explanation — resolution against frequency, why the pairs share a setting, how to measure it with a multimeter — is on the nXPico page.
Onboard LED
Section titled “Onboard LED”| Channel | Parameter ID | Type | Default mapping |
|---|---|---|---|
| LED | 4000 | BIT (output) | LED |
System
Section titled “System”| Channel | Parameter ID | Type | Access | Default mapping |
|---|---|---|---|---|
| Temperature | 5000 | REAL (input) | read | TEMPERATURE |
| Vendor | 393218 | STRING | read-only | 'nexo S.r.l.' |
| Model Name | 393219 | STRING | read-only | 'IO' |
“IO e WiFi” is the name of the node in the tree; the Model Name parameter is 'IO'.
WiFi parameters
Section titled “WiFi parameters”Seven configuration parameters of the IO e WiFi module (IDs 6000–6006) set the SSID, password and IP configuration — see WiFi Configuration.
See ST Examples for sample code, and Serial Ports for the two UARTs available to the application.