User Activity

Hi, I'm working on H3LIS331DL MEMS sensor, which is interfaced with PIC microcontroller's SPI. Some sensors are working fine by giving appropriate value in all 3 axis,  but for same configuration and interface i am getting 0 values in all 3 axis in s...
#include "stm32f10x.h"void usartSetup (void);int SendChar ();int main(){ while(1) { usartSetup(); SendChar(); }}void usartSetup (void) {RCC->APB1ENR = 0x00040000; RCC->APB2ENR = 0x0000000C;  GPIOB->CRH  = 0x00000900; USART3->BRR = 0x340; USART3->CR1 ...