jmg 发表于 2023-5-16 08:37:51

STC8H Quadrature Encoder mode details

I found the code for Quadrature Encoder mode, but have some incomplete issues



a) It does not state anywhere where the pins map, to apply the Qa,Qb signals.
After many hops through the data my best guess is Quad defaults areP1.0& P1.2 ?


b)There is no example for Quadrature Encoder mode, applies to PWMB ?
Are there any links for a PWMB example ?

32G12K128 发表于 2023-5-16 09:04:49

Hello, you can refer to our PWM encoder example program first!

https://www.stcaimcu.com/data/attachment/forum/202303/18/104027hkj3wqv5qiz58xvb.png


页: [1]
查看完整版本: STC8H Quadrature Encoder mode details