wch,gptm

Vendor: WinChipHead

Description

WCH General-purpose Timer (GPTM) for PWM

Properties

Properties not inherited from the base binding file.

Name

Type

Details

channels

int

Number of timer channels.

This property is required.

prescaler

int

Counter prescaler from 0 to 65535. The clock frequency to the counter
is the input frequency divided by (prescaler + 1). For example, if the
input clock is 48 MHz and the desired counter clock is 1 MHz, set this
property to 47.