SLYA060 August 2022 TMAG5110 , TMAG5110-Q1 , TMAG5111 , TMAG5111-Q1
After the PC LaunchPad is powered, the following peripherals are initialized on the CC26x2 microcontroller:
I2C: The I2C first configures the TMAG5273 to enable conversions on the X and Y channels.
Serial Terminal: The backchannel UART on the XDS110 debugger is enabled so that a serial port is created when the LaunchPad USB connection is connected to a USB port on the laptop. The baudrate for this backchannel UART is 115200 baud per second with the 8N1 configuration.
While the PC LaunchPad waits for a packet, it triggers a new reading of the TMAG52730 X and Y channels. When the PC LaunchPad receives a packet from the TI-RSLK LaunchPad, it converts the number of falling edge transitions indicated by ELA, ERA, ELB, and ERB into frequency readings by dividing the number of transitions by the time interval between packets. The frequency readings output to a terminal. After outputting the parameters onto the terminal, the PC LaunchPad sends the TMAG5273 X and Y readings to the TI-RSLK kit.