SLAAEK3 January   2024 MSPM0G3507

 

  1.   1
  2. Description
  3. Required Peripherals
  4. Compatible Devices
  5. Design Steps
  6. Design Considerations
  7. Software Flowchart
  8. Application Code
  9. Additional Resources
  10. E2E
  11. 10Revision History

Design Considerations

  1. In the application code, make sure you checked the SPI and UART maximum packet sizes against the requirements of your application.

  2. To increase the UART baud rate, adjust the value in the SysConfig UART tab labeled Target Baud Rate. Below this, observe the calculated baud rate change to reflect the target baud rate. This is calculated using the available clocks and dividers.

  3. Check error flags and handle them appropriately. The UART and I2C peripherals are both capable of throwing informative error interrupts. For easy debugging, this subsystem uses an enum and a global variable to save error codes when error codes are thrown. In real-world applications, handle errors in the code so the errors do not break down the project.

  4. The current form of the project defines all of the formatted parts of the packet, such as UART_START_BYTE, UART_READ_SPI_BYTE, and UART_WRITE_SPI_BYTE. These are accompanied by definitions to specify where in the packet header these commands are found. In your implementation you may want to change some of these values. Ensure that the UART start and read/write bytes are bytes that you would not expect to see in your application.