📄 epwmdemo.txt
字号:
Title: epwmdemo
Target: PIC18F458
Description:
A project to demonstrate the extended PWM ability of the
PIC18F4x8 devices.
Controls:
Two DIP switches are used in this project. The first selects
which PWM mode the device will operate in. For example, single
output, half-bridge, full-bridge.
The second DIP switch determines that the active output level
for the PWM output pairs.
PWM period and duty are modified using the potentiometers.
The output of the PWM pairs is displayed on the logic analyser
and on the LED display.
The current mode of operation is readable in the serial IO window.
Connections to the PIC18F458:
DIP switch [1:2] -> PORTC [0:1]
DIP switch [1:2] -> PORTC [3:2] (reverse connect)
Potentiometer 1 -> PORTA0 (period)
Potentiometer 2 -> PORTA1 (duty cycle)
Analyser [0:3] -> PORTD [4:7]
LED [1:4] -> PORTD [4:7]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -