pwmdemo.txt

来自「picc_18v 8.35pl35 PIC18系列单片机开发C编译器」· 文本 代码 · 共 20 行

TXT
20
字号
Title: pwmdemo

Target: PIC18C242

Description:
    A sample project file to be used with HI-TIDE, to
    demonstrate simulation of Pulse Width Modulation.

Controls:
    The virtual IO display has 2 potentiometers. the first is to
    control the PWM period, the second controls the duty cycle.
    Both period and duty cycle are affected by the timer 2 prescale.
    The prescale of timer 2 can be set using the DIP switch panel.

Connections to the PIC18C242:
    Potentiometer 1  -> PORTA0 (analog ch0)
    Potentiometer 2  -> PORTA1 (analog ch1)
    DIP switch [0:1] -> PORTA [2:3]
    LED -> PORTC2 (CCP1 output)

⌨️ 快捷键说明

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