Files
microchip-application-pec93…/Examples/tim/tim_xorInput
2026-02-03 11:37:13 +08:00
..
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00
2026-02-03 11:37:13 +08:00

TIM_xorInput_project

This example is a demo project to TIM xorInput

Hardware and Software environment

  • This example runs on PB5700 devices.

Log

  • CAP0(PA14)/CAP1(PA15)/CAP2(PB0)PA6,PA7,PA8 set output
  • PA6 connects PA14,PA7 connects PA15,PA8 connects PB0
  • Set TIM output to 1KHz PWM
  • Set as trigger mode, trigger source is T1
  • Set T1 as the XOR result of CAP0, CAP1, and CAP2
  • Set PA6/7/8 voltage level
  • When PA6/7/8 changes from 0 to 1, PWM starts outputting