📄 autoshut.txt
字号:
Title: autoshut
Target: PIC18F458
Description:
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 event
Controls:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -