ADMUX Register의 REFS bit를 사용해서 내부 기준 전압 2.56V를 사용한다.ADC는 128분주비, ADC 데이터 좌측정렬SW 1을 눌렀을 떄 ADC interrupt가 발생, ADC중지 및 LED 전체 ONSW 2를 눌렀을 때 ADC 다시 시작하고 LED 전체가 꺼지고, ADC MODE는 단일 Running Mode를 실행SW 3를 눌렀을 때 Free Running Mode 실행 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919..
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485#include #include #include #include #include #include #include #include "LCD.h" void LCD_Decimal(unsigned char num, short AD_dat){ unsigned char Decimal[5]; Decimal[4] = '0'+ AD_dat/10000; AD_dat = AD_dat%10000; Decimal[3] = '0' + AD_dat..
#include #include #include unsigned char sw;int count;int h_time, m_time, s_time;int h_save, m_save, s_save;unsigned char status;unsigned char led;unsigned char two_line; void lcd_func(void){ // 기능 설정 PORTG = 0x01; // 명령어 쓰는 신호 PORTA = 0x38; // 0b00111000 8비트, 2행, 5*7도 delay_us(39); PORTG = 0x00;}void lcd_pic(void){ // 화면 설정 PORTG = 0x01; PORTA = 0x0e; // 0b00001110 화면on, 커서 on, 블링크 off delay_us..
- Total
- Today
- Yesterday
- Azure
- DevOps
- REACT
- Cloud
- Next.js
- nosql
- svelte
- vue
- gcp
- Gatsby.js
- aws
- node.js
- alpine.js
- JavaScript
- 이진탐색 #중복
- oracle
- vue.js
- Angular
- RDBMS
- hoisting
- MySQL
- nuxt.js
- Quasar
- PostgreSQL
- Remix
- SQLite
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |