.hsclock Property

Function:

Enables or disables the HSE (High-Speed External) oscillator and the PLL (Phase-Locked Loop).

Syntax:

sys.hsclock as enum dis_en

Returns:

  • 0- DISABLED
  • 1- ENABLED (default)

See Also:

---


Details

When sys.hsclock is set to ENABLED, it turns on both the HSE oscillator and the PLL. This allows the system to run at a higher clock frequency derived from the HSE source. When sys.hsclock is set to DISABLED, it turns off the HSE oscillator and PLL, which reduces the clock frequency to a lower-power internal clock source.


.hsclock Property

Details