| 数据搜索系统,热门电子元器件搜索 |
|
DOC1925 数据表(PDF) 57 Page - List of Unclassifed Manufacturers |
|
|
|||||||||||||||||||||||||||||
DOC1925 数据表(HTML) 57 Page - List of Unclassifed Manufacturers |
|
57 / 61 page ![]() AVR STK500 User Guide 9-1 Rev. 1925C–AVR–3/03 Section 9 Example Applications 9.1 Using LEDs and Switches Connect PORTB to LEDS and PORTD to SWITCHES. LEDs will operate differently depending on what switch is pressed. Tip: Copy the code from this document into AVR Studio. ;***** STK500 LEDS and SWITCH demonstration .include “8515def.inc” .def Temp =r16 ; Temporary register .def Delay =r17 ; Delay variable 1 .def Delay2 =r18 ; Delay variable 2 ;***** Initialization RESET: ser Temp out DDRB,Temp ; Set PORTB to output ;**** Test input/output LOOP: out PORTB,temp ; Update LEDS sbis PIND,0x00 ; If (Port D, pin0 == 0) inc Temp ; then count LEDS one down sbis PIND,0x01 ; If (Port D, pin1 == 0) |
|
链接网址 |
| 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 |