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

nrf24LE1 I2C

I'm trying to get the I2C on the nrf24LE1 working. I'm using the modified Library from nAN-20. It doesn't do anything. Can't see anything on the oscilloscope. It's an nrf24LE1 QFN32. P0.4 and P0.5 are pulled on VCC with 10k Resistors.

#ifdef MCU_NRF24LE1
#include "nrf24le1.h"
#include "hal_clk.h"
#endif

#ifdef MCU_NRF24LU1P
#include "nrf24lu1p.h"
#endif

#include <stdint.h>
#include <stdbool.h>
#include "hal_nrf.h"
#ifndef MCU_NRF24LU1P
#include "hal_clk.h" //lint !e322 !e7 "include file not found"
#endif

#include "hal_w2_mod.h"
#include "hal_delay.h"

void main(void)
{
	
hal_w2_configure_master(HAL_W2_400KHZ);
	

  for(;;)
  {
		xdata uint8_t data_string[2] = { 0xAA, 0xBB }; 
		
		hal_w2_write_bytes(0x40, data_string, 1);
		
		delay_ms(50);
  }
}
Parents Reply Children
No Data
Related