Skip to content

Commit 6258b62

Browse files
committed
Update of the Nano Matter User Manual
1 parent 7d8bbd2 commit 6258b62

File tree

1 file changed

+74
-59
lines changed
  • content/hardware/03.nano/boards/nano-matter/tutorials/user-manual

1 file changed

+74
-59
lines changed

content/hardware/03.nano/boards/nano-matter/tutorials/user-manual/content.md

Lines changed: 74 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1226,11 +1226,11 @@ After pressing the push button, you will see a **"Button Pressed!"** message in
12261226

12271227
The Nano Matter features a built-in RGB LED that can be a visual feedback indicator for the user. The LED is connected through the board GPIO's; therefore, usual digital pins built-in functions can be used to operate the LED colors.
12281228

1229-
| **LED Color Segment** | **Arduino Name** | **Microcontroller Pin** |
1230-
|:---------------------:|:----------------:|:-----------------------:|
1231-
| Red | LEDR or LED_BUILTIN | PC01 |
1232-
| Green | LEDG or LED_BUILTIN_1 | PC02 |
1233-
| Blue | LEDB or LED_BUILTIN_2 | PC03 |
1229+
| **LED Color Segment** | **Arduino Name** | **Microcontroller Pin** |
1230+
|:---------------------:|:---------------------:|:-----------------------:|
1231+
| Red | LEDR or LED_BUILTIN | PC01 |
1232+
| Green | LEDG or LED_BUILTIN_1 | PC02 |
1233+
| Blue | LEDB or LED_BUILTIN_2 | PC03 |
12341234

12351235
***The RGB LED colors are activated with zeros, this means that you need to set to LOW the color segment you want to turn on.***
12361236

@@ -1274,29 +1274,28 @@ The Nano Matter has **22 digital pins**, mapped as follows:
12741274

12751275
| **Microcontroller Pin** | **Arduino Pin Mapping** | **Pin Functionality** |
12761276
|:-----------------------:|:-----------------------:|:---------------------:|
1277-
| PB00 | A0 | GPIO/ADC/DAC |
1278-
| PB02 | A1 | GPIO/ADC |
1279-
| PB05 | A2 | GPIO/ADC |
1280-
| PC00 | A3 | GPIO/ADC |
1281-
| PA06 | A4/SDA | I2C/GPIO/ADC |
1282-
| PA07 | A5/SCL | I2C/GPIO/ADC |
1283-
| PB01 | A6 | GPIO/ADC/DAC |
1284-
| PB03 | A7 | GPIO/ADC |
1285-
| PB04 | D13 | SPI/GPIO/ADC |
1286-
| PA08 | D12 | SPI/GPIO/ADC |
1287-
| PA09 | D11 | SPI/GPIO/ADC |
1288-
| PD05 | D10 | SPI/GPIO |
1277+
| PB00 | A0 / DAC0 | GPIO / ADC / DAC |
1278+
| PB02 | A1 / DAC2 | GPIO / ADC / DAC |
1279+
| PB05 | A2 | GPIO / ADC |
1280+
| PC00 | A3 | GPIO / ADC |
1281+
| PA06 | A4 / SDA | I2C / GPIO / ADC |
1282+
| PA07 | A5 / SCL | I2C / GPIO / ADC |
1283+
| PB01 | A6 / DAC1 | GPIO / ADC / DAC |
1284+
| PB03 | A7 / DAC3 | GPIO / ADC / DAC |
1285+
| PB04 | D13 / SCK | SPI / GPIO / ADC |
1286+
| PA08 | D12 / MISO | SPI / GPIO / ADC |
1287+
| PA09 | D11 / MOSI | SPI / GPIO / ADC |
1288+
| PD05 | D10 / SS | SPI / GPIO |
12891289
| PD04 | D9 | GPIO |
1290-
| PD03 | D8 | GPIO/ADC |
1291-
| PD02 | D7 | GPIO/ADC |
1292-
| PC09 | D6 | GPIO/ADC |
1293-
| PC08 | D5 | GPIO/ADC |
1294-
| PC07 | D4 | GPIO/ADC |
1295-
| PC06 | D3 | GPIO/ADC |
1296-
| PA03 | D2 | GPIO |
1297-
| PA04 | PIN_SERIAL_TX | UART/GPIO/ADC |
1298-
| PA05 | PIN_SERIAL_RX | UART/GPIO/ADC |
1299-
1290+
| PD03 | D8 | GPIO / ADC |
1291+
| PD02 | D7 | GPIO / ADC |
1292+
| PC09 | D6 | GPIO / ADC |
1293+
| PC08 | D5 / SCL1 | I2C / GPIO / ADC |
1294+
| PC07 | D4 / SDA1 | I2C / GPIO / ADC |
1295+
| PC06 | D3 | GPIO / ADC |
1296+
| PA03 | D2 / SCK1 | SPI / GPIO |
1297+
| PA05 | D1 / PIN_SERIAL_RX / MISO1 | UART / SPI / GPIO / ADC |
1298+
| PA04 | D0 / PIN_SERIAL_TX / MOSI1 | UART / SPI / GPIO / ADC |
13001299

13011300
The digital pins of the Nano Matter can be used as inputs or outputs through the built-in functions of the Arduino programming language.
13021301

@@ -1453,27 +1452,27 @@ The Nano Matter has **19 analog input pins**, mapped as follows:
14531452

14541453
| **Microcontroller Pin** | **Arduino Pin Mapping** | **Pin Functionality** |
14551454
|:-----------------------:|:-----------------------:|:---------------------:|
1456-
| PB00 | A0 | GPIO/ADC/DAC |
1457-
| PB02 | A1 | GPIO/ADC |
1458-
| PB05 | A2 | GPIO/ADC |
1459-
| PC00 | A3 | GPIO/ADC |
1460-
| PA06 | A4/SDA | I2C/GPIO/ADC |
1461-
| PA07 | A5/SCL | I2C/GPIO/ADC |
1462-
| PB01 | A6 | GPIO/ADC/DAC |
1463-
| PB03 | A7 | GPIO/ADC |
1464-
| PB04 | D13 | SPI/GPIO/ADC |
1465-
| PA08 | D12 | SPI/GPIO/ADC |
1466-
| PA09 | D11 | SPI/GPIO/ADC |
1467-
| PD03 | D8 | GPIO/ADC |
1468-
| PD02 | D7 | GPIO/ADC |
1469-
| PC09 | D6 | GPIO/ADC |
1470-
| PC08 | D5 | GPIO/ADC |
1471-
| PC07 | D4 | GPIO/ADC |
1472-
| PC06 | D3 | GPIO/ADC |
1473-
| PA04 | PIN_SERIAL_TX | UART/GPIO/ADC |
1474-
| PA05 | PIN_SERIAL_RX | UART/GPIO/ADC |
1475-
1476-
***Digital I/O's can also be used as analog inputs with the exception of `D10`,`D9` and `D2`.***
1455+
| PB00 | A0 | GPIO / ADC / DAC |
1456+
| PB02 | A1 | GPIO / ADC |
1457+
| PB05 | A2 | GPIO / ADC |
1458+
| PC00 | A3 | GPIO / ADC |
1459+
| PA06 | A4 / SDA | I2C / GPIO / ADC |
1460+
| PA07 | A5 / SCL | I2C / GPIO / ADC |
1461+
| PB01 | A6 | GPIO / ADC / DAC |
1462+
| PB03 | A7 | GPIO / ADC |
1463+
| PB04 | D13 / SCK | SPI / GPIO / ADC |
1464+
| PA08 | D12 / MISO | SPI / GPIO / ADC |
1465+
| PA09 | D11 / MOSI | SPI / GPIO / ADC |
1466+
| PD03 | D8 | GPIO / ADC |
1467+
| PD02 | D7 | GPIO / ADC |
1468+
| PC09 | D6 | GPIO / ADC |
1469+
| PC08 | D5 / SCL1 | I2C / GPIO / ADC |
1470+
| PC07 | D4 / SDA1 | I2C / GPIO / ADC |
1471+
| PC06 | D3 | GPIO / ADC |
1472+
| PA05 | D1 / PIN_SERIAL_RX / MISO1 | UART / GPIO / ADC / SPI |
1473+
| PA04 | D0 / PIN_SERIAL_TX / MOSI1 | UART / GPIO / ADC / SPI |
1474+
1475+
***Digital I/O's can also be used as analog inputs except for `D10`,`D9` and `D2`.***
14771476

14781477
Analog input pins can be used through the built-in functions of the Arduino programming language.
14791478

@@ -1526,6 +1525,8 @@ The Nano Matter has **one DAC** with two channels, mapped as follows:
15261525
|:-----------------------:|:----------------:|:--------------------:|:--------------:|
15271526
| PB00 | DAC0 | A0 | DAC0_CH0 |
15281527
| PB01 | DAC1 | A6 | DAC0_CH1 |
1528+
| PB02 | DAC2 | A1 | DAC1_CH0 |
1529+
| PB03 | DAC3 | A7 | DAC1_CH1 |
15291530

15301531
The digital-to-analog converters of the Nano Matter can be used as outputs through the built-in functions of the Arduino programming language.
15311532

@@ -1618,24 +1619,32 @@ This section of the user manual covers the different communication protocols tha
16181619

16191620
### SPI
16201621

1621-
The Nano Matter supports SPI communication, which enables data transmission between the board and other SPI-compatible devices. The pins used in the Nano Matter for the SPI communication protocol are the following:
1622+
The Nano Matter supports SPI communication, which enables data transmission between the board and other SPI-compatible devices. It counts with two SPI interfaces and the pins used in the Nano Matter for the SPI communication protocol are the following:
1623+
16221624

16231625
| **Microcontroller Pin** | **Arduino Pin Mapping** |
16241626
|:-----------------------:|:-----------------------:|
1625-
| PD05 | SS or D10 |
1626-
| PA09 | MOSI or D11 |
1627-
| PA08 | MISO or D12 |
1628-
| PB04 | SCK or D13 |
1627+
| PD05 | SS or D10 |
1628+
| PA09 | MOSI or D11 |
1629+
| PA08 | MISO or D12 |
1630+
| PB04 | SCK or D13 |
1631+
| PA04 | MOSI1 or D0 |
1632+
| PA05 | MISO1 or D1 |
1633+
| PA03 | SCK1 or D2 |
16291634

16301635
Please, refer to the [board pinout section](#pinout) of the user manual to localize them on the board.
16311636

1637+
***You can not use __SPI1__ and __UART__ interfaces at the same time because they share pins.***
1638+
16321639
Include the `SPI` library at the top of your sketch to use the SPI communication protocol. The SPI library provides functions for SPI communication:
16331640

16341641
```arduino
16351642
#include <SPI.h>
16361643
```
16371644

1638-
In the `setup()` function, initialize the SPI library, define and configure the chip select (`SS`) pin:
1645+
In the `setup()` function, initialize the SPI peripheral, define and configure the chip select (`SS`) pin:
1646+
1647+
***Use SPI.begin() for SPI0 and SPI1.begin() for SPI1.***
16391648

16401649
```arduino
16411650
@@ -1679,12 +1688,14 @@ The example code above should output this:
16791688

16801689
### I2C
16811690

1682-
The Nano Matter supports I2C communication, which enables data transmission between the board and other I2C-compatible devices. The pins used in the Nano Matter for the I2C communication protocol are the following:
1691+
The Nano Matter supports I2C communication, which enables data transmission between the board and other I2C-compatible devices. The Nano Matter features two I2C interfaces and the pins used in the Nano Matter for the I2C communication protocol are the following:
16831692

16841693
| **Microcontroller Pin** | **Arduino Pin Mapping** |
16851694
|:-----------------------:|:-----------------------:|
1686-
| PA06 | SDA |
1687-
| PA07 | SCL |
1695+
| PA06 | SDA or A4 |
1696+
| PA07 | SCL or A5 |
1697+
| PC07 | SDA1 or D4 |
1698+
| PC08 | SCL1 or D5 |
16881699

16891700
Please, refer to the [board pinout section](#pinout) of the user manual to localize them on the board.
16901701

@@ -1696,6 +1707,8 @@ To use I2C communication, include the `Wire` library at the top of your sketch.
16961707

16971708
In the `setup()` function, initialize the I2C library:
16981709

1710+
***Use Wire.begin() for I2C0 and Wire1.begin() for I2C1.***
1711+
16991712
```arduino
17001713
// Initialize the I2C communication
17011714
Wire.begin();
@@ -1755,11 +1768,13 @@ The pins used in the Nano Matter for the UART communication protocol are the fol
17551768

17561769
| **Microcontroller Pin** | **Arduino Pin Mapping** |
17571770
|:-----------------------:|:-----------------------:|
1758-
| PA05 | PIN_SERIAL_RX |
1759-
| PA04 | PIN_SERIAL_TX |
1771+
| PA05 | PIN_SERIAL_RX or D1 |
1772+
| PA04 | PIN_SERIAL_TX or D0 |
17601773

17611774
Please, refer to the [board pinout section](#pinout) of the user manual to localize them on the board.
17621775

1776+
***You can not use __UART__ and __SPI1__ interfaces at the same time because they share pins.***
1777+
17631778
To begin with UART communication, you will need to configure it first. In the `setup()` function, set the baud rate (bits per second) for UART communication:
17641779

17651780
```arduino

0 commit comments

Comments
 (0)