åç°ä»ãç¡ãã§Japaninoå士ãã¥ã¼ãºããããåè¨å®ãã
arms22ãããç´¹ä»ããã¦ããArduinoで遊ぼう-AVRライタを使わないBootloaderの書き込みã®Arduino Boot-Clonerã使ã£ã¦Japaninoå士ã®ãã¥ã¼ãºãããè¨å®ã試ãã¦ã¿ã¾ããã
Arduino Boot-Clonerã使ã£ããã¥ã¼ãºãããæ¸ãæãã®å®ä¾ãä¸ã
åºã¦ããªãã®ã¯ã
- ã¹ã±ããèªä½ãé·ãéã¡ã³ããã³ã¹ããã¦ããªãï¼ãããï¼ãããArduino-0018ã§åããä¸æ
- CRçºæ¯ã®Japaninoã§ãã¥ã¼ãºãããæ¸ãæãã«å¿ è¦ãªç²¾åº¦ãåºãããä¸æ
ã¨ãã£ãã¨ããããããã¨æãã¾ãã
ããããªãããç¨æãããã®ãJapaninoãæã£ãåéãæ¢ãã ããã¨ããæ¬ææ³ããããªãã®å©ç¹ãããããã«æãã¾ãã
(注æ)ä»åãã¾ããã£ã¦ãã¾ããããã¥ã¼ãºãããæ¸ãæãã®ããã ãã«Japaninoãè¤æ°è²·ãã¡ãªããã¯å ¨ãããã¾ãããã»ã¼åã³ã¹ãã®ç´æ£Arduinoã使ã£ãFTDI Bitbangããå®ãAVRã©ã¤ã¿ãå©ç¨ããæ¹ãå®å ¨ã ã¨æãã¾ãã
ããã§ã¯æ¸ãè¾¼ã¿å´Japaninoãã©ã¤ã¿ããã¥ã¼ãºããããæ¸ãè¾¼ã¾ããæ¹ãã¿ã¼ã²ããã¨å¼ã³ã¾ãã
ç§ã¯Japaninoãè¤æ°å°æã£ã¦ããªããããAtmega168ãæè¼ããeJackinoãã¿ã¼ã²ããã¨ãã¾ãããã¿ã¼ã²ããå´ã¯Japaninoã®ç°å¢ã¨è¿ããªããããäºããã¥ã¼ãºããããCRçºæ¯ããããè¨å®ãã¾ããã
å¿ãã¦ã¯ããã¾ãããå®é¨ã®ãããã©ã¤ã¿ã¨ãªãJapaninoã®ãã¥ã¼ãºããããåæ(CRçºæ¯)ã«æ»ãã¦ããã¾ãã
å¿
è¦ãªé»åé¨å
Japanino2ã¤
ã¸ã£ã³ãã¯ã¤ã¤6æ¬
ã¹ã±ããã¯ãã¡ã
http://www.arduino.cc/playground/uploads/Code/programmer2.txt
IDEã«ã³ãã¼ï¼ãã¼ã¹ãããå¾ãã¹ã±ããã®ä¿®æ£ãå¿
è¦ã§ãã
void Fuse_Arduino_Style()ä¸ã®
1014è¡:
CMD_Write_Fuse_High( 0xdf);
ã
CMD_Write_Fuse_High( 0xdd);
1016è¡:
CMD_Write_Fuse_Low( 0xef);
ã
CMD_Write_Fuse_Low( 0xc6);
ã«ãã¾ãã
# 1000è¡ä»è¿ã«Mega8ç¨ãã¥ã¼ãºãããæ¸ãæãå¦çãããã¾ããããã¨ééããªãããã«ãæ°ãã¤ããã ããã
# ãã£ããdefineãã¦ããã®ã«ããããæ´»ãããã¦ããªãã®ã¯ãªãã§ã ããï¼
ã©ã¤ã¿å´ã®D10ãã¿ã¼ã²ããã®Resetã«é
ç·ããå¾ã¯
D11
D12
D13
+5V
GND
å士ãé
ç·ãã¾ãã
åçãã¤ãã®ããã«ãã³ãã±ã§ãããã¿ã¾ããã
ã¹ã±ãããã³ã³ãã¤ã«ãã¦ã©ã¤ã¿ã«æ¸ãè¾¼ãã§ãã ããã
ã·ãªã¢ã«ã¢ãã¿ãèµ·åãã19200bpsã«è¨å®ããå¾ã
*s
*Aãï¼å¿
ã大æåã®Aã«ãã¦ãã ããï¼
ã§æ¸ãè¾¼ã¿å®äºã§ãã
ãã¦ãæ¸ãè¾¼ãã ãã¥ã¼ãºããããè¦ã¦ã¿ã¾ãããã
ã¨ãããã3åæ¸ãè¾¼ã¿ããã¦ã¿ã¾ããããåé¡ãªãè¨å®ã§ãã¦ããããã§ãã
6æ15æ¥è¿½è¨ãArduino Boot-Clonerã¯Signature Byteã§ãã¤ã³ã³ãå¤å¥ãã¦ããã対å¿ããSignature Byteãç¡ãå ´åãã¨ã©ã¼ã¨ãªã£ã¦ãã¾ãã¾ããä»åãMEGA168ã¨MEGA168Vã¯Signature Byteãåããªã®ã§ãã©ã¤ã¿Japanino(MEGA168V)ãã¿ã¼ã²ããeJackino(MEGA168)ã§æåããã°Japaninoç¸äºã®æ¸ãè¾¼ã¿ã¯OKã¨ãã¾ãããã念ã®ããã¿ã¼ã²ãããJapaninoã«ãã¦ãã¥ã¼ãºãããã®æ¸ãæããè¡ããç¡äºæåã確èªãã¾ããã