Hello, I do know one thing, it is accepting the configuration because I configurated it in direct rx mode and data and clk1 started to toggle. After I was sure that both transceivers were accepting the configuration y changed the configuration to 1 byte payload, one channel recieve, 16 bits CRC enable, shockburst, 250Kbps, 16MHz, 0dBm, RF channel 0:
RX: 00 08 00 00 00 00 00 AA 55 AA 55 AA A3 4F 01
TX: 00 08 00 00 00 00 00 AA 55 AA 55 A9 A3 4F 00
And when i trie to send that 1 byte, nothing happends, is there any way to know in shockburst if its transmiting? In my University lab is a Spectrum analyser, in what config should I see the carrier or something?
Next is the code I’m using for 8051 microproccesor, is assembler easy code:
RX:
ORG 9200H
DELAY EQU 00C6H
CE EQU 0090H
CS EQU 0091H
CLK EQU 0092H
DATA EQU 0093H
SJMP PPAL
;config numbers
PPAL MOV P1,#00H
MOV 15H,#00H
MOV 16H,#08H
MOV 17H,#00H
MOV 18H,#00H
MOV 19H,#00H
MOV 1AH,#00H
MOV 1BH,#00H
MOV 1CH,#0AAH
MOV 1DH,#55H
MOV 1EH,#0AAH
MOV 1FH,#55H
MOV 20H,#0AAH
MOV 21H,#0A3H
MOV 22H,#04FH
MOV 23H,#01H
POOLIN
SETB CS
NOP
NOP
NOP
NOP
NOP
NOP ;Delay os 6us before sending any config
MOV R5,#0FH
MOV R1,#15H
;Start configutation
CONF MOV A,@R1
LCALL SEND
INC R1
DJNZ R5,CONF
CLR CS
NOP
NOP
NOP
NOP
NOP
NOP
MOV R2,#14H
MOV R3,#19H
LCALL DELAY ;Delay of 3ms before changing from standby to active
SETB CE
WAIT SJMP WAIT ;Do nothing
SEND MOV R4,#08H
CLR C
LOOP RLC A
MOV DATA,C
NOP
NOP
NOP
SETB CLK
NOP
CLR CLK
NOP
DJNZ R4,LOOP
RET
END
TX:
ORG 9200H
DELAY EQU 00C6H
CE EQU 0090H
CS EQU 0091H
CLK EQU 0092H
DATA EQU 0093H
SJMP PPAL
;config numbers
PPAL MOV P1,#00H
MOV 15H,#00H
MOV 16H,#08H
MOV 17H,#00H
MOV 18H,#00H
MOV 19H,#00H
MOV 1AH,#00H
MOV 1BH,#00H
MOV 1CH,#0AAH
MOV 1DH,#55H
MOV 1EH,#0AAH
MOV 1FH,#55H
MOV 20H,#0A9H
MOV 21H,#0A3H
MOV 22H,#04FH
MOV 23H,#00H
POOLIN
SETB CS
NOP
NOP
NOP
NOP
NOP
NOP
MOV R5,#0FH
MOV R1,#15H
;Start configutation
CONF MOV A,@R1
LCALL SEND
INC R1
DJNZ R5,CONF
LCALL BEEP
CLR CS
NOP
NOP
NOP
NOP
NOP
NOP
MOV R2,#14H
MOV R3,#19H
LCALL DELAY
;Transmition of 1 byte
TX SETB CE
NOP
NOP
NOP
NOP
NOP
NOP
;Sending adress to transceiver
SENDAD MOV A,#0AAH
LCALL SEND
MOV A,#55H
LCALL SEND
MOV A,#0AAH
LCALL SEND
MOV A,#55H
LCALL SEND
MOV A,#0AAH
LCALL SEND
;Sending byte to tranceiver
SENDB MOV A,#52H
LCALL SEND
CLR CE ;Now is when the transceiver starts to transmit
NOP
NOP
NOP
NOP
NOP
NOP
WAIT SJMP WAIT ;Stops, do nothing
SEND MOV R4,#08H
CLR C
LOOP RLC A
MOV DATA,C
NOP
NOP
NOP
SETB CLK
NOP
CLR CLK
NOP
DJNZ R4,LOOP
RET
END
Hope someone can help me or suggest something to do.