AVR (ATmega8535) programming (C¸À¸ì)

¡û ¤Ï¤¸¤á¤Ë

ËÜʸ½ñ¤Ç¤Ï¡¢Atmel ¼Ò ¤¬À½Â¤¤·¤Æ¤¤¤ë¥Þ¥¤¥³¥ó¥·¥ê¡¼¥º¤Ç¤¢¤ë AVR ¤Î¤¦¤Á¡¢8 ¥Ó¥Ã¥È¥Þ¥¤¥³¥ó¤Î°ì¤Ä¤Ç¤¢¤ë ATmega8535 ¤ò»È¤Ã¤¿¥Þ¥¤¥³¥ó¥×¥í¥°¥é¥ß¥ó¥°¤Ë¤Ä¤¤¤Æ²òÀ⤷¤Æ¤¤¤­¤Þ¤¹¡£

É®¼Ô¤¬ËܳÊŪ¤Ë¥×¥í¥°¥é¥ß¥ó¥°¤ò¹Ô¤¤¤À¤·¤¿¤Î¤Ï¡¢Âç³Ø»þÂå¤Î¤³¤È¤Ç¤·¤¿¡£¿ôÃÍ·×»»¤ä¥×¥í¥°¥é¥à¤Ë¤è¤ë CG ºîÀ®¤¬»Ï¤Þ¤ê¤Ç¤·¤¿¤¬¡¢3ǯÀ¸¤¯¤é¤¤¤Î»þ¤Ë¥Ü¡¼¥É¥³¥ó¥Ô¥å¡¼¥¿¤òÍѤ¤¤Æ¡¢¥¢¥»¥ó¥Ö¥é¤ä C ¸À¸ì¤Ç¤Î¥×¥í¥°¥é¥ß¥ó¥°¤äÅŻҲóÏ©À©¸æÅù¤ÎÊÙ¶¯¤ò¤·¤Þ¤·¤¿¡£¥Ï¥ó¥É¥¢¥»¥ó¥Ö¥ë¤â·Ð¸³¤·¤Þ¤·¤¿¡£º£»×¤¨¤Ð¡¢¤³¤Î»þ¤Î·Ð¸³¤¬¼«Ê¬¤Î¥³¥ó¥Ô¥å¡¼¥¿Îò¤Î´ðÁäȤʤäƤ¤¤ëµ¤¤¬¤·¤Þ¤¹¡£

¤½¤Î¸å¼Ò²ñ¿Í¤È¤Ê¤ê¥½¥Õ¥È¥¦¥§¥¢´Ø·¸¤Î»Å»ö¤Ë½¢¤­¤Þ¤·¤¿¤¬¡¢¥Ï¡¼¥É¥¦¥§¥¢¤ò°Õ¼±¤·¤¿¥×¥í¥°¥é¥ß¥ó¥°¤¬É¬ÍפȤʤ뤳¤È¤Ï¤Û¤È¤ó¤É¤¢¤ê¤Þ¤»¤ó¤Ç¤·¤¿¡£Linux Kernel Module programming ( Kernel 2.4 ) ¤Ç¤â½ñ¤¤¤Æ¤¤¤ëÍͤˡ¢¥Ï¡¼¥É¥¦¥§¥¢¤òÀ©¸æ¤¹¤ë¥×¥í¥°¥é¥à¤ò½ñ¤­¤¿¤¤¤È»×¤Ã¤Æ¤¤¤¿¤¿¤áʪ­¤ê¤Ê¤µ¤ò´¶¤¸¤Æ¤¤¤Þ¤·¤¿¤¬¡¢¤½¤ì¤Ê¤é¤Ð¼«Ê¬¤Ç¤ä¤ì¤Ð¤¤¤¤¤ä¤È»×¤¤Î©¤Á¡¢º£²ó AVR ¥Þ¥¤¥³¥ó¤ò»È¤Ã¤ÆÅŻҹ©ºî¤¬¤Æ¤éÊÙ¶¯¤·¤¿ÆâÍƤò½ñ¤¯¤³¤È¤Ë¤·¤Þ¤·¤¿¡£

ËÜʸ½ñ¤Ø¤Î¥ê¥ó¥¯¤Ï¸æ¼«Í³¤Ë¤É¤¦¤¾¡£ËÜ¥µ¥¤¥ÈÆâ¤Îʸ¾Ï¤Ë´Ø¤·¤Æ²¿¤«¤´°Õ¸«¤Ê¤É¤¬¤¢¤ê¤Þ¤·¤¿¤é¡¢¥Ú¡¼¥¸ºÇ²¼Éô¤Ë¤¢¤ë¥¢¥É¥ì¥¹¤Þ¤Ç¡¢¤¢¤ë¤¤¤Ï¤³¤³¤«¤é¤ª´ê¤¤¤·¤Þ¤¹¡£¤Ê¤ª¡¢ËÜʸ½ñ¤Ë¤ª¤¤¤Æ»ÈÍѤ·¤Æ¤¤¤ë¥µ¥ó¥×¥ë¥³¡¼¥É¤ò tar ·Á¼°¤Ç°µ½Ì¤·¤¿¤â¤Î¤òsrc.tar.gz¤È¤·¤ÆÃÖ¤¤¤Æ¤Þ¤¹¡£Å¸³«¤·¤ÆÆÀ¤é¤ì¤ë³Æ¥½¡¼¥¹¥³¡¼¥É¤Ï EUC ¤Ç½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¡£³Æ¥Ç¥£¥ì¥¯¥È¥ê¤Ë¤Ï¤½¤Î¥³¡¼¥É¤ò»ÈÍѤ·¤¿ Lecture ¤ÎÈֹ椬Éղ䵤ì¤Æ¤¤¤Þ¤¹¡£¤³¤Î¥½¡¼¥¹¥³¡¼¥É¤Î»ÈÍѤ˴ؤ·¤Æ¤Ï¡¢ÌÈÀÕ»ö¹à¤Îµ­½Ò¤òλ¾µ¤·¤Æ¤¤¤¿¤À¤±¤ì¤Ð¼«Í³¤Ë»È¤Ã¤Æ¤¤¤¿¤À¤¤¤Æ¹½¤¤¤Þ¤»¤ó¡£

¤Þ¤¿¡¢¥½¡¼¥¹¥³¡¼¥É¤ò´Þ¤á¤¿Ê¸½ñÁ´ÂΤΥ¢¡¼¥«¥¤¥Ö( tar ·Á¼° )¤ò avr_doc.tar.gz¤È¤·¤ÆÃÖ¤¤¤Æ¤Þ¤¹¡£¤³¤Á¤é¤â EUC ¤Ç½ñ¤«¤ì¤Æ¤¤¤Þ¤¹¡£

¡û Á°Äé´Ä¶­

ËÜʸ½ñ¤Ç¤Ï¡¢ATmega8535 ¤òÂоݤˤ·¤Æ²óÏ©¤ª¤è¤Ó¥×¥í¥°¥é¥à¤òºîÀ®¤·¤Þ¤¹¡£¤Þ¤¿¡¢¥×¥í¥°¥é¥àºîÀ®¤Ï Linux® ¾å¤Ç avr-gcc ¤òÍѤ¤¤Æ¹Ô¤¤¤Þ¤¹¡£¾ÜºÙ¤Ï LECTURE 1 ATmega8535 ¤ª¤è¤Ó»ÈÍѴĶ­¤Ë¤Ä¤¤¤Æ ¤ÇÀâÌÀ¤·¤Þ¤¹¡£

¡û ÌÈÀÕ»ö¹à

ËÜ¥µ¥¤¥È¤Ç¸ø³«¤·¤Æ¤¤¤ëÆâÍƤˤĤ¤¤Æ¤Ï²Äǽ¤Ê¸Â¤êÀµ³Î¤ò´ü¤¹¤ëÍͤ˿´³Ý¤±¤Æ¤¤¤Þ¤¹¤¬¡¢Ãø¼Ô¤ÎÃμ±ÉÔ­¤«¤éµ»½ÑŪ¤Ê¸í¤ê¤â¤·¤¯¤ÏÉÔŬÀÚ¤Êɽ¸½¤ä¸í¿¢¤ò´Þ¤à²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹¡£¤³¤ì¤é¤ÎÆâÍƤò»ÈÍѤ¹¤ë¤³¤È¤Ë¤è¤Ã¤ÆÀ¸ ¤¸¤ë²ÄǽÀ­¤Î¤¢¤ë¤¤¤«¤Ê¤ëÈï³²/»³²¤ËÂФ·¤Æ¡¢Ãø¼Ô¤Ï°ìÀÚ¤ÎÀÕǤ¤òÉ館¤Þ¤»¤ó¡£¤è¤Ã¤Æ¡¢¤´ÍøÍѤˤʤé¤ì¤ëºÝ¤Ï¤ß¤Ê¤µ¤ó³Æ¼«¤ÎÀÕǤ¤ÇÆâÍƳÎǧ/Æ°ºî³Îǧ¤ò¹Ô¤Ã¤Æ²¼¤µ¤¤¡£

¤Ê¤ª¡¢ËÜ¥µ¥¤¥È (AVR (ATmega8535) programming) ¤Ë·ÇºÜ¤·¤Æ¤¤¤ë¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à¤Ë¤Ä¤¤¤Æ¤Ï½¤Àµ BSD ¥é¥¤¥»¥ó¥¹¡Ê¿· BSD ¥é¥¤¥»¥ó¥¹¡Ë¤Ë½¾¤¦¤³¤È¤È¤·¤Þ¤¹¡ÊOpen Source Initiative ¤Ë¤è¤ë¥Æ¥ó¥×¥ì¡¼¥È¤Ï¤³¤Á¤é¡£¥Æ¥ó¥×¥ì¡¼¥È¤Î»²¹ÍË®Ìõ¤Ï¤³¤Á¤é¡Ë¡£

Copyright (c) 2007, Ryo Ichinose
All rights reserved.

Redistribution and use in source and binary forms, with or without 
modification, are permitted provided that the following conditions are met:

   * Redistributions of source code must retain the above copyright 
     notice, this list of conditions and the following disclaimer.
   * Redistributions in binary form must reproduce the above copyright 
     notice, this list of conditions and the following disclaimer in the 
     documentation and/or other materials provided with the distribution.
   * Neither the name of the auther nor the 
     names of its contributors may be used to endorse or promote products 
     derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 
PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

¡û ¾¦É¸

  • Linux ¤Ï Linus Torvalds »á¤ÎÆüËܵڤӤ½¤Î¾¤Î¹ñ¤Ë¤ª¤±¤ëÅÐÏ¿¾¦É¸¤Þ¤¿¤Ï¾¦É¸¤Ç¤¹¡£
  • ¤½¤Î¾¡¢ËÜ¥µ¥¤¥È¤Îʸ½ñÃæ¤Ëµ­ºÜ¤µ¤ì¤Æ¤¤¤ë²ñ¼Ò̾¤äÀ½ÉÊ̾¤Ï¡¢°ìÈ̤˳ƼҤξ¦É¸¤Þ¤¿¤ÏÅÐÏ¿¾¦É¸¤Ç¤¹¡£
  • ¤Ê¤ª¡¢ËÜ¥µ¥¤¥È¤Îʸ½ñÃæ¤Ç¤Ï TM ¤ª¤è¤Ó R ¥Þ¡¼¥¯¤òÌÀµ­¤·¤Æ¤¤¤Þ¤»¤ó¤¬¡¢¸¢Íø¤ò¿¯³²¤¹¤ë°Õ»×¤äÌÜŪÅù¤Ï°ìÀÚ¤¢¤ê¤Þ¤»¤ó¡£

¡û »²¹Í¾ðÊó(ʸ¸¥¡¢¥ê¥ó¥¯)

  • Atmel

    AVR ¥Þ¥¤¥³¥ó¥·¥ê¡¼¥º¤òÀ½Â¤¤·¤Æ¤¤¤ë²ñ¼Ò¤Ç¤¹¡£¥Ç¡¼¥¿¥·¡¼¥È¤â¤³¤³¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤­¤Þ¤¹¡£

  • GNU Binutils

    ¥¢¥»¥ó¥Ö¥é¤ä¥ê¥ó¥«Åù¤Î´ðËÜŪ¤Ê¥×¥í¥°¥é¥ß¥ó¥°¥Ä¡¼¥ë¤òÄ󶡤¹¤ë¥½¥Õ¥È¥¦¥§¥¢¤Ç¤¹¡£

  • GCC

    GNU ¤¬³«È¯¤·¤Æ¤¤¤ë¥³¥ó¥Ñ¥¤¥é¥³¥ì¥¯¥·¥ç¥ó¤Ç¤¹¡£

  • AVR LibC

    AVR ¥¢¡¼¥­¥Æ¥¯¥Á¥ã¤Ç»ÈÍѲÄǽ¤Ê libc ¤òÄ󶡤¹¤ë¥½¥Õ¥È¥¦¥§¥¢¤Ç¤¹¡£

  • uisp

    ¥×¥í¥°¥é¥à¤Î¥¢¥Ã¥×¥í¡¼¥É¡¿¥Ò¥å¡¼¥º¥Ó¥Ã¥È¤ÎÀßÄêÅù¤Î PC ¤È AVR ¤Î´Ö¤ÎÄÌ¿®ºî¶È¤ò¹Ô¤Ã¤Æ¤¯¤ì¤ë¥½¥Õ¥È¥¦¥§¥¢¤Ç¤¹¡£

  • AVR Programming

    ATmega8535 ¤ÎÁ°¿È¤Ç¤¢¤ë AT90S8535 ¤Ç¥×¥í¥°¥é¥ß¥ó¥°¤ò¹Ô¤¦ºÝ¤Ë¡¢¤«¤Ê¤ê»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤­¤Þ¤·¤¿¡£

  • AVR»îÍѵ­-C¸À¸ì(WINAVR)¥á¥â

    ¤¤¤í¤¤¤í¤Ê¥á¥â¤ò»Ä¤·¤Æ¤¯¤À¤µ¤Ã¤Æ¤¤¤Þ¤¹¡£ºÙ¤«¤¤ÅÀ¤ò¤¤¤í¤¤¤í¤È»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤­¤Þ¤·¤¿¡£

  • ¿åµûƲ¥Û¡¼¥à¥Ú¡¼¥¸

    ËÜʸ½ñ¤Ç·ÇºÜ¤·¤Æ¤¤¤ë²óÏ©¿Þ¤Ï¡¢¤³¤³¤ÇÇÛÉÛ¤µ¤ì¤Æ¤¤¤ë BSch3V ¤ò»È¤ï¤»¤Æ¤¤¤¿¤À¤¤¤Æ¤¤¤Þ¤¹¡£