XDK API 27.00
The extension bus allows the implementation of additional functionality to the XDK main board, like radios or sensors. This way, developers can use the hardware and software of XDK for testing out new components with minimal application effort.
Please find the mapping of the XDK extension connector in the following table.
|pin on connector||pin on MCU||Suggested Usage||Macro|
|A1||PA0||Timer0 compare operations||EXTENSION_TIM0_CC0|
|A2||PC0||Timer0 compare operations||EXTENSION_TIM0_CC1|
|A3||PC1||Timer0 compare operations||EXTENSION_TIM0_CC2|
|A4||PC2||Timer0 Dead time insertion operations||EXTENSION_TIM0_CDTI0|
|A5||PC3||Timer0 Dead time insertion operations||EXTENSION_TIM0_CDTI1|
|A6||PC4||Timer0 Dead time insertion operations||EXTENSION_TIM0_CDTI2|
|A7||PC8||Timer2 Capture operations||EXTENSION_TIM2_CC0|
|A8||PC9||Timer2 Capture operations||EXTENSION_TIM2_CC1|
|A9||PC10||Timer2 Capture operations||EXTENSION_TIM2_CC2|
|A12||PA1||General purpose I/O||EXTENSION_GPIO_IN_OUT_0|
|A13||PE2||General purpose I/O||EXTENSION_GPIO_IN_OUT_1|
|B5||PB4||US2 MOSI operations||EXTENSION_US2_MOSI|
|B6||PB3||US2 MISO operations||EXTENSION_US2_MISO|
|B7||PB5||US2 clock operations||EXTENSION_US2_SCK|
|B8||PD8||US2 chip select||EXTENSION_US2_CS|
|B9||PB11||I2C1 data line||EXTENSION_I2C1_SDA|
|B10||PB12||I2C1 clock line||EXTENSION_I2C1_SCL|
|B11||2V5||Power Limit 100mA continuous/ peak||-|
|B12||3V3||Power Limit 100mA continuous/ peak||-|
The extension bus connector of XDK is a 26-pin male connector of type ERNI Male 054595. For your extension boards, please use the same connector and use the flat ribbon cable to connect your extension board to XDK.
This example outlines, how to realize LED blinking functionality on the XDK Extension Bus.
This example outlines, how to configure the UART on the extension bus of XDK.
The following steps are needed to configure in the software after External Hardware setup done.
1) UART1 Module Clock has to be enabled before calling SER_serialInit API as shown in the example below.
2) Initialize the Serial UART init parameters as given in the below example Please note that these structure members hwType,hwDevicePort,protocol and routeLocation values must not to be changed by the user
3) TX buffer size and RX buffer size has to be modified as per the need of the application.Violating this may lead to undesired behaviour
This example outlines, how to configure the SPI on the extension bus of XDK.
The following steps are needed to configure SPI in the software after External Hardware setup done.
1) Initialize the SPI init parameters as given in the below example Please note that these structure members portNumber and routeLocation values must not to be changed by the user
2) TX buffer size and RX buffer size has to be modified as per the need of the application.Violating this may lead to undesired behaviour