Posted on May 27, 2013 at 13:51
Hello!
This is my code for SPI:
RCC_APB1PeriphClockCmd(RCC_APB1Periph_SPI2, ENABLE);
SPI_InitTypeDef spi;
spi.SPI_Direction = SPI_Direction_2Lines_FullDuplex;
spi.SPI_Mode = SPI_Mode_Master;
spi....
Posted on May 25, 2013 at 00:12
Hello!
I'm new to micro controller programming. I have been told to ''poll a pin'' and perform a specific action if this pin ''goes low''. So I wrote this code to ''poll'' a PD10 pin on my board:
GPI...
Posted on May 30, 2013 at 05:16
Thank you for your answer.
Ha-ha! No, of course I have same SPI2 in all my code. I dont know why I decided to change all this code to SPI1 just to post it here.
I found a way to write exactly 8 bits:
...
Posted on May 25, 2013 at 03:35I'm trying to read data from the AD7738 ADC atm.So I need to:1)Configure the SPI2)Write some cfg data to ADC registers3)Check the RDY pin state and send some byte through SPI.(full sequence I found here: http://ez.anal...
Posted on March 30, 2013 at 03:35Hi! I'm very new to STM.I would like to send some data from my STM32F0 to PC via USB. Can I use this library with STM32F0?