[전자Engineering實驗(실험)] AVR Training Board-I(영어로)
페이지 정보
작성일 23-04-30 03:47
본문
Download : [전자공학실험] AVR Trainin.hwp
How to use Port, Pin
#include // hw1
레포트 > 공학,기술계열
설명
_delay_ms(1000); // 1000ms=1s 동안 유지
return 0;
1.Title AVR Training Board-I 2.Name 3.Abstract How to use Port, Pin 4.Background
순서
with turned off state for 1 second, we can use the function _delay_ms() in util.delay header file. After maintaining 1 second using _delay_ms, as all the LED should be turned on, the value should be 0011 1100. It is converted to 3 C in hexadecimal digit. Declare PORTD = 0x3C and maintain the state for 1 second using _delay_ms() function. Finally, to make the loop infinite and state return to the initial state we used while(1).
[전자Engineering實驗(실험)] AVR Training Board-I(영어로)
int main(void) {
DDRD = 0x3C; // Port D bit 5:2를 Write로 사용
}
PORTD = 0x3C; // Port D bit 5:2에 연결된 LED를 모두 켜기
_delay_ms(1000); // 1000ms=1s 동안 유지
PORTD = 0x00; // LED를 모두 끄기
3.Abstract
1.Title
전자공학실험,AVR Training Board-I
#include // delay 함수의 헤더파일
4.Background
2.Name
}
AVR Training Board-I
Download : [전자공학실험] AVR Trainin.hwp( 77 )
while(1){
다.


