2014-03-13 08:19 AM
what is the electrical configuration of the SPI pins of SPIRIT1 (MISO,MOSI,SCLK,CSn). For outputs I guess it is push/pull, for inputs is it floating, with pull-up? Please can you advise ? Similar question for GPIOs.
2014-03-14 12:09 AM
Hello,
as regards the SPI, the output pin (MISO) is configurated as push/pull so no resistor has to be placed. Regarding the input pins, they are configurated as floating. In this case you have to put a pull-up resistor for the pin CSn because it is active low; for the MOSI and CLK you can put a pull-up or a pull-down indifferently. Instead the GPIO can be set in different modes. When they are set as digital, the functionality is exactly the same of the SPI: if they are set as output no pull resistor is necessary, when they are set as input they are floating so a pull-up or down resistor is necessary. For this scope a resistor value of 100KOhm is the most suitable one.Best regards,Gaetano