#include "fw_hal.h"Go to the source code of this file.
Functions | |
| uint8_t | readCode (uint8_t offset) |
| void | main (void) |
| void main | ( | void | ) |
Definition at line 36 of file clock_trim_scan.c.
Scan to find most close VRTRIM and IRTRIM for specified frequency.
Change build_flags in platformio.ini D__CONF_FOSC -> target frequency, e.g. 36864000UL D__CONF_MCU_MODEL -> MCU type, e.g. MCU_MODEL_STC8H3K64S2 D__CONF_IRCBAND -> frequency band depending on the frequency STC8H1K - 00:20MHz, 01:35MHz STC8H3K,STC8H8K - 02:24MHz, 03:40MHz
Connect UART at baud 115200 and read output, when the output is not garbled, find the middle value of VRTRIM and IRTRIM, lower VRTRIM is preferred
Definition at line 31 of file clock_trim_scan.c.