{"id":2218,"date":"2008-08-23T02:36:48","date_gmt":"2008-08-23T02:36:48","guid":{"rendered":"http:\/\/192.168.0.71:9090\/?p=1771"},"modified":"2008-08-23T02:36:48","modified_gmt":"2008-08-23T02:36:48","slug":"avr%eb%a1%9c-%eb%a7%8c%eb%93%a4%ec%96%b4%ec%84%9c-%ec%9d%b4%ed%95%b4%ed%95%98%eb%8a%94-cpu","status":"publish","type":"post","link":"https:\/\/talsu.net\/?p=2218","title":{"rendered":"ATmega162"},"content":{"rendered":"<p style=\"text-align: center\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:16pt\"><strong>AVR\ub85c \ub9cc\ub4e4\uc5b4\uc11c \uc774\ud574\ud558\ub294 CPU<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#c00000; font-family:\ub9d1\uc740 \uace0\ub515; font-size:16pt\"><strong>Atmega162 (DIP Type)<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: center\"><img src=\"http:\/\/temp.talsu.net\/wp-content\/uploads\/2008\/08\/hk0.png\" alt=\"\"\/>\n\t<\/p>\n<p style=\"text-align: center\">ATmega162\uc758 \ud540 \uad6c\uc870\n<\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#0070c0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:14pt\"><strong>\ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uc124\uba85<br \/>\n<\/strong><\/span><\/p>\n<p>  ATmega162 \ud504\ub85c\uadf8\ub7a8\uc744 \uc124\uacc4\ub97c \ud560 \ub54c <span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>io.h<\/em><\/strong><\/span> \ud5e4\ub354\ud30c\uc77c\uc744 include \ud558\uac8c \ub41c\ub2e4.\n<\/p>\n<p><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>io.h<\/em><\/strong><\/span> \ud5e4\ub354\ud30c\uc77c \uc548\uc5d0\ub294 \uc544\ub798\uc640 \uac19\uc740 \ubd80\ubd84\uc774 \uc788\ub2e4.\n<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Ex)<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>#elif defined (__AVR_ATmega162__)<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em># include &lt;avr\/iom162.h&gt;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p>\uc989, \ucef4\ud30c\uc77c\ub7ec\uc5d0\uc11c ATmega162\uc5d0 \ub9de\uac8c \ucef4\ud30c\uc77c \ud558\ub3c4\ub85d \uc124\uc815\ud558\uba74 <span style=\"font-family:\ub9d1\uc740 \uace0\ub515\"><span style=\"font-size:10pt\"><strong><em>iom162.h<\/em><\/strong><\/span>\ub77c\ub294<\/span> \ub610 \ub2e4\ub978 \ud5e4\ub354\ud30c\uc77c\uc744 include \ud558\uac8c \ub418\uc5b4 \uc788\ub2e4.\n<\/p>\n<p>  \uadf8\ub9ac\uace0 \uadf8 <span style=\"font-family:\ub9d1\uc740 \uace0\ub515\"><span style=\"font-size:10pt\"><strong><em>iom162.h<\/em><\/strong><\/span>\ub77c\ub294<\/span> \ud5e4\ub354 \ud30c\uc77c \uc548\uc5d0\ub294 \ub808\uc9c0\uc2a4\ud130 \uc774\ub984\ub4e4\uc774 \uc788\ub294\ub370 \uc774 \ub808\uc9c0\uc2a4\ud130\ub4e4\uc740 \uc544\ub798\uc640 \uac19\uc774 ATmega162\uc758 \uba54\ubaa8\ub9ac \uc8fc\uc18c\uc5d0 \ub9de\uac8c \uc5f0\uacb0 \ub418\uc5b4 \uc788\ub2e4.\n<\/p>\n<p><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Ex) #define PORTD _SER _IO8(0x12)<\/em><\/strong><\/span><br \/>\n\t\t<span style=\"color:#339933; font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong>\/\/PORTD \ub77c\ub294 \ubcc0\uc218\ub97c \ubc88\uc9c0\uc218\uc640 \uc5f0\uacb0 \uc2dc\ucf1c \ub193\uc558\ub2e4.<\/strong><\/span>\n\t<\/p>\n<p>(\uc774\uc81c\ubd80\ud130 PORTD\ub97c \uc870\uc791\ud558\uba74 \uc9c0\uc815\ub41c \ubd80\ubd84\uc744 \uc870\uc791 \ud560 \uc218 \uc788\ub2e4.)\n<\/p>\n<p>\n\u00a0<\/p>\n<p>  \uadf8\ub7ec\ubbc0\ub85c iom162.h\ub77c\ub294 \ud5e4\ub354\ud30c\uc77c\uc744 \ubd88\ub7ec \uc634\uc73c\ub85c\uc368 \uc9c1\uc811 \uba54\ubaa8\ub9ac \uc8fc\uc18c\ub97c \ucc3e\uc544\uac00\uba70 \ub808\uc9c0\uc2a4\ud130\ub4e4\uc744 \uc124\uc815\ud558\ub294 \uc218\uace0\ub97c \ub35c\uc5b4\uc8fc\ub294 \uac83\uc774\ub2e4.\n<\/p>\n<p>\n\u00a0<\/p>\n<p>\uc774\uc81c \uc790\uc8fc \uc0ac\uc6a9\ud558\uac8c \ub418\ub294 \uba87 \uac00\uc9c0 \ub808\uc9c0\uc2a4\ud130 \ub4e4\uc744 \uc0b4\ud3b4 \ubcf4\uc790\n<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>DDR(@) \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p>\u00a0\u00a0\u00a0\u00a0@\ub294 A, B, C, D \uc911 \ud558\ub098.\n<\/p>\n<p>DDR(@) \ub294 PORT(@)\uc758 \uc785, \ucd9c\ub825 \ubaa8\ub4dc\ub97c \uacb0\uc815\ud55c\ub2e4.\n<\/p>\n<p>8\uac1c\uc758 \ud3ec\ud2b8\ub97c 8\ube44\ud2b8 \ub370\uc774\ud130\ub85c \uc124\uc815\ud558\uba70 1\uc774\uba74 \ucd9c\ub825 0\uc774\uba74 \uc785\ub825\uc774\ub2e4. (\ub0b4\ub9bc\ucc28\uc21c)\n<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0<span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Ex) DDRD = 0xFF<\/em><\/strong><\/span><br \/>\n\t\t<span style=\"color:#339933; font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong>\/\/ PORTD\uc758 \ubaa8\ub4e0 \ud3ec\ud2b8\ub97c \ucd9c\ub825\uc73c\ub85c \uc0ac\uc6a9<br \/>\n<\/strong><\/span><\/p>\n<p>\ubb3c\ub860 2\uc9c4\uc218\ub85c \uc9c1\uc811 \uc785\ub825 \ud574\uc904 \uc218\ub3c4 \uc788\ub2e4.\n<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0<span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Ex) DDRD = 0b00111111<\/em><\/strong><\/span><br \/>\n\t\t<span style=\"color:#339933; font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong>\/\/PORTD7, PORTD6\ub9cc \uc785\ub825 \ubaa8\ub4dc \ub098\uba38\uc9c0\ub294 \ucd9c\ub825 \ubaa8\ub4dc\ub85c \uc774\uc6a9<\/strong><\/span>\n\t<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>PORT(@) \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p>  PORT(@)\uc5d0 \ud574\ub2f9\ud558\ub294 \uc2e4\uc9c8\uc801\uc778 \uc2e0\ud638\ub97c \ub2e4\ub8ec\ub2e4.\n<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>TCCR0 \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p>  \ud0c0\uc774\uba38 \uc81c\uc5b4 \ub808\uc9c0\uc2a4\ud130\ub85c\uc368 \ub2e4\ub984\uacfc \uac19\uc740 \uad6c\uc870\ub85c \ub418\uc5b4 \uc788\uace0 \uc5ed\uc2dc 8\ube44\ud2b8\ub85c \uc14b\ud305\ud55c\ub2e4.\n<\/p>\n<div style=\"text-align: center\">\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:53px\"\/>\n<col style=\"width:57px\"\/>\n<col style=\"width:53px\"\/>\n<col style=\"width:53px\"\/>\n<col style=\"width:57px\"\/>\n<col style=\"width:53px\"\/>\n<col style=\"width:53px\"\/>\n<col style=\"width:53px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 23px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>FOC0<\/strong><\/p>\n<\/td>\n<td style=\"background: #c00000; padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>WGM0<\/strong><\/span><\/p>\n<\/td>\n<td style=\"background: #4bacc6; padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>COM1<\/strong><\/span><\/p>\n<\/td>\n<td style=\"background: #4bacc6; padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>COM0<\/strong><\/span><\/p>\n<\/td>\n<td style=\"background: #c00000; padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>WGM1<\/strong><\/span><\/p>\n<\/td>\n<td style=\"background: #9bbb59; padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>CS2<\/strong><\/span><\/p>\n<\/td>\n<td style=\"background: #9bbb59; padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>CS1<\/strong><\/span><\/p>\n<\/td>\n<td style=\"background: #9bbb59; padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>CS0<\/strong><\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<ol style=\"margin-left: 40pt\">\n<li>\n<div style=\"text-align: justify\"><strong>FOC<\/strong> : Normal\uacfc CTC\ubaa8\ub4dc\uc5d0\uc11c \uc774 \ube44\ud2b8\uac00 1\ub85c \uc14b\ud305 \ub418\ub294 \uc21c\uac04 OC0\uc5d0 \ucd9c\ub825\uac12\uc774 \ub098\uc624\uac8c \ud558\ub294 \uac83\uc73c\ub85c \uadf8\ub2e4\uc9c0 \ub9ce\uc774 \uc0ac\uc6a9 \ub418\uc9c0 \uc54a\ub294\ub2e4.\n<\/div>\n<\/li>\n<li>\n<div style=\"text-align: justify\"><strong>WGM0, WGM1<\/strong> : \ud0c0\uc774\uba38\uc758 \ub3d9\uc791 \ubaa8\ub4dc\ub97c \uacb0\uc815\ud558\ub294 \ube44\ud2b8\ub85c\uc368 4\uac00\uc9c0 \ubaa8\ub4dc\ub97c \uc120\ud0dd \ud55c\ub2e4.\n<\/div>\n<\/li>\n<\/ol>\n<div style=\"text-align: center\">\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:85px\"\/>\n<col style=\"width:86px\"\/>\n<col style=\"width:86px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 24px; background: #c0504d\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #c0504d 1.0pt; border-left:  solid #c0504d 1.0pt; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>WGM0<\/strong><\/span><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #c0504d 1.0pt; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>WGM1<\/strong><\/span><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #c0504d 1.0pt; border-bottom:  solid #c0504d 1.0pt; border-right:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>MODE<\/strong><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #c0504d 1.0pt; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #c0504d 1.0pt; border-right:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\">Normal<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 23px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left:  solid #c0504d 1.0pt; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #c0504d 1.0pt; border-right:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\">PWM<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #c0504d 1.0pt; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #c0504d 1.0pt; border-right:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\">CTC<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left:  solid #c0504d 1.0pt; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #c0504d 1.0pt; border-right:  solid #c0504d 1.0pt\">\n<p style=\"text-align: center\">Fast PWM<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p style=\"margin-left: 36pt\"><strong>Normal \ubaa8\ub4dc<\/strong> : 0\uc5d0\uc11c 255\uae4c\uc9c0 \ub3c4\ub2ec\ud558\uac8c \ub418\uba74 \uc778\ud130\ub7fd\ud2b8\ub97c \ubc1c\uc0dd\ud558\uace0 \ub2e4\uc2dc 0\uc73c\ub85c \ub3cc\uc544\uac00\ub294 \ubaa8\ub4dc\ub85c \ucd08\uae30 \uac12\uc744 \uc870\uc808 \ud558\uc5ec \uc8fc\uae30\ub97c \ub354 \uc9e7\uac8c \ub9cc\ub4e4 \uc218 \uc788\ub2e4.\n<\/p>\n<p style=\"margin-left: 36pt\">\n\u00a0<\/p>\n<p style=\"margin-left: 36pt\"><strong>CTC \ubaa8\ub4dc<\/strong> : 0\uc5d0\uc11c \ud504\ub85c\uadf8\ub798\uba38\uac00 \uc14b\ud305\ud574 \ub454 \uac12\uc5d0 \ub3c4\ub2ec\ud558\uba74 \uc778\ud130\ub7fd\ud2b8\ub97c \ubc1c\ud589 \uc2dc\ud0a4\uace0 \ub2e4\uc2dc 0\uc73c\ub85c \ub3cc\uc544\uac00\ub294 \ubaa8\ub4dc\n<\/p>\n<p style=\"margin-left: 36pt\">\n\u00a0<\/p>\n<p style=\"margin-left: 36pt\"><strong>PWM \ubaa8\ub4dc<\/strong> : \ub514\uc9c0\ud138\uc801\uc73c\ub85c \uc544\ub0a0\ub85c\uadf8\ub97c \uc81c\uc5b4\ud558\ub294 \ubc29\ubc95 (\uc804\uad6c\uc758 \ubc1d\uae30, \ubaa8\ud130\uc758 \uc18d\ub3c4..)\n<\/p>\n<p style=\"margin-left: 36pt\">\n\u00a0<\/p>\n<ol style=\"margin-left: 40pt\">\n<li>\n<div style=\"text-align: justify\"><strong>COM1, COM0<\/strong> : OC0 \ud540\uc758 \uae30\ub2a5\uc744 \uc815\ud55c\ub2e4.\n<\/div>\n<\/li>\n<\/ol>\n<div style=\"text-align: center\">\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:73px\"\/>\n<col style=\"width:76px\"\/>\n<col style=\"width:246px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 24px; background: #4bacc6\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #4bacc6 1.0pt; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>COM1<\/strong><\/span><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>COM0<\/strong><\/span><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>MODE<\/strong><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 20px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 1.0pt\">\n<p>\ubc94\uc6a9 I\/O \ud3ec\ud2b8\ub85c \ub3d9\uc791(OC0 \ud540 \ucc28\ub2e8)<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 1.0pt\">\n<p>OC0 \ud540 \ucd9c\ub825 \ud1a0\uae00<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 1.0pt\">\n<p>OC0 \ud540 \ucd9c\ub825\uc744 0\uc73c\ub85c \ud074\ub9ac\uc5b4<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-left:  solid #4bacc6 1.0pt; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #4bacc6 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #4bacc6 1.0pt; border-right:  solid #4bacc6 1.0pt\">\n<p>OC0 \ud540 \ucd9c\ub825\uc744 1\ub85c \uc124\uc815<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\n\u00a0<\/p>\n<ol style=\"margin-left: 40pt\">\n<li>\n<div style=\"text-align: justify\"><strong>CS0, CS1, CS2<\/strong> : \ud074\ub7ed\uc758 \ubd84\uc8fc\ub97c \uc124\uc815\ud55c\ub2e4. CPU\uc5d0 \uc0ac\uc6a9\ud55c \ud06c\ub9ac\uc2a4\ud0c8\uc758 \uc8fc\ud30c\uc218\ub97c \uc5bc\ub9c8\ub9cc\ud07c \ubd84\uc8fc \ud560 \uac83\uc778\uc9c0 \uc124\uc815\ud55c\ub2e4.\n<\/div>\n<\/li>\n<\/ol>\n<div style=\"text-align: center\">\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:66px\"\/>\n<col style=\"width:66px\"\/>\n<col style=\"width:66px\"\/>\n<col style=\"width:235px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"background: #9bbb59\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #9bbb59 1.0pt; border-left:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>CS2<\/strong><\/span><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>CS1<\/strong><\/span><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>CS0<\/strong><\/span><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt; border-right:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>\uae30\ub2a5<\/strong><\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt; border-right:  solid #9bbb59 1.0pt\">\n<p>\ud074\ub7ed \uc785\ub825 \ucc28\ub2e8(\ud0c0\uc774\uba38 \uc0ac\uc6a9 \uc548\ud568)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt; border-right:  solid #9bbb59 1.0pt\">\n<p>\uc2dc\uc2a4\ud15c\ud074\ub7ed \/ 1<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt; border-right:  solid #9bbb59 1.0pt\">\n<p>\uc2dc\uc2a4\ud15c\ud074\ub7ed \/ 8<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt; border-right:  solid #9bbb59 1.0pt\">\n<p>\uc2dc\uc2a4\ud15c\ud074\ub7ed \/ 64<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt; border-right:  solid #9bbb59 1.0pt\">\n<p>\uc2dc\uc2a4\ud15c\ud074\ub7ed \/ 256<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt; border-right:  solid #9bbb59 1.0pt\">\n<p>\uc2dc\uc2a4\ud15c\ud074\ub7ed \/ 1024<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-bottom:  solid #9bbb59 1.0pt; border-right:  solid #9bbb59 1.0pt\">\n<p>\uc678\ubd80 \uc785\ub825 \ud074\ub7ed \ud558\uac15 \uc5e3\uc9c0<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td style=\"padding-left: 7px; padding-right: 7px; border-left:  solid #9bbb59 1.0pt; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-bottom:  solid #9bbb59 1.0pt; border-right:  solid #9bbb59 1.0pt\">\n<p>\uc678\ubd80 \uc785\ub825 \ud074\ub7ed \uc0c1\uc2b9 \uc5e3\uc9c0<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>OCR0 \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p> \ubd84\uc8fc\ub41c \ud074\ub7ed\uc774 \uba87 \ubc88 \ubc1c\uc0dd\ud55c \ud6c4 \uc778\ud130\ub7fd\ud2b8\ub97c \ubc1c\uc0dd\ud558\uac8c \ud558\ub294\uc9c0\ub97c \uc124\uc815\ud558\ub294 \ub808\uc9c0\uc2a4\ud130\n<\/p>\n<p><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Ex) OCR0 = 125;\u00a0\u00a0\u00a0\u00a0  \u00a0\u00a0\u00a0\u00a0<\/em><span style=\"color:#339933\">\/\/ \ud074\ub7ed\uc774 125\ubc88 \ubc1c\uc0dd\ud558\uba74 \uc778\ud130\ub7fd\ud2b8\ub97c \ubc1c\uc0dd\ud55c\ub2e4.<br \/>\n<\/span><\/strong><\/span><\/p>\n<p>(\uacb0\uad6d \ubd84\uc8fc\uc758 \uae30\ub2a5\uc744 \uac00\uc9c0\uace0 \uc788\uc74c)\n<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>TCNT0 \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p>  TCNT0 \ub808\uc9c0\uc2a4\ud130\ub294 \ud504\ub85c\uadf8\ub7a8\uc774 \uc2e4\ud589\ub418\ub294 \ub3d9\uc548 \ubd84\uc8fc\ub41c \ud074\ub7ed\uc758 \uc8fc\uae30\ub85c 0\uc5d0\uc11c \ubd80\ud130 \uba87 \ubc88\uc9f8 \uc8fc\uae30\uac00 \ubc1c\ud589 \ud588\ub294\uc9c0 \ub098\ud0c0\ub0b8\ub2e4. \uc774 \ub808\uc9c0\uc2a4\ud130\ub294 \uc4f8 \uc218\ub3c4 \uc788\uace0 \uc77d\uc744 \uc218\ub3c4 \uc788\ub2e4. \uac12\uc744 \uc4f0\uba74 \uc8fc\uae30\ub97c \ub354 \ube60\ub974\uac8c \ud560 \uc218 \uc788\ub2e4. \ub808\uc9c0\uc2a4\ud130\uc758 \uac12\uc740 \uc778\ud130\ub7fd\ud2b8\uac00 \uac78\ub9ac\uba74 \uc790\ub3d9\uc73c\ub85c 0\uc73c\ub85c \ud074\ub9ac\uc5b4 \ub418\uace0 \ub2e4\uc2dc \ubd84\uc8fc\ub41c \uc8fc\uae30\ub9c8\ub2e4 \ud55c \uac1c\uc529 \uac12\uc774 \ub298\uc5b4\ub09c\ub2e4.\n<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>TIMSK \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<div style=\"text-align: center\">\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:52px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:63px\"\/>\n<col style=\"width:54px\"\/>\n<col style=\"width:51px\"\/>\n<col style=\"width:52px\"\/>\n<col style=\"width:52px\"\/>\n<col style=\"width:54px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>TOIE1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>OCIE1A<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>OCIE1B<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>OCIE2<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>TICE1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>TOIE2<\/strong><\/p>\n<\/td>\n<td style=\"background: #c00000; padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>TOIE0<\/strong><\/p>\n<\/td>\n<td style=\"background: #c00000; padding-left: 7px; padding-right: 7px; border-top:  solid black 0.5pt; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>OCIE0<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\n\u00a0<\/p>\n<p>\n\t\t<strong>TOIE0(Timer0 Overflow Interrupt Enable)<\/strong> \ube44\ud2b8\ub97c 1\ub85c \uc14b\ud305\ud558\uace0 \uc2dc\uc2a4\ud15c \uc778\ud130\ub7fd\ud2b8\ub97c \uc778\uc5d0\uc774\ube14 \ud558\uba74 Normal\ubaa8\ub4dc\uc758 \ud0c0\uc774\uba38 \uc778\ud130\ub7fd\ud2b8\uac00 \uc791\ub3d9.\n<\/p>\n<p>\n\t\t<strong>OCIE0(Timer0 Output Compare Match Interrupt Enable)<\/strong> \ube44\ud2b8\ub97c 1\ub85c \uc14b\ud305\ud558\uace0 \uc2dc\uc2a4\ud15c \uc778\ud130\ub7fd\ud2b8\ub97c \uc778\uc5d0\uc774\ube14 \ud558\uba74 CTC\ubaa8\ub4dc\uc758 \ud0c0\uc774\uba38 \uc778\ud130\ub7fd\ud2b8\uac00 \uc791\ub3d9.\n<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>\uc0ac\uc6a9 \ud568\uc218<br \/>\n<\/strong><\/span><\/p>\n<p><strong>sei( )<\/strong> : \uc778\ud130\ub7fd\ud2b8\ub97c \uc778\uc5d0\uc774\ube14 \uc2dc\ud0a4\ub294 \ud568\uc218\n<\/p>\n<p><strong>sli( )<\/strong> : sei\uc758 \ubc18\ub300 \ub418\ub294 \uac83\uc73c\ub85c \uc2dc\uc2a4\ud15c \uc778\ud130\ub7fd\ud2b8\ub97c \ub514\uc2a4\uc5d0\uc774\ube14 \uc2dc\ud0a8\ub2e4.\n<\/p>\n<p><strong>SIGNAL( )<\/strong> : \uc778\ud130\ub7fd\ud2b8\uac00 \ubc1c\uc0dd \ud588\uc744 \ub54c \uc774 \ud568\uc218\ub85c \uc810\ud504\ud55c\ub2e4.\n<\/p>\n<p><strong>SIG_OUTPUT_COMPARE0<\/strong> : \ub0b4\ubd80, \uc678\ubd80 \uad00\uacc4 \uc5c6\uc774 \uc778\ud130\ub7fd\ud2b8\uac00 \ubc1c\uc0dd\ud558\uba74 \ud574\ub2f9 \ubc88\ud638\uc5d0 \ub530\ub978 \ubc88\uc9c0\ub85c \uc810\ud504\ud558\uac8c \ub41c\ub2e4.\n<\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#0070c0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:14pt\"><strong>AVR CPU\ub85c FND(7segment)\ub97c \uc81c\uc5b4\ud558\uae30<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: center\"><img src=\"http:\/\/temp.talsu.net\/wp-content\/uploads\/2008\/08\/hk1.png\" alt=\"\"\/>\n\t<\/p>\n<p>\ubaa8\ub4c8 \ud558\ub098\uc5d0\ub294 7\uac1c\uc758 \uc2e0\ud638\ub97c \ud45c\ud604\ud560 \uc218 \uc788\ub294 led\uac00 \uc788\ub2e4.\n<\/p>\n<p>(FND507 \ubaa8\ub4c8\uc5d0\ub294 dot\uac00 \uc5c6\uc74c)\n<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Signal(sig_output_compare0) \u00a0\u00a0\u00a0\u00a0 <\/em><\/strong><span style=\"color:#339933\">\/\/\uc778\ud130\ub7fd\ud2b8\uc5d0 \ubc18\uc751\ud558\ub294 \ud568\uc218<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>  {<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>  If (timer_count == 125)\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/125\uac00 \ub418\uba74<\/span><strong><br \/>\n\t\t\t\t<em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>  {<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>    \u00a0\u00a0\u00a0\u00a0  PORTD = count;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/PORTD \uc5d0 count\uac12\uc744 \uc804\ub2ec<\/span><strong><br \/>\n\t\t\t\t<em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0  timer_count = 0;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ucd08\uae30\ud654 \uc2dc\ud0b4(125\uae4c\uc9c0 \uc13c\ub2e4)<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0  count++;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/count\ub97c \uc99d\uac00 \uc2dc\ud0b4<\/span><strong><br \/>\n\t\t\t\t<em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0if(count == 10)\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/count\ub294 10\uc774 \ub418\uba74 \ucd08\uae30\ud654<strong><br \/>\n\t\t\t\t<\/strong><\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0cout = 0;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>  }<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>timer_count++;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\uc778\ud130\ub7fd\ud2b8\uc5d0 \uc758\ud574 \uce74\uc6b4\ud2b8\uac00 \ub41c\ub2e4<strong>.<\/strong><\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Int main( void )<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>{\u00a0\u00a0\u00a0\u00a0timer_count = 0;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\uc804\uc5ed \ubcc0\uc218\ub85c \uc120\uc5b8\ub418\uc5c8\uace0 \uc55e\uc5d0\uc11c \uce74\uc6b4\ud2b8<\/span><strong><br \/>\n\t\t\t\t<em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0DDRD = 0xFF;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/PORTD\ub97c \ucd9c\ub825  \ubaa8\ub4dc\ub85c \uc4f0\uaca0\ub2e4!<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0PORTD = 0X00;<\/em><span style=\"color:#339933\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><\/strong>\/\/8<span style=\"color:#339933\">\uac1c\uc758 \ud540 \ubaa8\ub4dc 0\uc758 \uac12\uc744 \ucd9c\ub825 \uc2dc\ud0a4\uaca0\ub2e4<strong><br \/>\n\t\t\t\t<\/strong><\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0cli( );\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\uc2dc\uc2a4\ud15c \uc778\ud130\ub7fd\ud2b8\ub97c \uaebc\ub193\uace0 \uc544\ub798\uc758 \uc14b\ud305<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0TCCR0 = 0x0D;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/00001101<strong><br \/>\n\t\t\t\t<\/strong><\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"color:#339933; font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/com1,com0=0,0\ubc94\uc6a9 I\/O\ud3ec\ud2b8 \ub3d9\uc791<br \/>\n<\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"color:#339933; font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/WGM0,WGM1=0,1 \ud0c0\uc774\uba38 \ubaa8\ub4dc CTC<br \/>\n<\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"color:#339933; font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\/\/CS2,1,0  = 1,0,1 \u2013 \uc2dc\uc2a4\ud15c \ud074\ub7ed 1024 \ubd84\uc8fc<br \/>\n<\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0OCR0 = 125; \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ucd9c\ub825 \ube44\uad50 \ub808\uc9c0\uc2a4\ud130 (\ud074\ub7ed 125\ubc88 \ubc1c\uc0dd\ud6c4 \uc778\ud130\ub7fd\ud2b8)<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0TCNT0 = 0x00;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/0\uc73c\ub85c \ub9ac\uc14b \ud574\ub454\ub2e4<strong>.<\/strong><\/span><strong><br \/>\n\t\t\t\t<em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0TIMSK = 0x01;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/CTC\ubaa8\ub4dc\uc758 \ud0c0\uc774\uba38 \uc778\ud130\ub7fd\ud2b8\ub97c \uc791\ub3d9 \uc2dc\ud0a8\ub2e4<strong>.<br \/>\n<\/strong><\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0sei( );\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\uc778\ud130\ub7fd\ud2b8\ub97c \uc778\uc5d0\uc774\ube14 \uc2dc\ud0a8\ub2e4<\/span><em>.<strong><br \/>\n\t\t\t\t<\/strong><\/em><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while(1);<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0return 1;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p>\uc2dc\uc2a4\ud15c \ud074\ub7ed 16Mhz   &#8212; 1\/16M  x 1024 x 125 x 125 = 1s\n<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0count \ubcc0\uc218\ub294 1\ucd08\ub9c8\ub2e4 10\uae4c\uc9c0 \uce74\uc6b4\ud2b8 \ub418\uace0 PORTD\uc5d0 \uac12\uc744 \uc804\ud55c\ub2e4.\n<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0<br \/>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#0070c0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:14pt\"><strong>\uc785\ub825 \ud68c\ub85c\uc758 \uc81c\uc791\uacfc \uc2e4\ud5d8<br \/>\n<\/strong><\/span><\/p>\n<p>PORTD \ub97c \uc774\uc6a9\ud574 \uc785\ub825\uc744 \ubc1b\ub294 \uc2e4\ud5d8\uc744 \ud55c\ub2e4.\n<\/p>\n<ul>\n<li>\n<div style=\"text-align: justify\">PORTD 0~5\uae4c\uc9c0\ub294 \ucd9c\ub825 \ubaa8\ub4dc\ub85c \ud558\uace0 6,7\uc740 \uc785\ub825 \ubaa8\ub4dc\ub85c \ud55c\ub2e4.\n<\/div>\n<\/li>\n<li>\n<div style=\"text-align: justify\">6,7 \uc774 1\uc77c\ub54c \ucd9c\ub825\uc744 \ubcf4\ub0b4(\uc2a4\uc704\uce58) led\ub97c \uc810\ub4f1 \ud55c\ub2e4.\n<\/div>\n<\/li>\n<li>\n<div style=\"text-align: justify\">Unsigned char switch_input = 0;\n<\/div>\n<\/li>\n<\/ul>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Int main(void){<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0DDRD = 0b00111111;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/PORTD \ub97c 7,6\uc740 \uc785\ub825 \ubaa8\ub4dc, \ub098\uba38\uc9c0\ub294 \ucd9c\ub825<strong><em><br \/>\n\t\t\t\t\t<\/em><\/strong><\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while (1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0{<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0switch_input = PIND;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\uc785\ub825 \ubc1b\ub294 \ubcc0\uc218<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0If (switch_input == 0b11000000)\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/7,6\uc774 1\uc774\uba74<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0PORTD = 1;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ucd9c\ub825 LED\uc810\ub4f1<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0else\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0PORTD = 0;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ucd9c\ub825 \uc548\ud568<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0return 1;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#0070c0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:14pt\"><strong>RS232 \uc2dc\ub9ac\uc5bc \ud1b5\uc2e0<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p style=\"margin-left: 18pt\">RS232\uc758 \ud1b5\uc2e0 \ubc29\uc2dd\n<\/p>\n<p style=\"margin-left: 18pt\">\n\u00a0<\/p>\n<p><img src=\"http:\/\/temp.talsu.net\/wp-content\/uploads\/2008\/08\/hk2.png\" alt=\"\"\/>\n\t<\/p>\n<p>\n\u00a0<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0\ub2e4\uc74c\uacfc \uac19\uc774 \uc124\uc815\ud55c\ub2e4.\n<\/p>\n<p style=\"text-align: center\"><img src=\"http:\/\/temp.talsu.net\/wp-content\/uploads\/2008\/08\/ik0.png\" alt=\"\"\/>\n\t<\/p>\n<p style=\"text-align: center\">\n\u00a0<\/p>\n<p>\ubcf4\ub808\uc774\ud2b8 9600 \ub370\uc774\ud130 \ube44\ud2b8\ub294 8\ube44\ud2b8 \ud328\ub9ac\ud2f0 \ube44\ud2b8 \uc0ac\uc6a9 \uc548 \ud568 STOP\ube44\ud2b8\ub294 1\ub85c \uc124\uc815\ud55c \ubaa8\uc2b5\n<\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>MAX 232<br \/>\n<\/strong><\/span><\/p>\n<p>PC\uc640 \ub9c8\uc774\ucef4 \uc2dc\ub9ac\uc5bc \ud1b5\uc2e0\uc5d0\ub294 MAX232 \ub77c\ub294 IC\uac00 \ud544\uc694 \ud558\ub2e4.\n<\/p>\n<p>\ub9c8\uc774\ucef4\uacfc \ucef4\ud4e8\ud130\uac00 \uc778\uc2dd\ud558\ub294 0\uacfc 1\uc758 \uac12\uc774 \ub2e4\ub974\uae30 \ub54c\ubb38\uc5d0..<\/p>\n<div style=\"text-align: center\">\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:75px\"\/>\n<col style=\"width:75px\"\/>\n<col style=\"width:75px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 21px; background: #c0504d\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid white 1.0pt; border-left:  solid white 1.0pt; border-bottom:  solid white 3.0pt; border-right:  solid white 1.0pt\">\u00a0<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid white 1.0pt; border-left:  none; border-bottom:  solid white 3.0pt; border-right:  solid white 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>\ub9c8\uc774\ucef4<\/strong><\/span><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  solid white 1.0pt; border-left:  none; border-bottom:  solid white 3.0pt; border-right:  solid white 1.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>\ucef4\ud4e8\ud130<\/strong><\/span><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 21px\">\n<td style=\"background: #c0504d; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid white 1.0pt; border-bottom:  solid white 0.75pt; border-right:  solid white 3.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>0<\/strong><\/span><\/p>\n<\/td>\n<td style=\"background: #dfa7a6; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid white 1.0pt; border-right:  solid white 1.0pt\">\n<p style=\"text-align: center\">0V<\/p>\n<\/td>\n<td style=\"background: #dfa7a6; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid white 1.0pt; border-right:  solid white 1.0pt\">\n<p style=\"text-align: center\">-10V<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 21px\">\n<td style=\"background: #c0504d; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid white 1.0pt; border-bottom:  solid white 1.0pt; border-right:  solid white 3.0pt\">\n<p style=\"text-align: center\"><span style=\"color:white\"><strong>1<\/strong><\/span><\/p>\n<\/td>\n<td style=\"background: #efd3d2; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid white 1.0pt; border-right:  solid white 0.75pt\">\n<p style=\"text-align: center\">5V<\/p>\n<\/td>\n<td style=\"background: #efd3d2; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid white 1.0pt; border-right:  solid white 1.0pt\">\n<p style=\"text-align: center\">10V<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\uc774 \ucc28\uc774\ub97c \ud574\uacb0\ud574\uc8fc\ub294 \uac83\uc774\ub2e4.\n<\/p>\n<p>IC \ub0b4\ubd80\uc5d0\ub294 VOLTAGE DOUBLER\uc640 VOLTAGE INVERTER\uac00 \uc788\ub2e4.\n<\/p>\n<p>DOUBLER\ub294 5V\ub97c 10V\ub85c \uc99d\ud3ed INVERTER\ub294 \uc99d\ud3ed\ub41c \uc2e0\ud638\ub97c \ubc18\uc804\n<\/p>\n<p>\ub0b4\ubd80\uc5d0 5V\ub97c \ucda9\uc804\ud588\ub2e4 10V\ub85c \ubcf4\ub0b4\uae30 \uc704\ud55c \ucf58\ub374\uc11c\uac00 \uc788\ub2e4.\n<\/p>\n<p>MAX232\ub294 \uc804\uc555\uc744 \ubc14\uafb8\uc5b4 \uc8fc\ub294 \uc5ed\ud560\ub9cc\uc744 \ud558\uba70 \ud1b5\uc2e0\uc744 \ud558\ub294\uac83\uc740 \uc544\ub2d8\uc5d0 \uc8fc\uc758!\n<\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#0070c0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:14pt\"><strong>\uc2dc\ub9ac\uc5bc \ud1b5\uc2e0\uc744 \uc704\ud55c \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p>ATmega162\uc5d0\ub294 \uc2dc\ub9ac\uc5bc \ud1b5\uc2e0\uc6a9 \ucee8\ud2b8\ub864\ub7ec\uac00 \ud3ec\ud568 \ub418\uc5b4 \uc788\ub2e4.\n<\/p>\n<p>CPU \ub0b4\ubd80\uc5d0\uc11c CPU\uc758 \ucf54\uc5b4 \ubd80\ubd84\uacfc \uc2dc\ub9ac\uc5bc \ud1b5\uc2e0\uc6a9 \ucee8\ud2b8\ub864\ub7ec\uac00 \ub370\uc774\ud130\ub97c \uc8fc\uace0 \ubc1b\uace0, \ucee8\ud2b8\ub864\ub7ec\ub294 RxD, TxD\uc758 \ud540\uc744 \ud1b5\ud574 \uc678\ubd80\uc640 \ud1b5\uc2e0\uc744 \ud558\uace0 \uc788\ub2e4.\n<\/p>\n<p>\uc2dc\ub9ac\uc5bc \ud1b5\uc2e0\uc744 \uc704\ud55c \ub808\uc9c0\uc2a4\ud130\uc5d0\ub294 \uc124\uc815\uc6a9 \ub808\uc9c0\uc2a4\ud130\uc640 \ub370\uc774\ud130 \ud1b5\uc2e0\uc6a9 \ub808\uc9c0\uc2a4\ud130\uac00 \uc788\uace0 \uc124\uc815\uc6a9 \ub808\uc9c0\uc2a4\ud130\ub97c \uc774\uc6a9\ud574 \uc124\uc815\uc744 \ud558\uace0 \ud1b5\uc2e0\uc6a9 \ub808\uc9c0\uc2a4\ud130\ub97c \uc774\uc6a9\ud574 \uc2e4\uc81c \ud1b5\uc2e0\uc744 \ud55c\ub2e4\n<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>UCSR \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p>UCSR\uc740 A,B,C\uc138 \uac1c\ub85c \uad6c\uc131 \ub418\uc5b4 \uc788\uace0, \uc0c1\ud0dc \uc124\uc815\uacfc \uc81c\uc5b4\uc758 \uae30\ub2a5\uc744 \ud55c\ub2e4.\n<\/p>\n<p>\n\u00a0<\/p>\n<p><span style=\"color:#4f81bd; font-size:12pt\"><strong><em>UCSRA<br \/>\n<\/em><\/strong><\/span><\/p>\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 23px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>7<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>6<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>5<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>4<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>3<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>2<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"background: #92cddc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>RXC<\/strong><\/p>\n<\/td>\n<td style=\"background: #92cddc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>TXC<\/strong><\/p>\n<\/td>\n<td style=\"background: #92cddc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UDRE<\/strong><\/p>\n<\/td>\n<td style=\"background: #92cddc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>FE<\/strong><\/p>\n<\/td>\n<td style=\"background: #92cddc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>DOR<\/strong><\/p>\n<\/td>\n<td style=\"background: #92cddc; padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>PE<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>U2X<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>MPCM<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>7. RXC : \uc218\uc2e0 \uc644\ub8cc \ud45c\uc2dc \ube44\ud2b8\n<\/p>\n<p>6. TXC : \uc1a1\uc2e0 \uc644\ub8cc \ud45c\uc2dc \ube44\ud2b8\n<\/p>\n<p>5. UDRE : \uc1a1\uc2e0 \ub370\uc774\ud130 \ub808\uc9c0\uc2a4\ud130 \uc900\ube44 \uc644\ub8cc \ud45c\uc2dc \ube44\ud2b8\n<\/p>\n<p>4. FE : \ud504\ub808\uc784 \uc5d0\ub7ec \ud45c\uc2dc \ube44\ud2b8\n<\/p>\n<p>3. DOR : \ub370\uc774\ud130 \uc624\ubc84\ub7f0 \uc5d0\ub7ec \ud45c\uc2dc \ube44\ud2b8\n<\/p>\n<p>2. PE : \ud328\ub9ac\ud2f0 \uc5d0\ub7ec \ud45c\uc2dc \ube44\ud2b8\n<\/p>\n<p>1. USX : \uc1a1\uc2e0 \uc18d\ub3c4 2\ubc30 \uc124\uc815\n<\/p>\n<p>0. MPCM : \uba40\ud2f0 \ud504\ub85c\uc138\uc11c \ud1b5\uc2e0 \ubaa8\ub4dc\n<\/p>\n<p>\u00a0\u00a0\u00a0\u00a0*1\ubc88\uacfc 0\ubc88\uc744 \uc124\uc815\ud558\uace0 \ub098\uba38\uc9c0\ub294 \uc77d\uae30 \uc804\uc6a9\uc774\ub2e4. (\uc0ac\uc6a9 \ud560 \ub54c 1 \uc544\ub2d0 \ub54c 0)\n<\/p>\n<p>\n\u00a0<\/p>\n<p><span style=\"color:#4f81bd; font-size:12pt\"><strong><em>UCSRB<br \/>\n<\/em><\/strong><\/span><\/p>\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 23px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>7<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>6<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>5<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>4<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>3<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>2<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>RXCIE<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>TXCIE<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UDRIE<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>RXEN<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>TXEN<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UCSZ2<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>RXB8<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>TXB8<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>7. RXCIE \uc218\uc2e0 \uc644\ub8cc \uc778\ud130\ub7fd\ud2b8 \uc778\uc5d0\uc774\ube14 \ube44\ud2b8\n<\/p>\n<p>6. TXCIE \uc1a1\uc2e0 \uc644\ub8cc \uc778\ud130\ub7fd\ud2b8 \uc778\uc5d0\uc774\ube14 \ube44\ud2b8\n<\/p>\n<p>5. UDRIE \uc1a1\uc2e0 \ub370\uc774\ud130 \ub808\uc9c0\uc2a4\ud130 \uc900\ube44 \uc644\ub8cc \uc778\ud130\ub7fd\ud2b8 \uc778\uc5d0\uc774\ube14 \ube44\ud2b8\n<\/p>\n<p>4. RXEN \uc218\uc2e0\uae30 \uc778\uc5d0\uc774\ube14\n<\/p>\n<p>3. TXEN \uc1a1\uc2e0\uae30 \uc778\uc5d0\uc774\ube14\n<\/p>\n<p>2. UCSZ2 \uc804\uc1a1 \ub370\uc774\ud130 \uae38\uc774 \uc120\ud0dd \ube44\ud2b8\n<\/p>\n<p>1. RXB8 \uc218\uc2e0 \ub370\uc774\ud130 \ube44\ud2b8 8\n<\/p>\n<p>0. TXB8 \uc1a1\uc2e0 \ub370\uc774\ud130 \ube44\ud2b8 8\n<\/p>\n<p>\n\u00a0<\/p>\n<p><span style=\"color:#4f81bd; font-size:12pt\"><strong><em>UCSRC<br \/>\n<\/em><\/strong><\/span><\/p>\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 23px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>7<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>6<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>5<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>4<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>3<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>2<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>URSEL<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UMSEL<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UPM1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UPM0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>USBS<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UCSZ1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UCSZ0<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UCPOL<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>7. UREL \ub808\uc9c0\uc2a4\ud130 \uc120\ud0dd \ube44\ud2b8\n<\/p>\n<p>6. UMSEL \uc2dc\ub9ac\uc5bc \ud1b5\uc2e0 \ubaa8\ub4dc \uc124\uc815 \ube44\ud2b8\n<\/p>\n<p>5. UPM1 \ud328\ub9ac\ud2f0 \ubaa8\ub4dc \uc124\uc815 \ube44\ud2b8\n<\/p>\n<p>4. UPM0 \ud328\ub9ac\ud2f0 \ubaa8\ub4dc \uc124\uc815 \ube44\ud2b8\n<\/p>\n<p>3. USBS \uc815\uc9c0 \ube44\ud2b8 \uc120\ud0dd\n<\/p>\n<p>2. UCSZ1 \uc804\uc1a1 \ub370\uc774\ud130 \ube44\ud2b8 \uc218 \uc124\uc815\n<\/p>\n<p>1. UCSZ0 \uc804\uc1a1 \ub370\uc774\ud130 \ube44\ud2b8 \uc218 \uc124\uc815\n<\/p>\n<p>0. UCPOL \ud074\ub7ed \uadf9\uc131 \uc120\ud0dd\n<\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>\ubcf4\ub808\uc774\ud2b8 \uc18d\ub3c4 \uc124\uc815 \uad00\ub828 \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p>\ubcf4\ub808\uc774\ud2b8 &#8211; \uc2e0\ud638 \ud558\ub098\uc758 \uc18d\ub3c4\n<\/p>\n<p>\ubcf4\ub808\uc774\ud2b8 \uc18d\ub3c4\ub97c \uc870\uc808 \ud558\ub294 \ub808\uc9c0\uc2a4\ud130\ub294 UBRRH\uc640 UBRRL 2\uac1c\ub85c \uc774\ub8e8\uc5b4\uc838 \uc788\ub2e4. UBRRH\uc758 4\ube44\ud2b8\uc640 UBRRL\uc758 8\ube44\ud2b8\ub97c \ud569\uce5c 12\ube44\ud2b8\ub97c \uc774\uc6a9\ud558\uc5ec \uc18d\ub3c4\ub97c \uc124\uc815\ud55c\ub2e4.\n<\/p>\n<p>\n\u00a0<\/p>\n<p><span style=\"color:#4f81bd; font-size:12pt\"><strong><em>UBBRH<br \/>\n<\/em><\/strong><\/span><\/p>\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 23px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>7<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>6<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>5<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>4<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>3<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>2<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>URSEL<\/strong><\/p>\n<\/td>\n<td colspan=\"3\" style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>\uc0ac\uc6a9\ud558\uc9c0 \uc54a\uc74c ( 0 )<\/strong><\/p>\n<\/td>\n<td colspan=\"4\" style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UBRR\uc758 \uac12 (11 ~8 \ube44\ud2b8)<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\u00a0<\/p>\n<p><span style=\"color:#4f81bd; font-size:12pt\"><strong><em>UBBRL<br \/>\n<\/em><\/strong><\/span><\/p>\n<table style=\"border-collapse:collapse\" border=\"0\">\n<colgroup>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/>\n<col style=\"width:64px\"\/><\/colgroup>\n<tbody valign=\"top\">\n<tr style=\"height: 23px\">\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>7<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>6<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>5<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>4<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>3<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>2<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>1<\/strong><\/p>\n<\/td>\n<td style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  none; border-bottom:  solid black 0.5pt; border-right:  none\">\n<p style=\"text-align: center\"><strong>0<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 24px\">\n<td colspan=\"8\" style=\"padding-left: 7px; padding-right: 7px; border-top:  none; border-left:  solid black 0.5pt; border-bottom:  solid black 0.5pt; border-right:  solid black 0.5pt\">\n<p style=\"text-align: center\"><strong>UBRR\uc758 \uac12 (7 ~0 \ube44\ud2b8)<\/strong><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\n\u00a0<\/p>\n<p>UBRRH\ub294 UCSRC\ub808\uc9c0\uc2a4\ud130\uc640 \uac19\uc740 \ubc88\uc9c0\ub97c \uc0ac\uc6a9 \ud558\uace0 \uc788\ub2e4. \uadf8\ub807\uae30 \ub54c\ubb38\uc5d0 UCSRC\ub85c \uc0ac\uc6a9 \ud560 \uac83\uc778\uc9c0 UBRRH\ub85c \uc0ac\uc6a9 \ud560 \uac83\uc778\uc9c0 \uc120\ud0dd\uc744 \ud574\uc57c \ud558\ub294\ub370, \uc774 \uae30\ub2a5\uc744 \ud558\ub294 \uac83\uc774 7\ubc88 URSEL\ube44\ud2b8\uc774\ub2e4.\n<\/p>\n<p>  URSEL\uc774 0\uc77c \ub54c UBRRH\uc758 \uae30\ub2a5\uc744 \uac16\uace0 1\uc77c \ub54c UCSRC\uc758 \uae30\ub2a5\uc744 \uac16\ub294\ub2e4.\n<\/p>\n<p>\n\u00a0<\/p>\n<p>UBRR\uc758 \uac12\uc740 \ubcf4\ub808\uc774\ud2b8\uc640 \uc2dc\uc2a4\ud15c \ud074\ub7ed\uc744 \uc774\uc6a9\ud558\uc5ec \uacc4\uc0b0 \ud55c\ub2e4.\n<\/p>\n<p><img src=\"http:\/\/temp.talsu.net\/wp-content\/uploads\/2008\/08\/ik1.png\" alt=\"\"\/>\n\t\t<\/p>\n<p>\uc608\ub97c \ub4e4\uc5b4 \uc2dc\uc2a4\ud15c \ud074\ub7ed\uc774 16Mhz \uc774\uace0 \ubcf4\ub808\uc774\ud2b8\ub97c 9600 bps\ub85c \uc7a1\uc558\uc744 \ub54c\n<\/p>\n<p>\n\u00a0<\/p>\n<p><img src=\"http:\/\/temp.talsu.net\/wp-content\/uploads\/2008\/08\/ik2.png\" alt=\"\"\/>\n\t\t<\/p>\n<p>UBRR\uc758 \uac12\uc740 103.1666&#8230;. \uc774 \ub41c\ub2e4.\n<\/p>\n<p>\uc5ec\uae30\uc11c \uc18c\uc218\uc810 \uc774\ud558\ub97c \ubc84\ub9ac\uace0 103\uc744 2\uc9c4\uc218\ub85c \ubcc0\ud658\ud558\uba74 1100111\uc774 \ub41c\ub2e4.\n<\/p>\n<p>\uacb0\uad6d UBRRH\uc758 4 \ube44\ud2b8\uc5d0\ub294 \ubaa8\ub450 0\uc774 \ub4e4\uc5b4\uac00\uace0 UBRRL\uc5d0\ub294 01100111\uc774 \ub4e4\uc5b4\uac00\ubbc0\ub85c, \ub2e4\uc74c\uacfc \uac19\uc774 \uc785\ub825 \ud55c\ub2e4.\n<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UBRRH=0;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UBRRH=103;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ubb3c\ub860 0b01100111\uc73c\ub85c\ub3c4 \uc785\ub825 \uac00\ub2a5\ud558\ub2e4.<\/span><strong><em><br \/>\n\t\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>\ub370\uc774\ud130 \uc804\uc1a1 \ub808\uc9c0\uc2a4\ud130<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p><span style=\"color:#4f81bd; font-size:12pt\"><strong><em>UDR<\/em><\/strong><\/span>\n\t\t<\/p>\n<p>UDR\ub808\uc9c0\uc2a4\ud130\ub294 \ub370\uc774\ud130\ub97c \uc785\ub825\ud558\uba74 \uc124\uc815\ud55c \uac12\uc5d0 \ub9de\uac8c \ub370\uc774\ud130\ub97c \uc804\uc1a1\ud558\ub294 \ub808\uc9c0\uc2a4\ud130\uc774\ub2e4.\n<\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#0070c0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:14pt\"><strong>\uc2dc\ub9ac\uc5bc \ud1b5\uc2e0 \ud68c\ub85c\uc758 \uc81c\uc791<br \/>\n<\/strong><\/span><\/p>\n<ul>\n<li>\n<div style=\"text-align: justify\">\ucf00\uc774\ube14 \uc81c\uc791\n<\/div>\n<\/li>\n<\/ul>\n<ul>\n<li>\n<div style=\"text-align: justify\">CPU\uc5d0 &#8216;Hello&#8217;\ub77c\ub294 \ubb38\uc790\ub97c \uc785\ub825 \ud558\uace0 \ucef4\ud4e8\ud130\uc5d0\uc11c \uc218\uc2e0\n<\/div>\n<\/li>\n<\/ul>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>\uc2dc\ub9ac\uc5bc \ucf00\uc774\ube14 \ucee4\ub125\ud130<br \/>\n<\/strong><\/span><\/p>\n<p style=\"text-align: center\"><img src=\"http:\/\/temp.talsu.net\/wp-content\/uploads\/2008\/08\/hk3.png\" alt=\"\"\/>\n\t<\/p>\n<p>2\ubc88 \uacfc 3\ubc88\uc774 Rx(\uc218\uc2e0), Tx(\uc1a1\uc2e0) \uc774\ub2e4.\n<\/p>\n<p>\uadf8\ub7ec\ubbc0\ub85c \ucf00\uc774\ube14\uc744 \ub9cc\ub4e4 \ub54c\uc5d0\ub294\n<\/p>\n<p>\ubc18\ub300\ucabd \ucee4\ub125\ud130\uc5d0 \uc5f0\uacb0\ud558\uae30 \uc804\uc5d0 \ud55c\ubc88 \uad50\ucc28 \uc2dc\ucf1c\uc57c \ud55c\ub2e4.\n<\/p>\n<p>(Rx -&gt;Tx , Tx-&gt;Rx)\n<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#0070c0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:14pt\"><strong>\uc2dc\ub9ac\uc5bc \ud1b5\uc2e0 \ud504\ub85c\uadf8\ub7a8<br \/>\n<\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>\uc1a1\uc2e0 \ud504\ub85c\uadf8\ub7a8<br \/>\n<\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>#include &lt;avr\/io.h&gt;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Void Putch(char data)  <\/em><\/strong><span style=\"color:#339933\">\/\/\uae00\uc790\ub97c \ubcf4\ub0b4\ub294 \ubd80\ubd84<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>{\u00a0\u00a0\u00a0\u00a0while(!(UCSR0A &amp; 0x20));<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><span style=\"color:#339933\">\/*0x20 = 00010000 5\ubc88 \ube44\ud2b8(UDRE) \uac00 1\uc774 \ub418\uae30\ub97c \uae30\ub2e4\ub9b0\ub2e4.<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UDR0 = data;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/ \uc1a1\uc2e0 \ub808\uc9c0\uc2a4\ud130, \uc804\uc1a1 \ud6c4 \ube44\uac8c \ub418\uba74 UDRE\uc5d0 1\ub97c \uc804\uc1a1<strong><br \/>\n\t\t\t\t<\/strong><\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>Int main(void)<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>{ char string[] = &#8220;Hellorn&#8221;;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>   char *pstr;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>   UCSR0A = 0x00;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/USX(\uc1a1\uc2e0 \uc18d\ub3c4 2\ubc30) OFF MPCM(\uba40\ud2f0\ud504\ub85c\uc138\uc11c \ud1b5\uc2e0\ubaa8\ub4dc)OFF<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>   UCSR0B = 0b00001000;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/TXEN(\uc1a1\uc2e0\ubaa8\ub4dc)\ub9cc ON<br \/>\n<\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>   UBRR0L = 103;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/UBRR(\ubcf4\ub808\uc774\ud2b8 \uc18d\ub3c4 \uc870\uc808)\uac12 103<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>   UBRR0H = 0;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>   pStr = string;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>   while (*pStr)   \u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/pStr\uc774 0\uc774 \uc544\ub2cc \ub3d9\uc548<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>   Putch(*pStr++);\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ub2e4\uc74c \ubb38\uc790\ub97c \uac00\ub9ac\ud0b4<strong><br \/>\n\t\t\t\t<\/strong><\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>  while(1);<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p>  \ub808\uc9c0\uc2a4\ud130 \ubcc0\uc218\ub97c \ubcf4\uba74 \ub4a4\ucabd\uc5d0 \uc22b\uc790\uac00 \ubd99\uc5b4 \uc788\ub2e4. \uc774\uac83\uc740 1\ubc88 \uc2dc\ub9ac\uc5bc \ucee8\ud2b8\ub864\ub7ec(PORTA, \ud540 3, 4)\ub97c \uc0ac\uc6a9\ud560 \uac83\uc778\uc9c0 0\ubc88 \uc2dc\ub9ac\uc5bc \ucee8\ud2b8\ub864\ub7ec(PORTD, \ud540 10, 11)\ub97c \uc0ac\uc6a9\ud560 \uac83\uc778\uc9c0 \ud310\ub2e8 \ud558\ub294 \uac83 \uc774\ub2e4. (1\ud398\uc774\uc9c0\uc758 \ud540 \uad6c\uc131\uc744 \ucc38\uace0 \ud558\uc790)\n<\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>\uc1a1\uc218\uc2e0 \ud504\ub85c\uadf8\ub7a8<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>#include &lt;avr\/io.h&gt;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>void Putch(char data)\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ubb38\uc790 \uc1a1\uc2e0 \ud568\uc218<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>{<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while(!(UCSR0A &amp; 0x20));\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/UDRE\uac00 1\uc77c\ub54c<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UDR0 = data;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/UDR\uc5d0 \ub370\uc774\ud130\ub97c \ub123\uc5b4 \uc804\uc1a1<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>char Getch(void)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ubb38\uc790 \uc218\uc2e0 \ud568\uc218<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>{<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while(!(UCSR0A &amp; 0x80));\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/RXC(\uc218\uc2e0\uc644\ub8cc \ud45c\uc2dc \ube44\ud2b8)\uac00 1\uc77c\ub54c<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0return UDR0;\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/UDR\uc758 \uac12\uc744 \ub9ac\ud134\ud55c\ub2e4<\/span><strong><em>.<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>int main(void)<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>{<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0char string[] = &#8220;Hellorn&#8221;;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0char *Pstr;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UCSR0A = 0x00;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UCSR0B = 0b00011000;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/TXEN, RXEN ON (\uc1a1,\uc218\uc2e0 \ub458 \ub2e4 \uc0ac\uc6a9)<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UBRR0L = 103;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UBRR0H = 0;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0pStr = string;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while(*pStr)\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/pStr\uc774 0\uc774 \uc544\ub2cc\ub3d9\uc548 \ub2e4\uc74c \ubb38\uc790\ub97c \uac00\ub9ac\ud0a4\uace0 0\uc774\uba74 \ub118\uc5b4\uac10<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Putch(*pstr++);<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ubb34\ud55c \ub8e8\ud504 \uc2dc\uc791<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0Putch(Getch( ) + 1);\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/Getch( )\uc758 \ubb38\uc790\uc5d0 1\uc744 \ub354\ud574\uc11c Putch\ub85c \ubcf4\ub0c4<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>while(1)<\/em><span style=\"color:#4f81bd\">\uc740 \ubb34\ud55c \ub8e8\ud504\ub97c \uc758\ubbf8\ud55c\ub2e4. while(true) \uc77c \ub54c \uc544\ub798\uc758 \ud3ec\ud568\ub41c \uba85\ub839\uc774 \uc2e4\ud589 \ub418\uace0 false\uc77c\ub54c \ub098\uc62c\uc218 \uc788\uc73c\ubbc0\ub85c (true = 1 false = 0) \uc9c1\uc811 1\uc744 \ub123\uc73c\uba74 \uc804\uc6d0\uc744 \ucc28\ub2e8 \ud560 \ub54c\uae4c\uc9c0 \uba85\ub839\uc744 \ubc18\ubcf5 \ud55c\ub2e4.<br \/>\n<\/span><\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"color:#7030a0; font-family:\ub9d1\uc740 \uace0\ub515; font-size:12pt\"><strong>\uc778\ud130\ub7fd\ud2b8\ub97c \uc0ac\uc6a9\ud55c \uc1a1\uc218\uc2e0 \ud504\ub85c\uadf8\ub7a8<br \/>\n<\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>#include&lt;avr\/io.h&gt;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>#include&lt;avr\/interrupt.h&gt;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>#include&lt;avr\/signal.h&gt;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>char rx = 0;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/rx\ub77c\ub294 \ubb38\uc790 \ubcc0\uc218 \uc120\uc5b8<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>void Putch (char data) \u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ubb38\uc790 \uc1a1\uc2e0 \ud568\uc218<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>{<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while(!(UCSR0A &amp; 0x20));<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UDR0 = data;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>SIGNAL(SIG_USART0_RECV)\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ub370\uc774\ud130\ub97c \ubc1b\uc73c\uba74 \ud558\ub358 \uc77c\uc744 \uc911\ub2e8\ud558\uace0 \uc774 \ud568\uc218\ub97c \uc2e4\ud589\ud55c\ub2e4<\/span><strong><em>.<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>{<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0char string[ ] = &#8220;rn\uba54\uc138\uc9c0 \uc798 \ubc1b\uc558\uc2b5\ub2c8\ub2e4. &#8211;&gt; &#8220;;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ubb38\uc790 \ubc30\uc5f4<br \/>\n<\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0char *pStr;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0rx = UDR0;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0pStr = string;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while(*pStr) Putch(*pStr++); \u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/string \uc758 \ub0b4\uc6a9\uc744 \uc1a1\uc2e0<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0Putch(rx);\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/UDR0\uc758 \ub0b4\uc6a9 \uc1a1\uc2e0<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0Putch(&#8216;r&#8217;);<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0Putch(&#8216;n&#8217;);<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>int main (void)<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>{<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0char string[ ] = &#8220;rn\uc548\ub155\ud558\uc138\uc694rn&#8221;;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0char *pStr;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0DDRB = 0xFF;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/??<br \/>\n<\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0PORTB = 0xFF;\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/??<br \/>\n<\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UCSR0A = 0x00;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UCSR0B = 0b10011000;  <\/em><\/strong><span style=\"color:#339933\">\/\/RXCIE(\uc218\uc2e0 \uc644\ub8cc \uc778\ud130\ub7fd\ud2b8 \uc778\uc5d0\uc774\ube14 \ube44\ud2b8)\uc0ac\uc6a9, \uc1a1\uc218\uc2e0\uc0ac\uc6a9<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UBRR0L = 103;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0UBRR0H = 0;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0sei( ); \u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\uc778\ud130\ub7fd\ud2b8\ub97c \uc778\uc5d0\uc774\ube14 \uc2dc\ud0a8\ub2e4.<br \/>\n<\/span><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0pStr = string;<br \/>\n<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while (*pStr) Putch(*pStr++);\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/&#8221;\uc548\ub155\ud558\uc138\uc694&#8221; \uc804\uc1a1<br \/>\n<\/span><\/span><\/p>\n<p style=\"text-align: justify\">\n\u00a0<\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>\u00a0\u00a0\u00a0\u00a0while(1);\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/em><\/strong><span style=\"color:#339933\">\/\/\ubb34\ud55c \ub8e8\ud504<\/span><strong><em><br \/>\n\t\t\t\t<\/em><\/strong><\/span><\/p>\n<p style=\"text-align: justify\"><span style=\"font-family:\ub9d1\uc740 \uace0\ub515; font-size:10pt\"><strong><em>}<br \/>\n<\/em><\/strong><\/span><\/p>\n<p>\n\u00a0<\/p>\n<p>\uba3c\uc800 \uc548\ub155\ud558\uc138\uc694 \ubb38\uc790 \ucd9c\ub825 \ud6c4 \ubb34\ud55c \ub8e8\ud504\ub85c \ub4e4\uc5b4 \uac00\uac8c \ub41c\ub2e4.  \ub370\uc774\ud130\ub97c \ubc1b\uc73c\uba74 \uadf8\ub54c \ubb34\ud55c\ub8e8\ud504\ub97c \ubc97\uc5b4\ub098 SIGNAL(SIG_USART0_RECV)\u00a0\u00a0\u00a0\u00a0\ud568\uc218\uac00 \uc791\ub3d9\ud558\uace0 \ud568\uc218\uac00 \ub05d\uc774 \ub098\uba74 \ub2e4\uc2dc \ubb34\ud55c \ub8e8\ud504\ub85c \ub4e4\uc5b4\uac00 \ub2e4\uc74c \uc2e0\ud638\ub97c \uae30\ub2e4\ub9ac\ub294 \uc0c1\ud0dc\uac00 \ub41c\ub2e4. while( )\ubb38\uc758 \uc790\ub9ac\uc5d0 CPU\uac00 \ub2e4\ub978 \uc77c\uc744 \ud560 \uc218 \uc788\ub3c4\ub85d \ud504\ub85c\uadf8\ub7a8\uc744 \uc791\uc131\ud560 \uc218\ub3c4 \uc788\ub2e4<\/p>\n<p><a href=\"http:\/\/192.168.0.71:9090\/wp-content\/uploads\/1\/hk71.pdf\" class=\"aligncenter\"  \/>hk71.pdf<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>AVR\ub85c \ub9cc\ub4e4\uc5b4\uc11c \uc774\ud574\ud558\ub294 CPU \u00a0 \u00a0 Atmega162 (DIP Type) \u00a0 ATmega162\uc758 \ud540 \uad6c\uc870 \u00a0 \u00a0 \ud504\ub85c\uadf8\ub798\ubc0d\uc758 \uc124\uba85 ATmega162 \ud504\ub85c\uadf8\ub7a8\uc744 \uc124\uacc4\ub97c \ud560 \ub54c io.h \ud5e4\ub354\ud30c\uc77c\uc744 include \ud558\uac8c \ub41c\ub2e4. io.h \ud5e4\ub354\ud30c\uc77c \uc548\uc5d0\ub294 \uc544\ub798\uc640 \uac19\uc740 \ubd80\ubd84\uc774 \uc788\ub2e4. Ex) #elif defined (__AVR_ATmega162__) # include &lt;avr\/iom162.h&gt; \u00a0 \uc989, \ucef4\ud30c\uc77c\ub7ec\uc5d0\uc11c ATmega162\uc5d0 \ub9de\uac8c \ucef4\ud30c\uc77c \ud558\ub3c4\ub85d \uc124\uc815\ud558\uba74 iom162.h\ub77c\ub294 \ub610 \ub2e4\ub978 \ud5e4\ub354\ud30c\uc77c\uc744 include \ud558\uac8c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[17],"tags":[56,60],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pXV5a-zM","_links":{"self":[{"href":"https:\/\/talsu.net\/index.php?rest_route=\/wp\/v2\/posts\/2218"}],"collection":[{"href":"https:\/\/talsu.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/talsu.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/talsu.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/talsu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2218"}],"version-history":[{"count":0,"href":"https:\/\/talsu.net\/index.php?rest_route=\/wp\/v2\/posts\/2218\/revisions"}],"wp:attachment":[{"href":"https:\/\/talsu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/talsu.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/talsu.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}