Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • F firmware
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 29
    • Merge requests 29
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • card10card10
  • firmware
  • Merge requests
  • !478

change(backlight): Keep PWM stable when changing PCLK

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged schneider requested to merge schneider/backlight-scaling into master Aug 15, 2021
  • Overview 1
  • Commits 1
  • Pipelines 2
  • Changes 6

This is in preparation to support switching the system clock on the fly.

Changing the prescaler of the timer was found to be the easiest option and appears to be glitch free.

Timer frequency is now held close to a value which can be achieved both with a 48 MHz PCLK (96 MHz system clock) and a 7.5 MHz PCLK (15 MHz system clock).

If even lower PCLKs should be supported, the frequency of the timer has to be changed as well.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: schneider/backlight-scaling