Sending data from MCU to transceiver : problem with understanding the datasheet.

Thread Starter

dyn_o

Joined May 29, 2017
35
Hi,


I will have to program a transceiver, it’s a SPIRIT1 from STMicroelectronics. I have to program it through an SPI interface with a MCU.

One problem is that I don’t know how to send the data from the MCU to the SPIRIT1.

I want to send data to the SYNT0 register, with « 6 band select factor for high band » so field BS = 1, and I want the SYNTH[4:0] field to be 00000, so the byte of the SYNTH0 register is 0000 0001.

If I’m using an ATmega32, PB5 is the MOSI pin. So I assume the code will be :

PB5 = 00000000000010110000000100000010 ; //Figure 14

Am I right ?

Another problem, I don’t understand the « Reset ». I assume that I have to write the reset bit code to the field to reset the fiel. So if I want to reset the BS field, I send 001 to it, right ?

SPIRIT1 register.png MCU interface SPIRIT1.jpg
 
Top