Hi,
I'm new with the CC1010 RF microcontroller... I have two CC1010, the first is configured as a transmitter and the second as a receiver. I want to transmit a byte with the first microcontroller to the second one. When I try, I see that the transmitter microcontroller enters the RF Transmit / Receive Interrupt service routine, but no interrupt events are generated at the receiver. The calibration of the RF peripherals is successfull on both the microcontrollers. I have written below the configuration and the data transmission code. Can someone help me to find the mistake that I have done...
------------------------ This is the configuration I have used ---------------------------------------:
# ## Transmitter (Microcontroller 1):
MOV MODEM0, #0X63 ; 4.8 kbaud , NRZ mode
MOV MODEM1, #0X2F
; average filter setting
MOV MODEM2, #0X15
; peak level offset setting
MOV RFCON,#0X01 ; BYTEMODE
MOV PDET, #0X01 ; preamble length
MOV FSEP1, #0X01 ; frequency separation
MOV FSEP0, #0XAB ; frequency separation
MOV FREND, #0X33 ; front end setting
MOV PA_POW, #0XE0 ; PA output power
MOV MATCH, #0X00 ; match capacitor array setting
MOV PRESCALER, #0X00 ; prescaler setting
MOV CURRENT,#0XF3 ; VCO current setting
MOV PLL, #0X30 ; PLL settings
MOV IE, #0X80 ; enable interrupts
### Receiver(Microcontroller 2):
MOV MODEM0, #0X63 ; 4.8 kbaud, NRZ mode
MOV MODEM1, #0X0F
; average filter setting
MOV MODEM2, #0X15
; peak level offset setting
MOV RFCON,#0X01 ; BYTEMODE
MOV PDET, #0X01 ; preamble length
MOV FSEP1, #0X01 ; frequency separation
MOV FSEP0, #0XAB ; frequency separation
MOV FREND, #0X33 ; front end setting
MOV PA_POW, #0XE0 ; PA output power
MOV MATCH, #0X00 ; match capacitor array setting
MOV PRESCALER, #0X00 ; prescaler setting
MOV CURRENT,#0X6C ; VCO current setting
MOV PLL, #0X40 ; PLL settings
MOV IE, #0X80 ; interrupt enable
MOV RFMAIN, #0X10 ; set receiver mode
WAIT_FOR_250us ; 250 us delay
MOV EIE, #0XE1 ; enable RF interrupts
------------------------- This is the routine I use to send data -------------------------
CC1010_SEND_DATA:
MOV PA_POW, #0X00 ; turn off transmitter
MOV RFMAIN, #0XE0 ; set tx mode
MOV CURRENT,#0XF3 ; set VCO current fro tx mode
ACALL DELAY_250US ; 250 uS delay
MOV PA_POW, #0XE0
ACALL DELAY_250US ; 250 uS delay
MOV RFMAIN, #0XF0 ; turn off modulator
MOV EIE, #0XE1 ; enable RF interrupt
MOV RFBUF, #0x04 ; load data to send
MOV RFMAIN, #0XE0 ; turn on the modulator
RET ; return instruction