I'm confused about how to assign a functional block's I/O (TWI in my case) to a particular pin on the device. Is there a worked and documented example? Is there a relevant application note?
I'm confused about how to assign a functional block's I/O (TWI in my case) to a particular pin on the device. Is there a worked and documented example? Is there a relevant application note?
static uint8_t m_device_address; const uint8_t blah = 0x17; m_device_address = 0x00 + (uint8_t)(0x39 [left shift] 1);
for (;;)
{
twi_master_transfer(m_device_address, (uint8_t*)&blah, 1, TWI_DONT_ISSUE_STOP);
}
static uint8_t m_device_address; const uint8_t blah = 0x17; m_device_address = 0x00 + (uint8_t)(0x39 [left shift] 1);
for (;;)
{
twi_master_transfer(m_device_address, (uint8_t*)&blah, 1, TWI_DONT_ISSUE_STOP);
}
By the way, I'm using the Revision 1.0 of the nRF51822 Evaluation Kit if that makes any difference.
By the way, I'm using the Revision 1.0 of the nRF51822 Evaluation Kit if that makes any difference.
Are you debugging while doing this? Have you ensured that the device has not crashed or similar?
Can you attach your source code + keil uvproj files so I can have a look?