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

MCP7940 drivers for nrf52840

We are working on external RTC MCP7940(i2c) interfaced with nrf52840. Please check if drivers of the same for nrf52/51 are available or any implementation of CLOCK using MCP7940 with NRF?

Regards

Vishal Aditya

Embedded Software Engineer

Parents Reply
  • Please check the traces after code updates:

        twi_init();
    
    //    for (address = 1; address <= TWI_ADDRESSES; address++)
    //    {
    				while(1)
    				{
    					//	nrf_gpio_pin_write(RED_LED,1);
            err_code = nrf_drv_twi_tx(&m_twi, 0x6F, &sample_data, sizeof(sample_data),1);
            if (err_code == NRF_SUCCESS)
            {
                detected_device = true;
                NRF_LOG_INFO("TWI device detected at address 0x%x.\r\n", address);
    						//nrf_gpio_pin_write(RED_LED,0);
    
            }
            NRF_LOG_FLUSH();
    			}
        
    
        if (!detected_device)
        {
            NRF_LOG_INFO("No device was found.\r\n");
            NRF_LOG_FLUSH();
        }

Children
Related