[전자工學(공학) experiment(실험)] AVR Training Board-I(영어로)
페이지 정보
작성일 23-02-02 13:51
본문
Download : [전자공학실험] AVR Trainin.hwp
1.Title AVR Training Board-I 2.Name 3.Abstract How to use Port, Pin 4.Background
return 0;
int main(void) {
3.Abstract
2.Name
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).
PORTD = 0x00; // LED를 모두 끄기
Download : [전자공학실험] AVR Trainin.hwp( 70 )
while(1){
How to use Port, Pin
1.Title
전자공학실험,AVR Training Board-I
DDRD = 0x3C; // Port D bit 5:2를 Write로 사용
설명
[전자工學(공학) experiment(실험)] AVR Training Board-I(영어로)
}
#include // hw1
AVR Training Board-I
![[전자공학실험] AVR Trainin-9434_01.jpg](https://sales.happyreport.co.kr/prev/201503/%5B%EC%A0%84%EC%9E%90%EA%B3%B5%ED%95%99%EC%8B%A4%ED%97%98%5D%20AVR%20Trainin-9434_01.jpg)
![[전자공학실험] AVR Trainin-9434_02_.jpg](https://sales.happyreport.co.kr/prev/201503/%5B%EC%A0%84%EC%9E%90%EA%B3%B5%ED%95%99%EC%8B%A4%ED%97%98%5D%20AVR%20Trainin-9434_02_.jpg)
![[전자공학실험] AVR Trainin-9434_03_.jpg](https://sales.happyreport.co.kr/prev/201503/%5B%EC%A0%84%EC%9E%90%EA%B3%B5%ED%95%99%EC%8B%A4%ED%97%98%5D%20AVR%20Trainin-9434_03_.jpg)
![[전자공학실험] AVR Trainin-9434_04_.jpg](https://sales.happyreport.co.kr/prev/201503/%5B%EC%A0%84%EC%9E%90%EA%B3%B5%ED%95%99%EC%8B%A4%ED%97%98%5D%20AVR%20Trainin-9434_04_.jpg)
![[전자공학실험] AVR Trainin-9434_05_.jpg](https://sales.happyreport.co.kr/prev/201503/%5B%EC%A0%84%EC%9E%90%EA%B3%B5%ED%95%99%EC%8B%A4%ED%97%98%5D%20AVR%20Trainin-9434_05_.jpg)
순서
_delay_ms(1000); // 1000ms=1s 동안 유지
}
#include // delay 함수의 헤더파일
레포트 > 공학,기술계열
PORTD = 0x3C; // Port D bit 5:2에 연결된 LED를 모두 켜기
_delay_ms(1000); // 1000ms=1s 동안 유지
4.Background
다.