Scroll
I2C Multi Byte Read Exercise
Task
Once after reset, read the bench accelerometer's X, Y and Z in one transaction and print them. The registers and bit fields are on the Datasheet tab.
Circuit
Pass condition
TP1 shows one transaction that writes the register address, then reads exactly six bytes. USART1 prints three axes in decimal, on one line.
Notes
The given code brings up USART1 and I2C1, clock included. uart_puts and uart_puti print.