ã¤ã³ã¿ã¼ãã§ã¼ã¹ä»é²ãã¤ã³ã³ã試ã(1)
å
æ¥ææã«ãã¤ã¾ã£ã¦ã¤ã³ã¿ã¼ãã§ã¼ã¹ä»é²åºç¤ã§éãã§ãã¾ããã
âInterface ä»é²ColdFireåºæ¿ç¹è¨ãã¼ã¸
ã68000ã®æµããæ±²ãColdFireãã¤ã³ã³(MCF52233)ã®åºç¤ã§ãã
ãã¤ã¼ãµãããã®I/Fãããã®ã§ã³ãã¯ã¿ãã¤ããã°LANã«ãã¤ãªããã¾ããããããå¿ç¨ã§ãããã§ããã
3åè²·ã£ã¡ããã¾ããã
â ãããæ©éçµã¿ç«ã¦ã¦ã¿ãã
ããã«ã¹ãã©ã³ã¹å
¥ãã®ã¤ã¼ãµãããã®ã½ã±ããï¼RJ45ï¼ãé»æºã®ï¼¡ï¼£ã¢ããã¿ãDCã³ãã¯ã¿ããå¿
è¦ãªã®ã§ãããééã£ãé¨åãã£ã¦ãã¤ã¾ããªãã®ã§è¥æ¾éåã§å£²ã£ã¦ãå
¨é¨ããã»ãããè²·ã£ã¦ãã¾ããï¼ã¤ã³ã¿ã¼ãã§ã¼ã¹ 9æå·ä»é² åºæ¿å¨è¾ºå®è£
é¨åä¸å¼ï¼ãã©ã¸ãªä¼é¤¨ï¼éã®ãåºã§å£²ã£ã¦ã¾ãï¼ã¢ã¾ã³ã®é£ï½ï¼ãï¼ï¼ï¼ï¼åã
ããã«ã¹ãã©ã³ã¹å
èRJ45ã½ã±ããã790åã§åå売ããã¦ããã®ã§æ¬¡ããã¯ããã ããè²·ãã°ããã§ãããã
é¨ååãä»ãã¤ã¡ã¼ã¸
åãä»ãå®äº
LANã«ã¤ãªãã ãã¡ããã¨ã©ã³ããã¤ãããï¼
HUBå´ã§ã¯10Mbpsã§èªèï¼ãã¨ã§è¨å®ãã¡ã¤ã«å¤æ´ããã100Mbpsã§æ¥ç¶ã§ãã¾ããï¼ã
ãªã»ããã¹ã¤ãããåãä»ãã
ï¼°ï¼£ããPingãéã
Telnetã§æ¥ç¶ãã¦ãMACã¢ãã¬ã¹è¨å®ã
è¨å®ãã¼ã«ã¯ãSilentCã§æ¸ããã¦ããã®ãã
ãªãã¨Webãµã¼ããåãã¦ããã
å é度ã»ã³ãµã¼ï¼åºæ¿ä¸ã«è¼ã£ã¦ãï¼ã®å¤ã表示ããCGI
ãããããã
ãã©ã¦ã¶ãããã¼ãã®ON/OFFãã§ããã®ã§ã
ãã¬ãããã¼ãã«ã®ãã¦LEDãON/OFFãã¦ã¿ãã
æåã
(ãã¬ãããã¼ãã«ã®ããããå¹
ãããããã§ãããã¨ããããçå´ã®ãã³ããã¤ãããªãã®ã§ãããã¦è¼ããï¼
ãã¤ã³ã³ãã¼ãã®IPã¢ãã¬ã¹ãªã©ããã©ã¦ã¶ã§è¨å®ã§ãã¾ãã
ï¼ãã©ã¦ã¶ããCGIã¨ãã¦SilentCã§æ¸ãããããã°ã©ã ãå¼ã³åºãä»çµã¿ã«ãªã£ã¦ã¾ããï¼
ãå
èµã®SilentCã¯ãæã®BASICã¿ããã«è¡çªå·ã¤ãã§ããã°ã©ãã³ã°ãã¾ãã
ãTELNETã§ã¤ãªãã ããã®ã¾ã¾ããã°ã©ã éå§ã
ãã¤ã³ã¿ããªã¿ãªã®ã§è©¦ããªããçµããã®ãããã§ããã
ããã¦ãã§ã¯æå§ãã«LED ON/OFFã§ããã¦ã¿ã£ãã»ã»ã»
ãã¨æã£ãããGPIOãæä½ããé¢æ°ãããã¾ããããã¼ï¼
ãD/Aã³ã³ãã¼ã¿ã¼ã使ã£ãã¢ããã°å
¥åããã·ãªã¢ã«å
¥åºåã®é¢æ°ç¾¤ã¯ããã®ã«åºæ¬ã½ãGPIOããªããªãã¦ã»ã»ã»ãã³ã¹ã«
ããã¼ããã»ãã®æ©è½ã¨ã¶ã¤ããããããã¦å®è£ ããªãã£ãã®ããã
ãããã¯ããã©ã¤ãã¼ã¨ãæ¸ããªãã¨ãããªãã®ããªã»ã»ã»ã¨æãã¾ããããããããããããI/Oãã¼ãã¯ã¡ã¢ãªããããã ããå½è©²çªå°ã®ã¡ã¢ãªãæ®éã«èªã¿æ¸ãããã°ããã®ãã
ãã¨ããããã¤ã³ã¿ã¼ãã§ã¼ã¹èªã«ã®ã£ã¦ãã¡ã¢ãªããããã¿ãã¨ã0x40000000çªå°ãããI/Oãã¼ãã®ããã§ãï¼32bitãã¤ã³ã³ã¯ã¢ãã¬ã¹ãé·ããªã¼ï¼ã
ããã®è¾ºããã³ããã¦è¦ã¾ããã
10 main() {
20 PrStr("START\n");
50 char *a;
60 int i;
70 a = 0x40000000;
80 for ( i=0; i<1024; i++ ) {
90 PrHex( a );
100 PrChar( ':' );
110 PrHex( *a );
120 PrStr("\r\n");
130 a++;
140 }
150 }
save Main
ãã¦
run
40000000:00000040 40000001:00000000 40000002:00000000 40000003:00000001 40000004:00000000 40000005:00000000 40000006:00000000 40000007:00000000 40000008:00000020 40000009:00000000 4000000a:00000002 4000000b:00000000 4000000c:00000000 4000000d:00000000 4000000e:00000024 4000000f:00000000 40000010:ffffff80 40000011:00000001 40000012:00000000 40000013:00000000 40000014:00000000 40000015:00000000 40000016:00000000 40000017:00000000 40000018:00000000 40000019:00000040 4000001a:00000000 4000001b:0000000c 4000001c:00000030 4000001d:ffffffe1 4000001e:00000000 4000001f:00000000 40000020:00000003
ããããªããããã£ã½ããã¼ã¿ã表示ããããã
ãã§ãéä¸ã§ãã³ã°ã¢ããããªãããã¢ã¯ã»ã¹ãã¦ã¯ãããªãã¨ããèªãã§ãã¾ã£ãããã§ã(4000007e)ã
ãã¾ãã§ããSilentCã§ããã¤ã³ã¿ã¯æ®éã«ä½¿ãããã¨ãããã£ã¦ä¸å®å¿ã
ãããããColdFireã®ãªãã¡ã¬ã³ã¹ããã¥ã¢ã«ãè¦ã¦ã¨ã»ã»ã»
ãChapter 14 General Purpose I/O Moduleã
ããªããGPIOãã£ã±ãããã»ã»ã»
ãPORT DD,AS,QS,TA,TD,TC,UC,UB,UA,AN,NQ,LD,GP
ãã¨ããããåºç¤ã®å³å´ã«ã§ã¦ãã®ã¯ãTA(GPT[0]-[3])ã¨ãAN(PAN[0]-[7])ã ãªã
ãããããæ©éæä½ãã¦ã¿ãã»ã»ã»ããï¼
ãªãã§ãããªã«å¶å¾¡ããªãã¨ãããªãã¬ã¸ã¹ã¿ã¼ãããã®ã¼ï¼
Port Output Data Registers
Port Data Direction Registers
Port Pin Data/Set Data Registers
Port Clear Output Data Registers
Port Pin Assignment Registers
Port Pad Control Registers
ãHCS08ã§ããã¨ããã®PTAD,PTADD,PTAPE ã¨ãã«ç¸å½ããã®ã£ã¦ã©ãï¼ãâãã¾ã³ã³
â åèURL
ã»ãã¼ã¿ã·ã¼ã
http://www.freescale.com/files/32bit/doc/data_sheet/MCF52235DS.pdf
ã»ãªãã¡ã¬ã³ã¹ããã¥ã¢ã«
http://www.freescale.com/files/32bit/doc/ref_manual/MCF52235RM.pdf
ã»ä»é²åºç¤ã®åè·¯å³
http://www.cqpub.co.jp/interface/download/2008/09/kairozu.pdf
ã»å é度ã»ã³ãµã¼ã®ãã¼ã¿ã·ã¼ã(MMA7360)
http://www.freescale.co.jp/pdf/MMA7360Lr1.pdf