This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Setting up clock on nRF24le1 for I2C

I used the following code to verify the working of the clock (at P04) of nRF24le1. I used a 4.7K pull up resistor with a VDD of 3.3V, which was output from the nRF. Note that this setup was in isolation, without the slave.

However, when I measure the clock signal using an oscilloscope, all I see is a constant high logic of 3.3V. I do not see any toggling and I don't understand why.

Can you please tell me if you see any mistakes with this?

void main() {

P0DIR = 0x00;											// Initiating IO pins 
hal_w2_configure_master(HAL_W2_400KHZ);

}

Parents
  • Thank you for your response. I hadn't done that but I just tried it now. I still don't see anything on the clock or the data lines on the oscilloscope. The code I used is below. Any suggestions on how should I proceed to troubleshoot this?

    void main() {
    
    P0DIR = 0x00;											// Initiating IO pins 
    hal_w2_configure_master(HAL_W2_100KHZ);
    EA = 1;
    
    
    /* writing intitiation sequence for MC3671 */
    
    hal_w2_write(0xD8,i1, 2);						// reset 
    delay_us(10000);									// delay required after reset
    hal_w2_write(0xD8,i2, 2);
    hal_w2_write(0xD8,i3, 2);
    hal_w2_write(0xD8,i4, 2);
    hal_w2_write(0xD8,i5, 2);
    hal_w2_write(0xD8,i6, 2);
    hal_w2_write(0xD8,i7, 2);
    

    }

Reply
  • Thank you for your response. I hadn't done that but I just tried it now. I still don't see anything on the clock or the data lines on the oscilloscope. The code I used is below. Any suggestions on how should I proceed to troubleshoot this?

    void main() {
    
    P0DIR = 0x00;											// Initiating IO pins 
    hal_w2_configure_master(HAL_W2_100KHZ);
    EA = 1;
    
    
    /* writing intitiation sequence for MC3671 */
    
    hal_w2_write(0xD8,i1, 2);						// reset 
    delay_us(10000);									// delay required after reset
    hal_w2_write(0xD8,i2, 2);
    hal_w2_write(0xD8,i3, 2);
    hal_w2_write(0xD8,i4, 2);
    hal_w2_write(0xD8,i5, 2);
    hal_w2_write(0xD8,i6, 2);
    hal_w2_write(0xD8,i7, 2);
    

    }

Children
No Data
Related