본문 바로가기

# Semiconductor/- Semicon Academy103

[Harman 세미콘 아카데미] 24일차 - ATmega128(PWM 활용, Servo Motor) [참조] https://rangvest.tistory.com/manage/newpost/101?type=post&returnURL=https%3A%2F%2Frangvest.tistory.com%2Fmanage%2Fposts https://rangvest.tistory.com/manage/newpost/101?returnURL=https%3A%2F%2Frangvest.tistory.com%2Fmanage%2Fposts&type=post rangvest.tistory.com https://rangvest.tistory.com/manage/newpost/73?type=post&returnURL=https%3A%2F%2Frangvest.tistory.com%2Fmanage%2Fposts%3Fcategory%3D.. 2023. 7. 20.
[Harman 세미콘 아카데미] 23일차 - ATmega128(FND count, PWM, Buzzer, Motor driver) [FND Count] ※ 기능 추가 + FND overfolw 시, LED_Bar로 출력 + Up / Down Count #define F_CPU 16000000UL #include #include #include #defineFND_DATA_DDRDDRA // 데이터 포트 #defineFND_SELECT_DDRDDRF // 셀렉트 포트(자릿수 선택) #defineFND_DATA_PORTPORTA // 0 ~ 7 #defineFND_SELECT_PORTPORTF // 0 ~ 4 // 디스플레이 함수 선언 // void FND_Display(uint16_t data); // 8bit면 255까지밖에 없기 때문에, 4자리 다 쓰려고 16bit volatile uint32_t time_tick; uint16_.. 2023. 7. 19.
[Harman 세미콘 아카데미] 22일차 - ATmega128(FND 활용) [FND 활용] 0~9까지 카운팅(No interrupt) #define F_CPU 16000000UL #include #include #include // Segment 배열 선언 // uint8_t seg_arr[] ={ 0x3f, 0x06, 0x5b, 0x4f, 0x66, 0x6d, 0x7d, 0x27, 0x7f, 0x67 }; int main() { int count = 0; DDRA = 0xff; while(1) { PORTA = seg_arr[count]; count = (count+1)%10; // 10으로 나눴을 때 나머지는 0~9이므로 _delay_ms(500); } } 0~9999까지 Count(No interrupt) #define F_CPU 16000000UL #include #in.. 2023. 7. 18.
[Harman 세미콘 아카데미] 21일차 - PSpice 사용법(기본 메뉴 및 옵션, Bias Point, Time Domain(Transient), DC Sweep, AC Sweep/Noise, Parametric 해석) [PSpice란?] PSpice (Professional Simulation Program with Integrated Circuit Emphasis) PSpice는 전기, 전자 및 디지털 회로 등을 설계할 경우에 미리 시뮬레이션을 할 수 있는 프로그램이다. 과거 일일이 실제 회로를 작성하여 테스트를 하는 것이 아니라 미리 컴퓨터로 시뮬레이션으로 확인 할 수 있기 때문에 시간과 경비가 절약되는 아주 중요한 프로그램이다. [기본 메뉴 및 옵션] 1. 프로젝트 생성 2. 프로젝트 매니저 ① 각 프로젝트는 하나의 디자인을 포함 ② 하나의 프로젝트에는 library, output file, PSpice resource로 구분 ③ 하나의 디자인에 여러 Schematic을 포함할 수 있으며, 하나의 Schemati.. 2023. 7. 17.