Other Parts Discussed in Thread: HALCOGEN
Tool/software: Code Composer Studio
Hello,
I am using Halcogen to generate the driver for spi. I am trying to communicate with a simple gyroscope L3GD20H (https://www.pololu.com/file/0J731/L3GD20H.pdf)
I have seen a lot example codes about spi communication , but still I am not able to communicate with this device. I will try to describe my configuration as detailed as possible. First of all, I use 4-wire SPI communication (SOMI, SIMO, CLK, CS[0]).
More specifically I enabled the SPI1 driver , check clock polarity (0)and clock phase (1) in Halogen and SPI frequency is 10 MHz. (Baudrate set to 10MHZ) and then i generated the code .
could anyone help me in writing the main source in ccs ,I just need to read the three axis (x,y,z) gyro. ( sorry this is my first time to deal with SPI interface )
Best Regards,
Ahmad