L2G4200D communicating with MSP430G4252.
viniciusantonio
Posts: 1
Dear Sirs,
I'm trying to do the communication gyroscope co MSP430G2452 microcontroller using SPI.
Looking at some of the documentation gyroscope saw he reaches up to 10 Mhz
The configuration of the microcontroller clock must also be configured in 10Mhz?
Is there a problem if the clock of the microcontroller is below 10Mhz?
Thank you,
Vinicius
I'm trying to do the communication gyroscope co MSP430G2452 microcontroller using SPI.
Looking at some of the documentation gyroscope saw he reaches up to 10 Mhz
The configuration of the microcontroller clock must also be configured in 10Mhz?
Is there a problem if the clock of the microcontroller is below 10Mhz?
Thank you,
Vinicius
Comments
bis.b #USIPE7+USIPE6+USIPE5+USIMST+USIOE,&USICTL0 ; P1.5,6,7 SPI master
mov.b #USIDIV_4+USISSEL_2,&USICKCTL ; /16 SMCLK
bic.b #USISWRST,&USICTL0 ; Enable USI
Probably should add this too, as TI's defult is not the same as Motorola's
bis.b #USIIE+USICKPH,&USICTL1
http://e2e.ti.com/support/microcontrollers/msp430/f/166/t/172303.aspx