⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 portb.txt

📁 Hitech microchip PIC C18 Compiler
💻 TXT
字号:
Title: portbTarget: PIC18C658Description:    A demonstration PORTB, the interruptable port. External influences    on PORTB can trigger up to 5 different interrupts. There are 4    edge triggered interrupt sources on pins 0-3. The fifth interrupt    occurs if there is any change on input pins 4-7.Controls:    A RED DIP switch is used to act on PORTB pins 0-3. These are the    pins that trigger an interrupt is the correct edge sensitive    event has been detected. To select between rising or falling edge    interrupts, use the switch. When such an interrupt has occurred,    the corresponding yellow LED will blink for a period of time.    A BLUE DIP switch acts on PORTB pins 4-7. These pins will cause    an interrupt on any change at all. The interrupt routine itself    interprets what kind of change has occurred.    A low to high transition will cause a BLUE LED to blink for a    period of time, whereas a HIGH to LOW transition will cause the    GREEN LED to blink for a period of time.Connections to the PIC18C658:    LED YELLOW [0:3] -> PORTC[0:3]    DIP RED [1:4]    -> PORTB[0:3]    Switch 1         -> PORTA5    LED BLUE [0:3]   -> PORTC[4:7]    DIP BLUE [1:4]   -> PORTB[4:7]    LED GREEN        -> PORTA6

⌨️ 快捷键说明

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