I am trying to write a low level driver for the TWIM system in a nrf52840 and cannot seem to get the hardware to transfer the TX data out of memory. For many reasons, I do not wish to use the provided libraries for this function although I did refer to them when creating this custom code:
step 1: set up the I/O
step 2: initialize TWIM0:
step 3: send out the data to the peripheral: