DEV Community

kisorge
kisorge

Posted on

【电机控制器】STC8H1K芯片——比较器

【电机控制器】STC8H1K芯片——比较器


@TOC

前言

使用工具:


提示:以下是本篇文章正文内容,下面案例可供参考

一、比较器内部结构

在这里插入图片描述

二、比较器控制寄存器CMPCR1

CMPCR1 = 0x8C;
Enter fullscreen mode Exit fullscreen mode

在这里插入图片描述
在这里插入图片描述

三、比较器控制寄存器CMPCR2

CMPCR2 = 60;            //60个时钟滤波   比较结果变化延时周期数, 0~63
Enter fullscreen mode Exit fullscreen mode

在这里插入图片描述
在这里插入图片描述

总结

本文仅仅简单介绍了【电机控制器】STC8H1K芯片——比较器,评论区欢迎讨论。

Top comments (0)

AWS Security LIVE!

Tune in for AWS Security LIVE!

Join AWS Security LIVE! for expert insights and actionable tips to protect your organization and keep security teams prepared.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay