- 8bit timer/counter
- full adder
- Method
- behavioral modeling
- Set
- gpio
- Recursion
- java
- Comparator
- 4bit parallel adder
- structural modeling
- verilog
- atmega 128a
- ctc mode
- atmega 128
- interrupt
- Linked List
- structure
- MUX
- fast pwm mode
- timer / counter
- interface
- normal mode
- behavior modeling
- dataflow modeling
- ATMEGA128A
- sequential logic circuit
- LED
- Algorithm
- half adder
목록Embedded Programming (27)
거북이처럼 천천히
1) 환경 : Microchip studio2.) 목표 : 0핀 -> 3핀 -> 0핀, 7핀 -> 4핀 -> 7핀 LED를 Shift하여 출력3) Source code#define F_CPU 16000000UL#include #include #define TIME 150int main(void) { // PORTD의 8핀을 출력으로 설정 // PORTD = 1111 1111 DDRD = 0xff; while(1) { for(uint8_t i=0; i>i); _delay_ms(TIME); } // i의 값을 1 ~ 3으로 설정한 이유 // 0 ~ 4까지로 설정할 경우, 0, 3, 4, 7핀이 중복해서 불이 들어오기 때문에 ..
GPIO - 8개의 LED를 Shift하며 출력1) 목표: Atmega 128a의 PORTD 8개의 LED를 연결 한 뒤, 0번째 비트에서 7번째 비트까지 Shift하면서 출력2) 환경: Microchip Studio 3) Source code#define F_CPU 16000000UL#include #include #define TIME 150int main(void) { // PORTD의 8핀을 출력으로 설정 // PORTD = 1111 1111 DDRD = 0xff; while(1) { for(int i=0; i※ 0번째 핀에서 부터 시작하여 7번째 핀까지 150ms 주기로 Left Shift하면서 출력※ PORTD1은 define 전처리기를 통해 1로 정의 (자세한 내..