3.4.8.2 mikroBUS2 Connector

The second mikroBUS™ socket (J61) implements all mikroBUS features, as shown in the schematic below. The reset feature is controlled by default by the PIO port PB21 and can be swapped with the system reset line or peripheral reset line by moving resistor R233 to R231 or R232, respectively.

Figure 3-38. mikroBUS2 Interface

The second mikroBUS interface features an SPI bus shared with the first mikroBUS interface. Each interface has its own Chip Select line connected to its SPI interface (PB7 for the mikroBUS2 interface). PB4 (MISO) is shared between the two, which means that the SPI interface cannot be used at the same time on the two mikroBUS interfaces.

Both mikroBUS interfaces feature a two-wire interface (PA10 and PA11) that is also shared with the 40-pin RPi connector. The end user should ensure that the I²C addresses used on these nodes are different.

The PWM feature of the second mikroBUS interface (PD15) is shared with the first mikroBUS interface, which means that the PWM interface cannot be used at the same time on the two mikroBUS interfaces.

Table 3-23. mikroBUS2 Connector J61 Pin Assignment
FunctionmikroBUS SignalPIOPin NoPin NoPIOmikroBUS SignalFunction

Analog input

MBUS1_AN

PC13

1

16

PD15

MBUS1_PWM

PWM

Reset

MBUS1_nRST

PB21

2

15

PC16

MBUS1_INT

Interrupt

SPI Chip Select

MBUS1_CS

PB07

3

14

PC10

MBUS1_RX

UART receive (mikroBUS output to SAM)

SPI Clock

MBUS1_SCK

PB05

4

13

PC09

MBUS1_TX

UART transmit (mikroBUS input from SAM)

SPI MISO

MBUS1_MISO

PB04

5

12

PA11

MBUS1_TWCK

TWI clock

SPI MOSI

MBUS1_MOSI

PB03

6

11

PA10

MBUS1_TWD

TWI data

VCC

VDD_3V3

–

7

10

–

5V_MAIN

VDD

Ground

GND

–

8

9

–

GND

Ground