AVR128DA¤È¤«DB¤ò¤â¤¦¤Á¤ç¤Ã¤È»È¤Ã¤Æ¤ß¤ë

¡üXMEGA¤Î¸å·Ñ¡ªµ¡Ç½ËþºÜ¤Ç¥¨¥é¥Ã¥¿¤âËþºÜ
ÉʼïŪ¤Ë¤ÏXMEGA¤Î¸å·Ñ¤È¤Ê¤ëAVR-Dx¥·¥ê¡¼¥º¡£¿ô¡¹¤Î¿·µ¡Ç½¤¬¤¢¤ê¤Þ¤¹¤¬
¤½¤ì¤ÏƱ»þ¤Ë¿ô¡¹¤Î¥¨¥é¥Ã¥¿¤ò»Å¹þ¤à¤³¤È¤È¤Ê¤ê¥¨¥é¥Ã¥¿¥·¡¼¥È¤È¥Á¥Ã¥×¥ê¥Ó¥¸¥ç¥ó¤Ë
Ãí°Õ¤·¤Æ¤ª¤«¤Ê¤¤¤È¥É¥Ï¥Þ¥ê¤·¤ÆÌܤβ¼¤Ë¥¯¥Þ¤Ä¤±¤Æ¥À¥Ö¥ë¥Ô¡¼¥¹¤·¤Æ
¤·¤Þ¤¤¤Þ¤¹¡£

¸½ºß¡¢AVR128DA¤ËÂåɽ¤µ¤ì¤ëAVR-DA¥·¥ê¡¼¥º¤ÈAVR-DB¥·¥ê¡¼¥º¤¬
ήÄ̤·¤Æ¤ª¤ê¤Þ¤¹¡£
DA¤ÈDB¤Î°ã¤¤¤Ï¥¢¥Ê¥í¥°Æþ½ÐÎϤ¬¤µ¤é¤Ë¶¯²½¤µ¤ì¤Æ¤¤¤ë¤Î¤È°Û¤Ê¤ëÅÅ°µ¤Î
I/O¤½¤·¤ÆDA¤Ë¸ºß¤·¤¿¥¨¥é¥Ã¥¿¤¬½¤Àµ¤µ¤ì¤Æ¤¤¤ë¤³¤È¤Ç¤¹¡£

¥Þ¥¤¥¯¥í¥Á¥Ã¥×¤Ï²áµî¤Î¥·¥ê¡¼¥º¤Ç½Ð¤¿¥¨¥é¥Ã¥¿¤Ï¿·¤·¤¤Åۤǽ¤Àµ¤¹¤ë¤è¤È¤¤¤¦
¥¹¥¿¥ó¥¹¤Ê¤Î¤Ç¤·¤ç¤¦¤«¡Ä???¤³¤ì¤«¤éÇ㤦¿Í¤ÏDB¥·¥ê¡¼¥º°Ê¹ß¤Ë¤·¤Æ¤ª¤±¤ÐÊѤÊ
ÃÏÍëƧ¤Þ¤º¤ËºÑ¤à¤È»×¤¤¤Þ¤¹¡£¤¿¤À¤·»ÈÍÑÁ°¤Ë¥¨¥é¥Ã¥¿¡¼¥·¡¼¥È¤Ïɬ¤ºÌܤò
Ä̤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤¡£

20240229ÄÉ:
½©·î¤µ¤ó¤è¤êAVR128DB28¤¬ÈÎÇ䤵¤ì¤Þ¤·¤¿¡ª¡ª¡ª¡ª¡ª¡ª
20240229ÄÉ:



¡üÀ½Â¤³«»Ïľ¸å¤ÎAVR32DA¤Ë¸ºß¤·¤¿Ã×̿Ū¥¨¥é¥Ã¥¿
¤µ¤ÆAVR¤Ï¥¢¥È¥á¥ë»þÂ夫¤é¤Þ¤ºÂ礭¤á¤ÎÍÆÎ̤ΥÁ¥Ã¥×ºî¤Ã¤Æ¤½¤Î¤¢¤È¥·¥å¥ê¥ó¥¯
¤·¤Æ¤¤¤¯ÎÌ»ºÂÎÀ©¤Îή¤ì¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¤¬AVR128DA¤¬À¤¤Ë½Ð¤Æ¾¯¤··Ð¤Ã¤¿º¢¤Ë
À½Â¤¤µ¤ì¤¿AVR32DA¤È¤¤¤¦¥Á¥Ã¥×¤ËÃ×̿Ū¥¨¤Ê¥¨¥é¥Ã¥¿¤¬Â¸ºß¤·¤Æ¤¤¤Þ¤·¤¿¡ª¡ª¡ª

¥¨¥é¥Ã¥¿¤ÎÆâÍƤÏËÜÍè¤Ï4¥Ð¥¤¥ÈɬÍפʥꥻ¥Ã¥È¥Ù¥¯¥¿¤¬2¥Ð¥¤¥È¹ï¤ß¤Ë¤Ê¤Ã¤Æ¤¤¤ë
¤È¤¤¤¦¤â¤Î¤Ç¤¹¡£AVR32DA¤Î¥Õ¥é¥Ã¥·¥åÎΰ褹¤Ù¤Æ¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤¿¤á¤Ë¤Ï¥ê¥»¥Ã¥È
¥Ù¥¯¥¿¤Ç4¥Ð¥¤¥È¤ÎjmpÌ¿Îá¤ò»È¤¦É¬Íפ¬¤¢¤ê¤Þ¤¹¡£¤¬¡¢¥Ï¡¼¥ÉŪ¤ËȯÀ¸¤¹¤ë³ä¤ê¹þ¤ß
Í×°ø¤Ï2¥Ð¥¤¥È¤º¤Ä¤ÇµÍ¤áµÍ¤á¤Ë¤Ê¤Ã¤Æ¤ë¤Î¤ÇjmpÌ¿Îá¤Ç¤Ï¤È¤ó¤ÀÀ褬¤á¤Á¤ã¤¯¤Á¤ã
¤Ë¤Ê¤Ã¤ÆrjmpÌ¿Îá¤ò»ÈÍѤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤º¡¢8kBʬ¤·¤«¥¢¥¯¥»¥¹¤Ç¤­¤Þ¤»¤ó¡£

¢­°Ê²¼AVR¤Î¥¸¥ã¥ó¥×Ì¿Îá¤Î»²¹Í»ñÎÁ

RJMP¤Ï16bit¥ª¥Ú¥³¡¼¥É¤Ê¤Î¤Ç2¥Ð¥¤¥È
(¥Õ¥é¥Ã¥·¥å8kB°Ê²¼¤Î¥Ç¥Ð¥¤¥¹¤Ï¤³¤Á¤é)


JMP¤Ï32bit¥ª¤Ú¥³¡¼¥É¤Ê¤Î¤Ç4¥Ð¥¤¥È
(¥Õ¥é¥Ã¥·¥å8kB°Ê¾å¤Î¤Ç¥Ç¥Ð¥¤¥¹¤Ï¤³¤Á¤é)

avr-gcc¤Ë´Ø¤·¤Æ¤Ï4¥Ð¥¤¥È¶èÀÚ¤ê¤Î³ä¤ê¹þ¤ß¥Ù¥¯¥¿¥¢¥É¥ì¥¹¤òÁ°Äó¤Ë
¥¹¥¿¡¼¥È¥¢¥Ã¥×¥³¡¼¥É¤¬¥Ó¥ë¥É¥¤¥ó¤µ¤ì¤Æ¤ª¤ê¤¦¤ó¤³¤Ä¤­¤ÎAVR32DA¤Ç¤Ï
¤É¤¦´èÄ¥¤Ã¤Æ¤â¤Þ¤È¤â¤Ë³ä¤ê¹þ¤ß¤¬»È¤¨¤Þ¤»¤ó¡ª


¢¬¥Ç¡¼¥¿¥·¡¼¥È¤è¤êAVR32DA¤Î³ä¤ê¹þ¤ß¥Ù¥¯¥¿¤Î²òÀâ¡£
¥¢¥É¥ì¥¹¤Ï2¥ï¡¼¥É(=4¥Ð¥¤¥È)¶èÀÚ¤ê¤Ê¤Î¤¬¤ï¤«¤ê¤Þ¤¹¡£

AVR¤Ã¤ÆºÇ½é¤Ë½Ð¤¿Åö½é¤Ï"¤¹¤Ã¤­¤ê16bit¥ª¥Ú¥³¡¼¥É"¤òÇä¤ê¤Ë¤·¤Æ¤ÆÅÁÅýŪ¤Ë
¥ï¡¼¥É(16bit)¤Ç¥×¥í¥°¥é¥à¥¢¥É¥ì¥¹¤òɽ¸½¤·¤Æ¤­¤¿¤«¤é¥·¥å¥ê¥ó¥¯À߷פ·¤¿¿Í¤¬
¥Ð¥¤¥È¥¢¥É¥ì¥¹¤È´Ö°ã¤Ã¤Á¤ã¤Ã¤¿¤ó¤¸¤ã¤Ê¤¤¤«¤Ê¡Ä

¤È¤¤¤¦¤ï¤±¤Ç¤³¤ÎÀ½Â¤½é´ü¤Ë½Ð¤Æ¤·¤Þ¤Ã¤¿AVR32DA¤Ï²ó¼ý¤µ¤ì¡¢¸½ºßήÄ̤·¤Æ¤¤¤ë
ʪ¤Ë¤Ä¤¤¤Æ¤ÏÀµ¤·¤¤³ä¤ê¹þ¤ß¥¢¥É¥ì¥¹´Ö³Ö¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤½¤¦¤Ç¤¹¡£¤ï¤¿¤·¤ÏÉݤ¯¤Æ
»È¤¦µ¤¤â¤Ê¤¤¤Ç¤¹¤±¤É¡ª

¤Á¤Ê¤ß¤ËÃ×̿Ū¤¹¤®¤ë¥¨¥é¥Ã¥¿¤æ¤¨¤Ë¥¨¥é¥Ã¥¿¡¼¥·¡¼¥È¤Ë¤Ïµ­ºÜ¤µ¤ì¤Æ¤ª¤é¤º¡¢
AvrFreaks¤Ç»ØŦ¤¬¤¢¤Ã¤Æ½é¤á¤Æ¹­¤¯ÃΤé¤ì¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤½¤¦¤Ç¤¹¡£


¡üAVR128DA¤Ë¤â¤ä¤Ã¤Ñ¤ê¤¢¤«¤ó¥¨¥é¥Ã¥¿
¤½¤·¤Æ»ä¤¬»ý¤Ã¤Æ¤¤¤ëAVR128DA¤â¥Õ¥é¥·¥å¥á¥â¥ê¤¬¤é¤ß¤Î¥¨¥é¥Ã¥¿¤¬¤¢¤ê¤Þ¤¹¤¬¡¢
¤½¤ì¤Ï²¼µ­¤Î¾ò·ï¤¬¤¹¤Ù¤Æ½Å¤Ê¤Ã¤¿»þ¤Ëµ¯¤³¤ê¤Þ¤¹¡£

­¡¥Õ¥é¥Ã¥·¥åÎΰè¤ò¥Ç¡¼¥¿Îΰè¤Î0x8000¤«¤é32kBʬ¤ò¥Þ¥Ã¥Ô¥ó¥°¤·¤ÆÆɤ߽ñ¤­¤¹¤ë
­¢FUSEÎΰè¤ÎBOOTCODE¤Ë0°Ê³°¤Î¿ôÃͤ¬Æþ¤Ã¤Æ¤¤¤ë(=APPCODEÎΰè¤òÍ­¸ú¤Ë¤¹¤ë)
­£NVMCTRL.CTRLB¤ÎBOOTRP¤ò¤¿¤Æ¤Æ¥Ö¡¼¥ÈÎΰè¤Î¥×¥í¥Æ¥¯¥·¥ç¥ó¤ò¹Ô¤¦

¾åµ­¤¹¤Ù¤Æ¤¬½Å¤Ê¤ë¤È32kB¶èÀÚ¤ê¤Î¤É¤ÎÎΰè¤ò¥Þ¥Ã¥Ô¥ó¥°¤·¤Æ¤âºÇ½é¤ÎBOOTCODE¤Î
Îΰ褬Ƭ¤Î¤Û¤¦¤Ë¤«¤Ö¤µ¤Ã¤Æ¤­¤ä¤¬¤ê¤Þ¤¹¡ª¡ª


¢¬Ä¶¤ï¤«¤ê¤Å¤é¤¤¸ø¼°¤Î¥¨¥é¥Ã¥¿¥·¡¼¥È¤Î²òÀâDA!¡£


¥Ö¡¼¥ÈÎΰè¤òÀßÄꤷ¤Ê¤«¤Ã¤¿¤êLPM¤Ç¥Õ¥é¥Ã¥·¥åÎΰè¤Î¥Ç¡¼¥¿¤ÎÆɤ߼è¤ê¤¹¤ë¤Ê¤é
Á´¤¯µ¤¤Ë¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¤¬¤»¤Ã¤«¤¯¥Ç¡¼¥¿Îΰè¤Ë¥Õ¥é¥Ã¥·¥åÎΰè¤Î¥Ç¡¼¥¿¤ò
¥Þ¥Ã¥Ô¥ó¥°¤Ç¤­¤ë¤Î¤Ç¤¹¤«¤é¤»¤á¤Æ³èÍѤϤ·¤¿¤¤¤Ç¤¹¤è¤Í¡Ä¡ª


¡üAVR-Dx¤òµß¤¤¤¿¤¤
¤È¤¤¤¦¤ï¤±¤Ç¤»¤á¤Æ32kBʬ¤À¤±¤Ç¤âPROGMEM¤·¤Ê¤¤¤ÇSTM32¤È¤«¤ÈƱ¤¸¤è¤¦¤Ë
const¤ÊÃͤòÃÖ¤¤¤Æ¤ß¤¿¤«¤Ã¤¿¤Î¤Ç¾åµ­¥¨¥é¥Ã¥¿¤òƧ¤Þ¤Ê¤¤¤è¤¦¤ËÇÛθ¤·¤¿¤¦¤¨¤Ç
¥ê¥ó¥«¥¹¥¯¥ê¥×¥È¤ò¤¤¤¸¤ê¥Õ¥é¥Ã¥·¥åÎΰè¤Î¥Þ¥Ã¥Ô¥ó¥°µ¡Ç½¤òºÇÂç¸Â¤Ë³èÍѤ¹¤ë
ºîÀï¤ò¼è¤ê¤Þ¤·¤¿¡ª


£±¡¥Ä̾ïÈǤξì¹ç

¥Þ¥Ã¥Ô¥ó¥°¤ò»ÈÍѤ»¤ºÁÇľ¤ËPROGMEM¤·¤¿¾ì¹ç¤Î¥×¥é¥ó¤Ç¤¹¡£
128kByte¼«Í³¤Ë»È¤¨¤Þ¤¹¤¬64kB°Ê¾å¤ÎPROGMEM¤ÎÆɤ߽Ф·¤Ïfar¥Ý¥¤¥ó¥¿¤ò
»ÈÍѤ¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£


¤Ê¤ª¡¢»ä¤Ï»È¤ª¤¦¤È¤¹¤ëAVR¤Î¥Õ¥é¥Ã¥·¥åÍÆÎ̤ò¸«¤Æfar»È¤¦¤«»È¤ï¤Ê¤¤¤«¤ò»È¤¤Ê¬¤±
¤é¤ì¤ë¤è¤¦¤Ë¤·¤Æ¤Þ¤¹¡£¤·¤«¤·¤Ê¤ó¤Ç¤â¤«¤ó¤Ç¤âfar¤Ë¤¹¤ë¤È¤Ù¤é¤Ü¤¦¤Ë¥ê¥½¡¼¥¹¤ò
¿©¤Ã¤Æ¤·¤Þ¤¤¤Þ¤¹¤Î¤ÇChaN»Õ¤ËÊ襤far¤Ï¤Ê¤ë¤Ù¤¯»ÈÍѤ·¤Ê¤¤Êý¤¬µÈ¤Ç¤¹¡£

£²¡¥¥Þ¥Ã¥Ô¥ó¥°¤¢¤ê&¥Õ¥é¥Ã¥·¥åÍÆÎÌ32kB¤Î¥Þ¥¤¥³¥ó¤È¤·¤Æ»È¤¦

ÂŶ¨°Æ¤½¤Î1¡£AVR128DA¤ò32kBʬ¤·¤«»È¤ï¤º»Ä¤ê96kB¤Ï¸«¤Ê¤«¤Ã¤¿¤³¤È¤Ë¤·¤¿¤é
32kByteÁ´°è¤ËPROGMEM¤·¤Ê¤¤¤Ç¤âconst¤À¤±¤Ç¥¢¥¯¥»¥¹¤Ç¤­¤ë¤ï♥ŽÔŽ¯ŽÀŽ°!
¤Ã¤Æ¤¢¤Û¤«¡ª


£³¡¥¥Þ¥Ã¥Ô¥ó¥°¤¢¤ê&rodata¤À¤±ºÇ½ª¥»¥¯¥¿¤Ë²¡¤·¹þ¤à¡£

ÂŶ¨°Æ¤½¤Î2.¥ê¥ó¥«¥¹¥¯¥ê¥×¥È¤ò¤¤¤¸¤¯¤êÅݤ·¤Ærodata¤À¤±96kB°Ê¹ß¤Ë²¡¤·¹þ¤ó¤Ç
¤³¤ÎÎΰè¤ò¥Þ¥Ã¥Ô¥ó¥°¤¹¤ë¡ª
¤³¤ì¤¬°ìÈÖÂŶ¨¤Ç¤­¤Æ̵Æñ¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡©FONTX2¤ß¤¿¤¤¤ÊÇϼ¯¤Ç¤«¤¤
¥Õ¥¡¥¤¥ë¤ª¤«¤Ê¤¤¸Â¤ê¤Ï¥ê¡¼¥ÉÀìÍÑÎΰè32kB¤Ï½½Ê¬¤¹¤®¤ë¤È»×¤¤¤Þ¤¹¤è¤¥¡£




¥ê¥ó¥«¥¹¥¯¥ê¥×¥È¤Î¤¤¤¸¤ëºÝ¤Î¥ß¥½¤Ï__RODATA_PM_OFFSET__¤Ë¥Ç¡¼¥¿Îΰè¤Ø
¥Þ¥Ã¥Ô¥ó¥°¤µ¤ì¤¿¥¢¥É¥ì¥¹0x8000¤ò»ØÄꤹ¤ë¤³¤È¤Ètext¤Î¼¡¤Ërodata¤¬
Íè¤ë¤è¤¦¤Ë¤¹¤ë¤³¤È(½ÅÍ×)
½çÈְִ㤨¤¿¤é¥Ó¥ë¥É¤¬Ä̤é¤Ê¤¤¤Ç¤¹¡£


¤³¤ó¤Ê¤ï¤±¤ÇAVR¡ÝDx¥·¥ê¡¼¥º¤ÎÇä¤ê¤Î°ì¤Ä¤À¤Ã¤¿¥Õ¥é¥Ã¥·¥åÎΰè¤Î¥Ç¡¼¥¿Îΰè¤Ø¤Î
¥Þ¥Ã¥Ô¥ó¥°¤â°ì±þ»È¤¤¤â¤Î¤Ë¤Ê¤Ã¤Æ¤­¤Þ¤·¤¿¤Î¤Ç¾¯¤·¤Ïµß¤¤¤Ë¤Ê¤Ã¤¿¤«¤È»×¤¤¤Þ¤¹¡ª


º£²ó¤Î¥½¡¼¥¹¥³¡¼¥É¤Ï¢­¤Ë¤Ê¤ê¤Þ¤¹¡£²óÏ©¤ÏAVR128DA48-CuriosityNANO¤Ë½àµò¤·¤¿
¤Ä¤¯¤ê¤È¤Ê¤Ã¤Æ¤ª¤ê¤Þ¤¹¤¬ÀßÄê¤òÊѤ¨¤Æ¥Ó¥ë¥É¤·¤¿¤éDB¥·¥ê¡¼¥º¤Ç¤â»ÈÍѲÄǽ¤Ç¤¹¡£
AVR-DA¤È¤«DB¤È¤«Çã¤Ã¤¿¤Ï¤¤¤¤¤â¤Î¤Î»ý¤Æ;¤·¤Æ¤ëÊý¤Ï¤ª»î¤·¤¯¤À¤µ¤¤¡£

AVR128DA48 CuriosityNANO TestProgram.



¡üAVR-XMEGA¡¢¤ªÁ°¤Ïµß¤¨¤Ê¤¤

¾å¤Ç¤Á¤ç¤Ã¤È¿¨¤ì¤¿far»È¤¦»È¤ï¤Ê¤¤¤ÎȽÄê¤Ç¤¹¤¬XMEGA¤Ë¤â²£Å¸³«¤·¤Þ¤·¤¿¡£
ÂоݤÏChaN»á¤ÎAVRÈÇxprintf¤È»ä¤ÎavrÈÇfontx2¥É¥é¥¤¥Ð¤Ç¤¹¡£
FONTX2¥É¥é¥¤¥Ð¤È¤«¥µ¥¤¥º¤Ç¤«¤¤¤«¤é¤µ¤¤¤Ã¤·¤ç¤Ã¤«¤éfarɬ¿Ü¤Ç¤·¤ç
¤È¤ª»×¤¤¤«¤â¤·¤ì¤Þ¤»¤ó¤¬ank¥³¡¼¥É¤À¤±¤Ê¤é10kbyte¤â¤Ê¤¤¤â¤Î¤¬
¤¢¤ë¤Î¤Ç¾¯¤·¤Ç¤â¥ê¥½¡¼¥¹¸º¤é¤¹¤¿¤á¤ËÄɲ䷤Ƥߤޤ·¤¿¡£

¤Ê¤ó¤È¤¤¤¦¤«4ǯ¤Ö¤ê¤Îxmega¤Î¹¹¿·¤ò¤·¤Þ¤·¤¿¤¬¤³¤³¤Þ¤Ç¥×¥í¥°¥é¥à¤Îµ¬ÌϤ¬
¤Ç¤«¤¯¤Ê¤ë¤È¤ä¤Ï¤êSTM32¤È¤«¤Î32bit¥Þ¥¤¥³¥ó¤Î¤Û¤¦¤¬»È¤¤¤ä¤¹¤¤¤Ê¤È´¶¤¸¤Þ¤¹¡£

°ìÊýAVR»È¤¦¤Ê¤é¥Õ¥é¥Ã¥·¥åÍÆÎÌ32kB°Ê²¼¤Î¤â¤Î¤ò»È¤Ã¤Æ¤¤¤¯¤Î¤¬Å¬ºàŬ½ê¤«¤Ê¤È
´¶¤¸¤Æ¤Þ¤¹¡£¿Ê²½¤ÎÂÞ¾®Ï©¤ËÆþ¤ê¤³¤ó¤ÀXMEGA¡£¤½¤³¤«¤éÀ¸¤Þ¤ì¤¿AVR-Dx¤Ï
¤É¤³¤Þ¤ÇÀµÅö¤Ê¿Ê²½¤ò³¤±¤é¤ì¤ë¤Î¤«¡©
¤³¤ì¤«¤é¤Î³èÌö¤ò¸«ÆϤ±¤¿¤¤¤È»×¤¤¤Þ¤¹¡ª




¤ª¤Þ¤±


Ķµ×¤·¤Ö¤ê¤ËXMEGA¿¨¤Ã¤¿¤«¤éA¤ÈAU¤Î°ã¤¤¤Ã¤Æ²¿¤À¤í¤¦¤ÈÄ´¤Ù¤¿¤éUSBµ¡Ç½ÄɲäÎ
¤Û¤«¤ËPORTL¤¬Â¸ºß¤·¤Ê¤¯¤ÆÉÔ²Äǽ¤À¤Ã¤¿4Port-EBI¤¬´°Á´¤Ë»ÈÍѤǤ­¤ë¤Î¤¬È½ÌÀ¡ª
º£¤µ¤éÃÙ¤¤¤ó¤ÀYO!

Comments

Post a Comment








Go to top of page