ÀÌ Ã¥Àº ATmega128À» ÅëÇÏ¿© MCU¿¡ ´ëÇÑ ÀÌÇØ¿Í ´Ù¾çÇÑ ÀÔÃâ·Â ÀÎÅÍÆäÀ̽º¸¦ È°¿ëÇÏ´Â ¹æ¹ýÀ» ½Ç½ÀÇØ º½À¸·Î½á MCU ±âº»±³À°¿¡ Ãæ½ÇÇÏ¿´°í, Â÷ÈÄ ÀÚµ¿ÈÁ¦¾î±âÀÇ °³¹ß°ú °í¼º´É MCU¸¦ ÀÌÇØÇϴµ¥ µµ¿òÀ» ÁÖ°íÀÚ ³ë·ÂÇÏ¿´´Ù.
½Ç½ÀÀ» À§ÇÑ Á¦¾îÀåÄ¡´Â ±âº»ÀûÀΠȸ·Î¸¸À» PCB·Î Á¦ÀÛÇÏ°í, ´ëºÎºÐÀÇ ÀÎÅÍÆäÀ̽º ȸ·Î´Â ºê·¹µåº¸µå¿¡ Á¦ÀÛÇÏ°Ô ÇÏ¿© ȸ·ÎÀÇ ÀÌÇØ¿Í Á¦ÀÛ´É·ÂÀ» Çâ»ó½ÃÅ°°í, »õ·Î¿î ÀÎÅÍÆäÀ̽º °³¹ß¿¡µµ ÀÌ¿ëÇÒ ¼ö ÀÖµµ·Ï ÇÏ¿´´Ù.
¸ñÂ÷
Chapter 01 ATmega128ÀÇ ÀÌÇØ
1.1 ¸¶ÀÌÅ©·ÎÇÁ·Î¼¼¼¿Í ¸¶ÀÌÅ©·ÎÄÁÆ®·Ñ·¯
1.2 AVRÀÇ °³¿ä
1.3 ATmega128ÀÇ Æ¯Â¡°ú ±¸Á¶
1.3.1 ATmega128ÀÇ Æ¯Â¡
1.3.2 ATmega128 ¿ÜºÎ ÇÉ(pin)
1.4 AVR CPU ÄÚ¾î
1.4.1 ALU(Arithmetic Logic Unit)
1.4.2 »óÅ ·¹Áö½ºÅÍ(SREG)
1.4.3 ¹ü¿ë ·¹Áö½ºÅÍ ÆÄÀÏ
1.4.4 X-·¹Áö½ºÅÍ, Y-·¹Áö½ºÅÍ, Z-·¹Áö½ºÅÍ
1.4.5 ½ºÅà Æ÷ÀÎÅÍ
1.5 ATmega128 ¸Þ¸ð¸®
1.5.1 Flash ¸Þ¸ð¸®(ÇÁ·Î±×·¥ ¸Þ¸ð¸®)
1.5.2 SRAM µ¥ÀÌÅÍ ¸Þ¸ð¸®
1.5.3 EEPROM µ¥ÀÌÅÍ ¸Þ¸ð¸®
Chapter 02 ATmega128 º¸µå
2.1 ATmega128 º¸µåÀÇ ±¸Á¶
2.1.1 Àü¿øºÎ
2.1.2 MCU ¸ðµâ ¼ÒÄÏ
2.1.3 RS-232 Åë½Å Æ÷Æ®
2.1.4 ¹®ÀÚ LCD
2.1.5 DC ¸ðÅÍÁ¦¾î
2.1.6 Áö±×ºñ Åë½Å
2.1.7 ¸±·¹ÀÌ Á¦¾îºÎ
2.1.8 ºê·¹µå º¸µå
2.1.9 µðÁöÅÐ I/O
2.1.10 ¸®¾óŸÀÓ Å¬·°
2.1.11 ATmega128 MCU ¸ðµâ
Chapter 03 CodeVisionAVR C
3.1 CodeVisionAVR C ¼³Ä¡
3.1.1 Demo ¹öÁ¯ ´Ù¿î ¹Þ±â
3.1.2 CodeVisionAVR C ¼³Ä¡Çϱâ
3.2 CodeVisionAVR C »ç¿ëÇϱâ
3.2.1 ÅëÇÕ°³¹ßȯ°æ ¼³Á¤Çϱâ
3.2.2 CodeVisionAVR C ÀÍÈ÷±â
3.3 ÇÁ·Î±×·¡¸Ó »ç¿ëÇϱâ
3.3.1 AVR910 ÇÁ·Î±×·¡¸Ó »ç¿ëÇϱâ
3.3.2 USBasp ÇÁ·Î±×·¡¸Ó »ç¿ëÇϱâ
3.3.3 AVR910À¸·Î Ç»Áî ºñÆ® ¼³Á¤Çϱâ
3.3.4 USBasp·Î Ç»Áî ºñÆ® ¼³Á¤Çϱâ
Chapter 04 µðÁöÅÐ ÀÔÃâ·Â Á¦¾î
4.1 ÀÔÃâ·Â Æ÷Æ®ÀÇ ÀÌÇØ
4.1.1 Æ÷Æ® ¼³Á¤
4.2 µðÁöÅÐ Ãâ·Â
4.2.1 LED Ãâ·Â
4.2.2 FND Ãâ·Â
4.2.3 ¿µ¹®ÀÚ ÆùÆ® Ãâ·Â
4.3 µðÁöÅÐ ÀÔ·Â
Chapter 05 LCD Á¦¾î
5.1 ¹®ÀÚ LCD Á¦¾î
5.1.1 LCD ¸ðµâÀÇ ÀÌÇØ
5.1.2 LCD Á¦¾î ÀÌÇØÇϱâ
5.1.3 CodeVision AVR LCD ±â´É
5.1.4 LCD ÇÔ¼öµé
5.2 ¹®ÀÚ LCD Ãâ·Â ½Ç½À
5.3 LCD¿¡ ¼ýÀÚº¯¼ö Ãâ·ÂÇϱâ
5.3.1 Ç¥ÁØ C Input/Ouput ÇÔ¼ö
Chapter 06 ÀÎÅÍ·´Æ® Á¦¾î
6.1 ÀÎÅÍ·´Æ®
6.1.1 ÀÎÅÍ·´Æ®¶õ?
6.1.2 ÀÎÅÍ·´Æ® º¤ÅÍ Å×À̺í
6.2 ¿ÜºÎ ÀÎÅÍ·´Æ®
6.2.1 EICRA(External Interrupt Control Register A)
6.2.2 EICRB(External Interrupt Control Register B)
6.2.3 EIMSK(External Interrupt Mask Register)
6.2.4 EIFR(External Interrupt Flag Register)
6.2.5 MCUCR(MCU Control Register)
6.3 Àü¿ø°ü¸®¿Í ½½¸³¸ðµå
6.3.1 ¾ÆÀÌµé ¸ðµå(Idle Mode)
6.3.2 ADC noise reduction mode
6.3.3 ÆÄ¿ö´Ù¿î ¸ðµå(Power Down Mode)
6.3.4 ÆÄ¿ö¼¼ÀÌºê ¸ðµå(Power Save Mode)
6.3.5 Standby mode
6.3.6 Extended Standby mode
6.4 ¿ÜºÎ ÀÎÅÍ·´Æ® ½Ç½À
6.4.1 ÀÎÅÍ·´Æ®¸¦ »ç¿ëÇÑ LED ½Ç½À
6.4.2 ÀÎÅÍ·´Æ® ÀÀ¿ë ½Ç½À
Chapter 07 ŸÀÌ¸Ó Ä«¿îÅÍ
7.1 ŸÀ̸Ó/Ä«¿îÅÍÀÇ °³¿ä
7.2 8ºñÆ® ŸÀ̸Ó/Ä«¿îÅÍ 0
7.2.1 ŸÀÌ¸Ó Ä«¿îÅÍ 0ÀÇ °³¿ä
7.2.2 ŸÀÌ¸Ó Ä«¿îÅÍ 0ÀÇ µ¿ÀÛ
7.3 ŸÀ̸Ó/Ä«¿îÅÍ 0ÀÇ ·¹Áö½ºÅÍ
7.3.1 TCCR0(Timer/Counter 0 Control Register)
7.3.2 TCNT0(Timer/Counter Register)
7.3.3 OCR0(Output Compare Register)
7.3.4 ASSR(Asynchronous Operation of Timer/Counter)
7.3.5 TIMSK(Timer/Counter Interrupt Mask Register)
7.3.6 TIFR(Timer/Counter Interrupt Flag Register)
7.3.7 Ư¼ö±â´É I/O ·¹Áö½ºÅÍ SFIOR
7.4 ŸÀ̸Ó/Ä«¿îÅÍ 0 ½Ç½À
7.4.1 ŸÀ̸Ó/Ä«¿îÅÍ 0À» ÀÌ¿ëÇÑ 1ÃÊ ¸¸µé±â
7.4.2 ŸÀ̸Ó/Ä«¿îÅÍ 0¸¦ ÀÌ¿ëÇÑ ½Ã°è ¸¸µé±â
7.5 16ºñÆ® ŸÀ̸Ó/Ä«¿îÅÍ1, 3
7.5.1 ŸÀÌ¸Ó Ä«¿îÅÍ 1°ú 3ÀÇ °³¿ä
7.5.2 ŸÀÌ¸Ó Ä«¿îÅÍ 1°ú 3ÀÇ µ¿ÀÛ
7.6 ŸÀ̸Ó/Ä«¿îÅÍ 1, 3ÀÇ ·¹Áö½ºÅÍ
7.6.1 TCCRnA(Timer/Counter1,3 Control Register A)
7.6.2 TCCRnB(Timer/Counter1,3 Control Register B)
7.6.3 TCCRnC(Timer/Counter1,3 Control Register C)
7.6.4 TCNTn(Timer/Counter1 Register)
7.6.5 OCRnx(T/C1,3 Output Compare Register A/B/C)
7.6.6 ICRn(Timer/Counter1,3 Input Capture Register)
7.6.7 TIMSK(Timer/Counter Interrupt Mask Register)
7.6.8 ETIMSK(Extended Timer/Counter Interrupt Mask Register)
7.6.9 TIFR(Timer/Counter Interrupt Flag Register)
7.6.10 ETIFR(Extended T/C Interrupt Flag Register)
7.7 ŸÀ̸Ó/Ä«¿îÅÍ 1°ú 3 ½Ç½À
7.8 8 ºñÆ® ŸÀ̸Ó/Ä«¿îÅÍ 2
7.8.1 ŸÀÌ¸Ó Ä«¿îÅÍ 2ÀÇ °³¿ä
7.8.2 ŸÀÌ¸Ó Ä«¿îÅÍ 2ÀÇ µ¿ÀÛ
7.9 ŸÀ̸Ó/Ä«¿îÅÍ 2ÀÇ ·¹Áö½ºÅÍ
7.9.1 TCCR2(Timer/Counter2 Control Register)
7.9.2 TCNT2(Timer/Counter Register)
7.9.3 OCR2(Output Compare Register)
7.9.4 TIMSK(Timer/Counter Interrupt Mask Register)
7.9.5 TIFR(Timer/Counter Interrupt Flag Register)
7.10 ŸÀ̸Ó/Ä«¿îÅÍ 2 ½Ç½À
Chapter 08 A/D º¯È¯
8.1 ¾Æ³¯·Î±× ºñ±³±â
8.1.1 SFIOR(Special Function IO Registor)
8.1.2 ACSR(Analog Comparator Control and Status Register)
8.1.3 ¾Æ³¯·Î±× ºñ±³±â ½Ç½À
8.2 A/D º¯È¯±â
8.2.1 ATmega128 A/D º¯È¯±âÀÇ Æ¯Â¡
8.3 A/D º¯È¯ °ü·Ã ·¹Áö½ºÅÍ
8.3.1 ADMUX(ADC Multiplexer Selection Register)
8.3.2 ADCSRA(ADC Control & Status Register A)
8.3.3 ADCH, ADCL(ADC Data Register)
8.4 A/D º¯È¯ ½Ç½À
8.4.1 1ä³Î A/D º¯È¯ ½Ç½À
8.4.2 µðÁöÅÐ Àü¾Ð°è
8.4.3 2ä³Î A/D º¯È¯ ½Ç½À
8.5 LM35¸¦ ÀÌ¿ëÇÑ µðÁöÅÐ ¿Âµµ°è
8.5.1 LM35 ¿Âµµ¼¾¼
8.5.2 LM35¸¦ ÀÌ¿ëÇÑ µðÁöÅÐ ¿Âµµ°è ½Ç½À
Chapter 09 Á÷·Ä Åë½Å
9.1 Á÷·Ä Åë½Å
9.1.1 Á÷·Ä Åë½ÅÀ̶õ
9.1.2 Á÷·Ä Åë½Å(RS-232) ÄÉÀ̺íÀÇ Á¦ÀÛ
9.1.3 RS232 Åë½Åȸ·Î
9.2 ATmega128 Á÷·ÄÅë½ÅÀÇ Æ¯Â¡
9.2.1 USARTÀÇ Æ¯Â¡
9.2.2 ÇÁ·¹ÀÓ Çü½Ä(Frame Format)
9.2.3 USART ·¹Áö½ºÅÍ
9.2.4 UDRn(USART I/O Data Register)
9.2.5 UCSRnA(USART Control&Status Register A)
9.2.6 UCSRnB(USART Control&Status Register B)
9.2.7 UCSRnC(USART Control&Status Register C)
9.2.8 UBRRH/UBRRL(USART Baud-Rate Register)
9.3 Á÷·Ä Åë½Å¿¡ »ç¿ëÇÏ´Â ÀÔÃâ·Â ÇÔ¼ö
9.3.1 stdio.hÀÇ Ç¥ÁØ ÀÔÃâ·Â ÇÔ¼ö
9.4 RS232 Åë½Å ½Ç½À
9.4.1 USART0 Åë½Å ½Ç½À
9.4.2 USART1 Åë½Å ½Ç½À
Chapter 10 ¸ðÅÍ Á¦¾î
10.1 DC¸ðÅÍ Á¦¾î
10.1.1 DC ¸ðÅÍÀÇ ÀÌÇØ
10.1.2 TRÀ» ÀÌ¿ëÇÑ DC ¸ðÅÍ ON/OFF Á¦¾î
10.1.3 TRÀ» ÀÌ¿ëÇÑ DC ¸ðÅÍÀÇ Á¤¿ªÁ¦¾î
10.1.4 L298 H-bridge ¸ðÅÍ µå¶óÀÌºê ¸ðµâ
10.1.5 BA6208 ¸ðÅÍ µå¶óÀ̺ê
10.2 RC¼º¸ ¸ðÅÍ
10.2.1 RC ¼º¸¸ðÅÍÀÇ ÀÌÇØ
10.2.2 RC ¼º¸¸ðÅÍ Á¦¾î½Ç½À
10.3 ½ºÅÜ ¸ðÅÍ
10.3.1 ½ºÅÜ ¸ðÅÍÀÇ ÀÌÇØ
10.3.2 À¯´ÏÆú¶ó ½ºÅܸðÅÍ Á¦¾î
10.3.3 ½ºÅÜ ¸ðÅÍ Á¦¾î ½Ç½À
Chapter 11 ¼¾¼
11.1 ÃÊÀ½ÆÄ ¼¾¼
11.1.1 ¸Þ¾Æ¸®¿Í ÃÊÀ½ÆÄ
11.1.2 ÃÊÀ½ÆÄ ¼¾¼¸¦ ÀÌ¿ëÇÑ °Å¸®ÃøÁ¤
11.2 ±¤Àü°Å¸®¼¾¼
11.2.1 ±¤Àü°Å¸®¼¾¼ Á¦¾î
Chapter 12 ºí·çÅõ½º Åë½Å ½Ç½À
12.1 ºí·çÅõ½º(Bluetooth) ¶õ?
12.2 ºí·çÅõ½º ¸ðµâ
12.2.1 HC-06 ºí·çÅõ½º ¸ðµâ
12.2.2 ATmega128 º¸µå¿Í HC-06 ºí·çÅõ½º ¸ðµâ
12.2.3 USB-ºí·çÅõ½º ¾Æ´äÅÍ HC-06 ¸ðµâ
12.3 ºí·çÅõ½º Åë½Å ½Ç½À
12.3.1 ºí·çÅõ½º ¼³Á¤Çϱâ
12.3.2 ºí·çÅõ½º¿Í µ¥ÀÌÅÍ Åë½Å
12.3.3 ºí·çÅõ½º Åë½Å ½Ç½À
12.3.4 ¾Æ³¯·Î±× µ¥ÀÌÅÍ Àü¼ÛÇϱâ
12.4 ºí·çÅõ½º ¸ðµâ°£ÀÇ µ¥ÀÌÅÍ Åë½Å
12.4.1 ºí·çÅõ½º ¸ðµâ ¼³Á¤
12.4.2 ºí·çÅõ½º ¸ðµâ°£ÀÇ µ¥ÀÌÅÍ Àü¼Û ½Ç½À
12.4.3 PC¿Í ATmega128 º¸µå °£ÀÇ Åë½Å ½Ç½À
12.5 ºí·çÅõ½º ¿ø°ÝÁ¦¾î ·Îº¿
12.5.1 ·Îº¿ ¸öü Á¦ÀÛ
12.5.2 ·Îº¿ Á¦¾îȸ·Î Á¦ÀÛ
12.5.3 Á¶Á¾±â ¾Û(APP)ÀÇ ÀÌÇØ
12.5.4 ·Îº¿ Á¦¾î ÇÁ·Î±×·¡¹Ö ½Ç½À