📄 iodemo.txt
字号:
Title: iodemo
Target: PIC18C858
Description: A sample project file to be used with HI-TIDE, to demonstrate the
device's input/output capabilities. All I/O ports are used in this
demonstration. The output of Ports A,C,D,E,F,G,H,J & K can be observed via
the LED panels connected to each.
Controls:
The IO ports can be configured with any input/output pin configuration. This
is done by entering the configuration on the blue DIP switch (ON=input,
OFF=output). This input/output configuration can be assigned to a port by
pressing the pushbutton associated with that port.
When any pin of a port is set in output mode, the pin will participate in
displaying a test pattern that is generated in software. If any particular pin
is configured as input, that pin will read the value from the corresponding
pin on the blue DIP switch.
Interrupts:
This project only uses the change on PORTB interrupt. PORTB is wired to
each of the 8 pushbuttons that are used to update the direction setting
for each port.
Connections to the PIC18C858:
LED(red1) [1:7] -> PORTA [0:6]
pushbutton 1 -> PORTB4
LED(red2) [1:8] -> PORTC [0:7]
pushbutton 1 -> PORTB5
LED(green1) [1:8] -> PORTD [0:7]
pushbutton 1 -> PORTB4,PORTB5
LED(green2) [1:8] -> PORTE [0:7]
pushbutton 1 -> PORTB6
LED(blue1) [1:8] -> PORTF [0:7]
pushbutton 1 -> PORTB6,PORTB4
LED(blue2) [1:5] -> PORTG [0:4]
pushbutton 1 -> PORTB6,PORTB5
LED(yellow1) [1:8] -> PORTH [0:7]
pushbutton 1 -> PORTB6,PORTB5,PORTB4
LED(yellow2) [1:4] -> PORTJ [0:3]
LED(yellow2) [5:8] -> PORTK [0:3]
pushbutton 1 -> PORTB7
DIP switch [1:8] -> PORTA,C,D,E,F,G,H,J,K [0:7]
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -