I am using the SPI Peripheral with the CC3200 and need to utilise the Internal Pulls that available (More details here - http://www.ti.com/product/CC3200/datasheet/terminal_configuration_and_functions#swas031941).
However, I have been unable to work out how to get this to work, so it does not matter if I Pull Up or Down, it does not seem to change. I am using a Logic Analyzer to confirm what is happening.
I have tried to get it to work with my TI-RTOS based application, and also with the SPI Example that comes with the CC3200 SDK. Below is the code I am using in the pinmux.c file for the SPI_Demo
// // Configure PIN_05 for SPI0 GSPI_CLK // MAP_PinTypeSPI(PIN_05, PIN_MODE_7); PinConfigSet(PIN_05, PIN_STRENGTH_4MA, PIN_TYPE_STD_PU); // // Configure PIN_06 for SPI0 GSPI_MISO // MAP_PinTypeSPI(PIN_06, PIN_MODE_7); // // Configure PIN_07 for SPI0 GSPI_MOSI // MAP_PinTypeSPI(PIN_07, PIN_MODE_7); PinConfigSet(PIN_07, PIN_STRENGTH_4MA, PIN_TYPE_STD_PD);
What else do I need to do to get the Pulls to work as they should?
The relevant Macros can be found in the pin.c file, see details below
//***************************************************************************** // Macros that can be used with PinConfigSet() //***************************************************************************** #define PIN_STRENGTH_2MA 0x00000020 #define PIN_STRENGTH_4MA 0x00000040 #define PIN_STRENGTH_6MA 0x00000060 #define PIN_TYPE_STD 0x00000000 #define PIN_TYPE_STD_PU 0x00000100 #define PIN_TYPE_STD_PD 0x00000200 #define PIN_TYPE_OD 0x00000010 #define PIN_TYPE_OD_PU 0x00000110 #define PIN_TYPE_OD_PD 0x00000210 #define PIN_TYPE_ANALOG 0x10000000
I have tried all the different PIN_STRENGTHs
Glenn.