autoshut.txt

来自「Hitech microchip PIC C18 Compiler」· 文本 代码 · 共 33 行

TXT
33
字号
Title: autoshutTarget: PIC18F458Description:    This demo project is to illustrate the autoshutdown feature of    the PIC18F4x8 devices. This feature is used to shutdown the    ECCP module, if a selected external event occurs. The external    events that can cause an autoshutdown are    1) external interrupt 0 on PORTB event    2) analog comparator 1 event    3) analog comparator 2 eventControls:    There are four pushbuttons used in this project. The solitary    pushbutton is used to start or re-start the ECCP module after a    shutdown event has occured. Each pushbutton in the group of three    pushbuttons acts on one of the external events listed above.    The LEDs demonstrate the status of the ECCP module. Red indicates    the module has been shutdown. Green indicates the ECCP module is    active. Yellow is the PWM output from the ECCP module, and thus    should only give an output while the green LED is on.Connections to the PIC18F458:    Pushbutton 1 -> PORTB1    LED green    -> PORTC2    LED yellow   -> PORTD4    LED red      -> PORTC0    Pushbutton 2 -> PORTB0    Pushbutton 3 -> PORTD1    Pushbutton 4 -> PORTD3

⌨️ 快捷键说明

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