This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

send data RF430

Hi,

i am not sure about your example code sloc290. it seems like you didnt send the device address in this code.....

i tried to write my own code for an other pic.

it looks like this, i just write the order of my commands, i dont send the full code, if its not needed for you.

while(1)

{

send start bit

send device address(0x50) =01010000

write register 0x0000

write ndef_application_data.  it is the same ndef like in the code sloc290

write register 0xFFFE 

send 0x02

send 0x00

write register 0xFFFE

send 0x0000

send stop bit

}

I assume i dont need to send a signal to the int_enable_reg Register, because i dont use the into pin.

Is this the right order for the programm, or did u make a mistake somewhere?

  • Hey Tom,

    As for your flow, for the most part it looks correct but not this last section:

    Tom Jones78 said:

    write register 0xFFFE

    send 0x0000

    send stop bit

    You should write the General Control Register (0xFFFE) to turn RF on.  If you re-write it and turn RF off, which it looks like you did here, then it will not respond.  

    Also, you say that you send the device address at the beginning, but you must send it before every write/read packet.  Section 5.5 of the datasheet shows the correct I2C protocol.  

     

    Thanks,

    JD