Skip to content

stc15: fix baudrate switching

Andrew 'Necromant' Andrianov requested to merge fix-stc15f104w into master

Created by: grigorig

Baudrate switching fixes for both HW and SW UART devices:

  • Program secondary SW UART timing parameter correctly. Supposedly this controls the sampling position when receiving data.
  • Swap around trim range/adjust parameter for HW UART devices (as determind by older traces)
  • Use correct constant for timing calculations

This should fix some STC15x10xW series MCUs. Compatibility to other devices might be improved as well.

Merge request reports

Loading