| 数据搜索系统,热门电子元器件搜索 |
|
PICDEM2 数据表(PDF) 15 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
PICDEM2 数据表(HTML) 15 Page - Microchip Technology |
|
15 / 60 page ![]() PICDEM 2 User’s Guide DS30374D-page 10 2001 Microchip Technology Inc. 3.1 Main Routine The tutorial program is extremely simple. It begins by configuring PORTB as all outputs to drive the 8 LEDs and initializing a counter. Then it waits in an infinite loop until S2 is pressed. This increases the counter by one, and this number is displayed in binary on the LEDs. Once the count reaches FFh, the next S2 press will roll the count back to 00h. Figure 3.2: Main Routine Start Configure PORT B Switch S2 pressed? No Yes Increase Counter Display count on LEDs Zero Counter Switch S2 released? No Yes |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |