TS-7250-V3 MikroBus Header: Difference between revisions
From embeddedTS Manuals
No edit summary |
No edit summary |
||
Line 71: | Line 71: | ||
[[File:TS-7250-V3-Mikrobus Header.svg|302px]] | [[File:TS-7250-V3-Mikrobus Header.svg|302px]] | ||
|} | |} | ||
The /dev/spidev* devices can be accessed from Linux. See the [https://www.kernel.org/doc/Documentation/spi/spidev kernel spidev documentation] for more information on interfacing with the SPI peripherals from C. | |||
Other languages also have bindings to interface with spidev: | |||
* [https://github.com/rust-embedded/rust-spidev rust] | |||
* [https://pypi.org/project/spidev/ python] | |||
* [https://www.npmjs.com/package/spi-device npm/js] | |||
<References /> | <References /> |
Revision as of 09:42, 6 October 2021
The Mikrobus header is a 0.1" pitch 2x8 header which supports the Mikroe Click board ecosystem. This header features 3.3V, 5V, SPI, GPIO, ADC, PWM, a UART, and PWM. All IO are 3.3V tolerant.
By default all of these headers default to their non-gpio functions. These can be changed in the FPGA syscon register 0x08. For example:
# Make all mikrobus header pins GPIO:
peekpoke 32 0x50004008 0xF0
# Set only SPI to GPIO:
peekpoke 32 0x50004008 0x10
Signals | Pin Layout | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
The /dev/spidev* devices can be accessed from Linux. See the kernel spidev documentation for more information on interfacing with the SPI peripherals from C.
Other languages also have bindings to interface with spidev: