summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/mimxrt/pinout.rst3
-rw-r--r--docs/mimxrt/quickref.rst8
2 files changed, 9 insertions, 2 deletions
diff --git a/docs/mimxrt/pinout.rst b/docs/mimxrt/pinout.rst
index b82c153fc..ef53fa63b 100644
--- a/docs/mimxrt/pinout.rst
+++ b/docs/mimxrt/pinout.rst
@@ -322,7 +322,8 @@ Olimex RT1010Py - CS0/-/SDO/SDI/SCK SDCARD wi
Seeed ARCH MIX J4_12/-/J4_14/J4_13/J4_15 J3_09/J3_05/J3_08_J3_11
================= ========================= ======================= ===============
-Pins denoted with (*) are by default not wired at the board.
+Pins denoted with (*) are by default not wired at the board. The CS0 and CS1 signals
+are enabled with the keyword option cs=0 or cs=1 of the SPI object constructor.
.. _mimxrt_i2c_pinout:
diff --git a/docs/mimxrt/quickref.rst b/docs/mimxrt/quickref.rst
index 0a14c632a..c75fe60c8 100644
--- a/docs/mimxrt/quickref.rst
+++ b/docs/mimxrt/quickref.rst
@@ -301,13 +301,19 @@ There are up to four hardware SPI channels that allow faster transmission
rates (up to 30Mhz). Hardware SPI is accessed via the
:ref:`machine.SPI <machine.SPI>` class and has the same methods as software SPI above::
- from machine import SPI
+ from machine import SPI, Pin
spi = SPI(0, 10000000)
+ cs_pin = Pin(6, Pin.OUT, value=1)
+ cs_pin(0)
spi.write('Hello World')
+ cs_pin(1)
For the assignment of Pins to SPI signals, refer to
:ref:`Hardware SPI pinout <mimxrt_spi_pinout>`.
+The keyword option cs=n can be used to enable the cs pin 0 or 1 for an automatic cs signal. The
+default is cs=-1. Using cs=-1 the automatic cs signal is not created.
+In that case, cs has to be set by the script. Clearing that assignment requires a power cycle.
Notes: