selber programmiert und getestet. ansonsten datenblatt lesen, lesen und
lesen. die haben da schon etwas eigenartige logik...
benutzte sdo und nicht nirq als statusabfrage. brauchst nur 4 leitungen
zum kommunizieren.
---grundeinstellungen(transmit/receive)---------------------------------
---------------------------------------
---3.Frequency Setting
aed8 f=ed8h, fo=10*C1(C2+ed8h/4000)=439,5MHz, C1=1, C2=43, Band
433Mhz(b in 1.Configuration Setting Command )
---4.Data Rate Command
c623 cs=0, r=22h, BR=10000/29/(r+1)/(1+cs*7)=9,6kbit
---5.Receiver Control Command
90c0 i=6h, Receiver baseband bandwidth (BW)=67kHz
g=0, LNA gain select=0dB
r=0, RSSI detector threshold=-103
---8.Synchron Pattern Command
ced4 b=d4, The Byte0 of the synchron pattern, kann zum adressieren
benutzt werden
---11.TX Configuration Control Command
9820 mp=0, m=2, fdev=(m+1)*15kHz=45kHz
p=0, Relative Output Power=0dB
---transmit-------------------------------------------------------------
-----------
8098 1. Configuration Setting
el=1 TX register is enabled
b=1 433MHz Band
x=8 Crystal Load Capacitance=12,5pF
8239 2. Power Management
et=1, Switches on the PLL, the power amplifier, and starts the
transmission (If TX register is enabled)
es=1, Turns on the synthesizer
ex=1, Turns on the crystal oscillator
dc=1, Disables the clock output (pin 8)
b82d Synchron Pattern byte 1
b8d4 Synchron Pattern byte 0
b8xx data byte 13. Transmitter Register Write Command
b8xx data byte 13. Transmitter Register Write Command
b8xx data byte 13. Transmitter Register Write Command
...
b8aa dummy byte 13. Transmitter Register Write Command
b8aa dummy byte 13. Transmitter Register Write Command
8219 2. Power Management
et=0, TX abschalten
es=1, Turns on the synthesizer
ex=1, Turns on the crystal oscillator
dc=1, Disables the clock output (pin 8)
8018 1. Configuration Setting
el=0, TX register is disabled(wenn wieder auf 1 dann wird fifo mit
aaaaH(preamble) gefüllt)
b=1, 433MHz Band
x=8, Crystal Load Capacitance=12,5pF
---receive--------------------------------------------------------------
----------
8058 1.Configuration Setting
ef=1, enables the FIFO mode
b=1, 433MHz Band
x=8, Crystal Load Capacitance=12,5pF
82d9 2.Power Management
er=1 Enables the whole receiver chain
ebb=1 The receiver baseband circuit can be separately switched on
es=1 Turns on the synthesizer
ex=1 Turns on the crystal oscillator
dc=1 Disables the clock output (pin 8)
---bemerkung ca80, ca82 ff=0 dann ff=1, restart the synchron pattern
recognition
ca80 7.FIFO and Reset Mode Command
f=8, FIFO IT level=8bit
sp=0, length of the synchron pattern=2
al=0, FIFO fill start condition=Synchron pattern
ff=0, The FIFO fill stop
ca82 7.FIFO and Reset Mode Command
f=8, FIFO IT level=8bit
sp=0, length of the synchron pattern=2
al=0, FIFO fill start condition=Synchron pattern
ff=1, FIFO fill will be enabled after synchron pattern reception
b0xx data byte 9.Receiver FIFO Read Command
b0xx data byte 9.Receiver FIFO Read Command
b0xx data byte 9.Receiver FIFO Read Command
...