servosimples2.sdi

来自「Code ASM for PIC16F628. Use for CNC/Serv」· SDI 代码 · 共 24 行

SDI
24
字号
,,,title  "PWMOut - Output a PWM Analog Voltage"
,,,;
,,,;  This Application simply Outputs an Analog Voltage by Driving a
,,,;   Resistor/Capacitor ("RC") Network with a PWM signal.
,,,;
,,,;  The PWM runs at 20 kHz, with a Duty Cycle range from 0 to 100%
,,,;   Demonstrated.
,,,;  This is an Actual PWM Duty Cycle Range of 0 to 50 Instructions/usecs
,,,;
,,,;  Hardware Notes:
,,,;   This application runs on a 16F84 executing at 4 MHz
,,,;   _MCLR is tied through a 4.7K Resistor to Vcc and PWRT is Enabled
,,,;   A 10K Resistor/0.1 uF Capacitor Network is connected to RA0 to Show
,,,;    the PWM in Operation
,,,;
,,,;  Myke Predko
,,,;  99.12.27
,,,;
,,,;  LIST R=DEC
,,,; ifdef __16F84
,,,;  INCLUDE "p16f84.inc"
,,,; else;
,,,; ifdef __16F877
,,,;  INCLUDE 損16f877.inc

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?