Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我从(位于 [0, 1024) 中)获得 8 位值ADC,但我需要在定时器模式下将它们转换为占空比PWM(位于 [25, 255] 中)。使用汇编执行此操作的最佳方法是什么?
ADC
PWM
编辑
如果您想要对 ADC 读数的非线性响应,您可以创建一个256 1024 字节表......可能从 25x“25”开始,然后任何函数逐步增加到 255,并使用未移位的 ADC 值作为索引这张表……这就是例如对数 LED 调光曲线的编程方式。
I need to create an XML file using C#. I am using a class that inherits List that represents a list of computers and later initialize it with values but the serializer doesn't get the attributes