èšäºã®æåã®éšåã§ã FXS GSMã²ãŒããŠã§ã€ã®èæ¯ã«ã€ããŠäŒè©±ã®é²é³ã§èª¬æããæåã®ããŒãžã§ã³ã§ç¯ããééãã2çªç®ã®ããŒãžã§ã³ã§ã®ä¿®æ£æ¹æ³ã«ã€ããŠèª¬æããŸããã é»æºãé³å£°ïŒããžã¿ã«ããã³ã¢ããã°ïŒãé»è©±åç·ãªã©ããã¹ãŠãå¶åŸ¡ãããã€ã¯ãã³ã³ãããŒã©ãŒãã²ãŒããŠã§ã€ã®äžå¿ã«ãªããŸããã
èªå·±èšºææ©èœãåè·¯ã«å°å ¥ãããŸããã ãã®ç®çã®ããã«ã枬å®åè·¯ãé»æºç®¡çåè·¯ãå話åšã®æã¡äžããé»æºãšéèŠãªããŒãã®è² è·ãã¹ãçšã®åè·¯ãã²ãŒããŠã§ã€ã«è¿œå ãããŸããã PCãšã®éä¿¡ããã³ç¹æ» ã®ããã«ãUSB-USARTããªããžãã€ã³ã¹ããŒã«ãããŠãããããã°ã©ããŒãšããŠæ©èœã§ããŸãã
ãã®èšäºãšæ¬¡ã®èšäºã§ã¯ããã¹ããã¡ãŒã ãŠã§ã¢ã«ã€ããŠèª¬æããŸããåšèŸºå šäœãã©ã®ããã«ãã¹ãããããã©ã®ãããªã¢ã€ãã¢ãããã«å ¥ãããããããã¹ããã°åæãäŸãšããŠäœ¿çšããŠã©ã®ããã«å®è£ ããããã§ãã
ãã¡ãŒã ãŠã§ã¢ãã§ãã¯ã®ãã¹ãïŒ
- ppmã®ç²ŸåºŠã®ã¯ããã¯åšæ³¢æ°ã
- é£åã®ãã¹ãŠã®æã
- ãã¹ãŠã®ããã»ããµã¬ãã°ã
- LED
- é»è©±åç·ã®ãœãŒã¹ã
- é»è©±åç·ããã®é³ã®çºè¡ãšåä¿¡ã åšæ³¢æ°å¿ç ã THD ããã€ãºã¬ãã«ã
- GSMã¢ãžã¥ãŒã«ã
- SDã«ãŒãã
ãã¹ããã°å šäœ
Habréã§ãå®éã®æ¢å補åã®çç£ãã¹ãçšããã°ã©ã ã«é¢ããèšäºã1ã€ãèŠã€ãããŸããã§ããã ãããã£ãŠãç§ãæåã§ããããšãé¡ã£ãŠããŸãã ããã§ãªãå Žåã¯ãä»ã®äººã®èšäºãèªã¿ããã§ãã
蚺æã·ã¹ãã ã®èŠçŽ
ã¢ã»ã³ããªåŸã®åæ蚺æãšãœãŒãã®ããã«ãã¡ãŒã ãŠã§ã¢ããã¹ãããŸã ã ããã€ã¹ã§å®è¡ãããŸãã PCã®å©ããåããã«ãã¹ãŠã®èšºæãè¡ããŸãã PCã®çç£ããã°ã©ã ã«çµæãæäŸããŸãã æåã®èµ·åæã«ããã¹ãŠã®ãã¹ããå®è¡ãããŸãã ãã®åŸã®åŠçïŒãã¹ãŠã®ãã¹ããå®è¡ãããã1ã€ã®ãã¹ãã°ã«ãŒãããéžæããããæåå¶åŸ¡ã¢ãŒãã®ãããããå®è¡ããŸãã
ã¯ã©ã€ã¢ã³ãçšã®åºæ¬ãã¡ãŒã ãŠã§ã¢ ã ããã€ã¹ã§å®è¡ãããŸãã ãã¹ããæåãããšããšã©ãŒãªãã§æ¬çªããã°ã©ã ã«ãã£ãŠèªåçã«ãã©ãã·ã¥ãããŸãã
PCã®æ¬çªããã°ã©ã ã¯ãã¯ã©ã€ã¢ã³ãã®ãã¹ããŸãã¯ã¡ã€ã³ãã¡ãŒã ãŠã§ã¢ã§ã²ãŒããŠã§ã€ããã©ãã·ã¥ããè€æ°ã®ããã°ã©ã ã®è€åäœã§ãã ããã€ã¹ã«æ¥ç¶ããããããããŒã¿ãèšé²ããŸãã æŒãããF1 ... F9ãESCãã¿ã³ãåäœäžã®ãã¡ãŒã ãŠã§ã¢ã«éä¿¡ããŸãã ãã°ã®ã¢ãŒã«ã€ããä¿æããŸãã 圌ã¯IMEIãã°ãã·ãªã¢ã«çªå·ããã¡ãŒã ãŠã§ã¢ããŒãžã§ã³ããŠãŒã¶ãŒã¢ã¯ã·ã§ã³ãã°ã管çããŠããŸãã çµ±èšããšã©ãŒæ°ãã«ãŠã³ãããŸãã ã³ã¬ã¯ã¿ãŒãéçºè ãæ°è±¡åŠè ã®è·å Žéã§åæãå®è¡ããŸãã æå®ããããã©ã¡ãŒã¿ãªã©ã§ãã°ãã«ããã§ããŸãã ããã«ã€ããŠã¯ãèšäºã®ç¬¬3éšã§èª¬æããŸãã
ãã¹ããšã³ãŒã²ãŒããŠã§ã€ã¯ããšã³ãŒã¢ãŒãã§åä¿¡ãããµãŠã³ããGSMãããã¯ãŒã¯ã«åºåããç¹å¥ãªãã¡ãŒã ãŠã§ã¢ãåããã²ãŒããŠã§ã€ã§ãã GSMãã£ãã«ã®ãµãŠã³ãããã¹ãããGSMã¢ãžã¥ãŒã«ã®å®å®æ§ããã§ãã¯ããããã«ãçºä¿¡ãã¹ãçšã®ãã¹ããã¡ãŒã ãŠã§ã¢ã§äœ¿çšãããŸãã
åçŽãªãã¡ãŒã ãŠã§ã¢ããã°ã©ã ã¯ãæ¬çªããã°ã©ã ã®ç°¡æããŒãžã§ã³ã§ãããã¡ãŒã ãŠã§ã¢ãå¶åŸ¡ããæ®ãã®ãã°ãçµ±èšæ å ±ã§ç¶æããããšãªãããã©ãã·ã¥ããŠããã€ã¹ãããã°ãååŸããããšããã§ããŸããã 蚺æã®ããã«é¡§å®¢ã«æäŸãããŸãã ãŸãããã¡ãŒã ãŠã§ã¢ãæå·åããŠãããŒãããŒããŒãããã¡ãŒã ãŠã§ã¢ãæŽæ°ããããšãã§ããŸãã
WebãµãŒããŒã¯ ãGPRSããŒããŒã«ãã¡ãŒã ãŠã§ã¢ãçºè¡ããããã«ãããŒã¿ã®åæããã°ããã³ã¬ããŒãã®ã¢ãŒã«ã€ããšããã¯ã¢ããã«äœ¿çšãããŸãã
ãã¹ãããã°ã©ã ã«å®è£ ãããã¢ã€ãã¢
çç£ã«äŸ¿å©ãªãã°ã ãã®ãã°ã§ã¯ããã¹ãŠã®åãã¿ã€ãã®ããŒã¿ãããŒãã«ã«é 眮ããå¿ èŠããããå€ã¯ç解å¯èœãªå€ã§çœ²åããã蚱容éçã瀺ãããŸãã ãããŒã¡ãã»ãŒãžãå«ããã¹ãŠã®ã¢ã¯ã·ã§ã³ã衚瀺ãããããã°ã©ã ãåçµãããŠãããã©ãããç解ããã®ã«åœ¹ç«ã¡ãŸãã
éçºè ã«ãšã£ãŠäŸ¿å©ãªãã°ã äžéææšãå°ãåºãããããã«åºã¥ããŠæçµææšãèšç®ãããããã«åºã¥ããŠçµè«ãåºãããŸãã ãã°ã«ã¯å ¬åŒæ å ±ãå«ãŸããŠããå¿ èŠããããŸãïŒãœãŒã¹æ¥ä»ãMKããã®äžæã®IDã
æ°è±¡åŠè ã«ãšã£ãŠäŸ¿å©ãªãã°ã ãã¹ãŠã®æž¬å®å€ã¯é床ã«æ£ç¢ºã§ãªããã°ãªããŸããïŒäŸïŒããªãã«ããããªãã·ãã«ãªã©ïŒã ããã«ãããå€ãç¯å²ã®éçã«ã©ãã ãè¿ã¥ããŠããã®ããéçãã©ãã ãè¶ ããŠããã®ãã確èªã§ããŸãã 倧éã®ããŒã¿ããããè¡å šäœã«ã€ããŠå¶éã瀺ãããŠããªãå Žåãæãéžè±ããã€ã³ãžã±ãŒã¿ãŒã®è©äŸ¡ã衚瀺ãããŸãã ããã«ãããè©äŸ¡ã®æ°å€ãç®ã§èŠãŠãç¯å²ã®å¢çã«è¿ã¥ããŠããã€ã³ãžã±ãŒã¿ãããããšã確èªãããšäŸ¿å©ã§ãã è©äŸ¡ã¯ã-9ãã+9ãŸã§ã®è¡æ«ã®æåŸã®æ°åã§ãã0ã¯èš±å®¹ç¯å²ã®äžå€®ã§ãã
éä¿¡ãã£ãã«é害ã®è¡šç€ºã ãã°ã«ã¯ã7ãããASCIIã¢ãŒãã§ã®ã¿æåã衚瀺ãããæ²ãã£ãaglitskyã§ã¯ã©ãã³æåã®ã¿ã衚瀺ãããŸãã ã·ãªã¢ã«ããŒãã¯ãããªãã£ä»ãã§8ãããã«èšå®ãããŸãã ãã°ãåºåããå®åããã°ã©ã ã§ã¯ãã³ãŒãã32æªæºãŸãã¯127ãè¶ ããæåãæã€ãã¹ãŠã®è¡ã¯ãšã©ãŒãšããŠã«ãŠã³ããããæããèµ€ã§è¡šç€ºãããŸãã
ãµãŒãããŒãã£ããã°ã©ã ã«ãã䟿å©ãªåŠçã ãããè¡ãã«ã¯ããã¹ãŠã®æž¬å®å€ãšå€ããŒãã«ãã¿ãã§å²ãŸããŸãã ãã®åœ¢åŒã¯ãããŒã¿ããŒã¹ãŸãã¯Excellã§äœ¿çšãããšäŸ¿å©ã§ãã çç£ããã°ã©ã ã¯ãããè²ã§æšæºã匷調衚瀺ããå¥ã®è²ã§ãšã©ãŒã匷調衚瀺ã§ããå¿ èŠããããŸãã ãã®ãããæšæºã¯ãOKããšããåèªã§çœ²åãããŠããããšã©ãŒã¯ãERRORãã§ãã èŠç¯ãšãšã©ãŒã®èšç®ããããã®çµ±èšãšçŽ¢åŒä»ãã
çµ±èšãä¿æããæ©èœã åãã©ã¡ãŒã¿ãŒã«ã¯åºæã®ååãå¿ èŠã§ãã å®åããã°ã©ã ã§ãã®ååã䜿çšãããšããã¹ãŠã®ãã°ã暪æããéžæãããã©ã¡ãŒã¿ãŒãã©ã®ããã«å€æŽããããã確èªããã°ã©ããäœæã§ããŸãã
èªçµŠèªè¶³ã ãã¹ãã§ã¯ãããŸããŸãªæ¹æ³ã§å€ãã®ãã©ã¡ãŒã¿ãŒãäœåºŠããã§ãã¯ããå¿ èŠããããŸãã ãããã¯åé·ã§ãªããã°ãªããŸããã å¯èœãªéãå€ãã®ææšã¯ãä»ã®ã¢ã«ãŽãªãºã ãšæ¹æ³ã«ãã£ãŠè¡ãããä»ã®çŽæ¥çããã³éæ¥çãªæž¬å®ã«ãã£ãŠè€è£œãããã¹ãã§ãã ããããªããšãäœã倱æããã®ããæ確ã«ãªããŸããïŒåè·¯ãããŒãããã¹ãã¢ã«ãŽãªãºã èªäœããŸãã¯ééã£ãã¢ã¯ã·ã§ã³ã ãŸããåæã§ã¯ãåäžã®ãã£ã¡ã³ã·ã§ã³ã«ãéµç©Žããäœãããããéèšã§èŠãæ¹ãã¯ããã«ç°¡åã§ãã
ãã°ã¯å€§ãããªãã¯ãã§ãã äžéšã®ãã©ã¡ãŒã¿ãŒã¯ãå¶é眲åãªãã§å®è¡ããå¿ èŠããããŸããã ãããã®å€ããããããã°ã¯10ããŒãžãè¶ ããŠã¯ãªããŸããã
æãå°é£ãªããšã¯ãããããã¹ãŠã®èŠä»¶ãçµåããããšã§ããã ãµã€ãºã®å¶éã«ãããçç£ã®å©äŸ¿æ§ãç ç²ã«ãã-9ã+9ã®ã¬ãŒãã£ã³ã°ã®æŸèæãäœæããå¿ èŠããããŸããã ä»ã®ããšãããšãã°ã¡ãŒã«ã®å®çŸ©ã åãã³ã®ãã©ã¡ãŒã¿ãŒããããžãã¯ãã³ããŒãã«å€æããåãã³ã«äœããã®çµè«ãè¿œå ããå¿ èŠããããŸããã å¶äœã§ã¯ãŸã å€ãã®ãããŸããªæå³ããããšæ¹å€ããŠããŸãããããã¯åŠ¥åã§ãã äœããæ®ã£ãŠããã®ã¯ãåã«æ²ããããã£ãŠè¡ãããããã§ãããæ¹é ããã«ã¯é ãããŸãã人ã ã¯ããã«æ £ããŠããŸãã
ãã¹ããã°ã®èª¬æ
å«ãŸãããã®ãšãµãŒãã¹æ
å ±
ãã¹ããã¡ãŒã ãŠã§ã¢ã®éå§æã«ããããžã§ã¯ãã«å«ãŸãããã¹ãŠã®ãã¡ã€ã«ã®ããããŒãšã³ã³ãã€ã«æ¥ãçºè¡ãããŸãã 次ã«ãäžæã®ãããIDçªå·ã3ã€ã®åœ¢åŒã§çºè¡ãããŸãããã®ãã¡ã®2ã€ã¯ã2ã€ã®ç°ãªãã¢ã«ãŽãªãºã ãšèŠãªããã16ãããããã·ã¥ã«ããæåå€æŽããä¿è·ãããŠããŸãã
次ã«ãã·ãªã¢ã«çªå·ã衚瀺ãããã²ãŒããŠã§ã€ã®ã¿ã€ãã決å®ããããã¹ããããã¡ã€ã«ãéžæãããŸãã çŸåšãã²ãŒããŠã§ã€ã«ã¯3ã€ã®ã¿ã€ãããããŸããäŒè©±ãé²é³ãããäŒè©±ãé²é³ããªããäŒè©±ãé²é³ããã«USBã䜿çšããªãå°åã§äœã³ã¹ãã®ã²ãŒããŠã§ã€ã§ãã USBãšSDã«ãŒããååšããããšãé€ããŠã3ã€ãã¹ãŠã®åè·¯ã¯åãã§ãã
次ã«ãæåã®å®è¡ã®ãã©ã°ããã§ãã¯ããããªã»ãããããŸãã æåã«å®è¡ãããšããã¹ãŠã®ãã¹ããå®è¡ãããŸãã ããã§ãªãå Žåã¯ãèµ·åãªãã·ã§ã³ãå«ãã¡ãã¥ãŒã衚瀺ãããŸãã
ã¯ã©ãŒãã®ã¯ããã¯åšæ³¢æ°ã確èªãã
以äžããã§ãã¯ãããŸãïŒå€éšã¯ã©ãŒãã8 MHzã§èµ·åãããããã¯ã©ãŒãã®äžå®å®æ§ã«å¯Ÿããä¿è·ãæ©èœããªãå Žåãäž¡æ¹ã®PLLãåäœããŠå®å®ããŠåäœããããæçµåšæ³¢æ°ãå¿
èŠãªåšæ³¢æ°ãšäžèŽãããã©ããã åšèŸºããã³ã³ã¢çšã®1ã€ã®PLLã¯åšæ³¢æ°ãæ倧160 MHzã§ä¹ç®ãããã1ã€ã®PLLã¯ããžã¿ã«I2SãµãŠã³ãã®åšæ³¢æ°ãæ倧256 kHzã§GSMã¢ãžã¥ãŒã«ã«åå²ããŸãã
ã¯ããã¯åšæ³¢æ°ããã§ãã¯ããåŸã«ã®ã¿ãæ®ãã®ãã©ã¡ãŒã¿ãŒããã§ãã¯ããã®ãçã«ããªã£ãŠããŸãã
ã¯ã©ãŒãã®ç¢ºèª
ã¯ã©ãŒãæèšãèµ·åããèµ·åã«ãããæéã衚瀺ãããŸãã 次ã«ãåºæ¬åšæ³¢æ°ã®æž¬å®ã§1ç§ã枬å®ããã160 MHzã®åºæ¬åšæ³¢æ°ãåºæºã«ããŠ100äžåã®1ïŒppmïŒã§åå·®ãèšç®ãããŸãã
åºæ¬çãªã¹ãã¬ã¹ãã¹ã
1ç§ä»¥å
ã«ãç¹å®ã®ADCãã£ãã«ã§10äžåã®ãµã³ãã«ãäœæãããŸãã
ãããŠã以äžã®ææšãèšç®ãããŸãïŒå·Šããå³ãžïŒïŒ
- å®æ°ã³ã³ããŒãã³ãïŒæµæã®åå§åšãèæ ®ããããªãã«ãåäœïŒ;
- äœåšæ³¢æåïŒé«åšæ³¢æåãããå€§å¹ ã«å€§ããå Žåãããã¯ãããã¯ãŒã¯ããã®å¹²æžã§ãïŒ;
- é«åšæ³¢æåïŒäœåšæ³¢æåãããå€§å¹ ã«å€§ããå Žåãããããé³ãŸãã¯äžå®å®ãªADCïŒ;
- ADCãµã³ãã«ã®æ倧ç¯å²ã
- -9ãã+9ãŸã§ã®ææªã®å Žåã®è©äŸ¡ã
ãã®ãã¹ãã¯ãä»ã®å€ãã®ãã¹ãã§åŸã§äœ¿çšãããŸãã
枬å®å€ïŒ
- DIAG_SENS -GSMã¢ãžã¥ãŒã«ã®é»æºã»ã³ãµãŒïŒåæç¶æ ã§ã¯ãªãã«ãªã£ãŠãããããäœãééãããŠãã€ãºãçºçãããªãã§ãã ããïŒã
- SLIC_LINEU-é»è©±åç·ã®é»å§ïŒåæç¶æ ã§ã¯ãåç·ããªãã«ãããã€ãºãçºçãããªãã§ãã ããïŒã
- FXS_ADC-é»è©±åç·ããã®é³ïŒãã¹ãäžã¯çºè¡ãããŸãã-ãããã£ãŠãç¡é³ã§ååã®é»åãå¿ èŠã§ãïŒã
- DVCC-ããžã¿ã«é»æºMKïŒãã€ãºããªãã¯ãã§ãïŒ;
- SD_VCC-ããžã¿ã«é»æºSDã«ãŒãïŒãªãã«ããå¿ èŠããããŸãïŒ;
- 12V_PWR-äžè¬çãªé»æº12 V;
- DVCC-Vbat-ãªããŠã é»æ± ã¿ãã¬ããããã¯ããã¯ã¢ãžã¥ãŒã«ãžã®ããžã¿ã«é»æºã
- VrefInt-å éšåºæºé»å§1.2 VïŒã¢ããã°é»æºãšADCãµããŒãããã§ãã¯ïŒ;
- Cã®æž©åºŠ-ãã¹ãŠã®ãã¹ããå®è¡ããåŸã®2çªç®ã®æž¬å®åŸã®æž©åºŠãšãã®å€åïŒã²ãŒããŠã§ã€ã¯å ç±ãããŸããïŒã
MKèã®æ¥å°ãŸãã¯é»æºãžã®ç絡ãã¹ã
ãã¹ãŠã®MKã¬ãã°ããã§ãã¯ãããæ¥ç¶ãããŠããŸããã ããã¯ãã¯ãã ä»ãã®å質ãå¶åŸ¡ããããã«è¡ãããŸãã
ãããã¯ãã0ããæžã蟌ãã§ãã0ããèªã¿åãããŠããããšã確èªããããšã«ãã£ãŠãã§ãã¯ãããŸãã 次ã«ã1ããæžã蟌ãŸããã1ãã®èªã¿åãããã§ãã¯ãããŸãã èã®åã«ããŸããŸãªåšèŸºæ©åšãæ¥ç¶ãããŠããããã1åã®ãã¹ãã§åœéœæ§ã«ãªãå¯èœæ§ãããããã100åã§ãã
é£æ¥ããMKèã®ç絡ãäžç·ã«ãã§ãã¯ããŸã
åã®ãã§ãã¯ãšåæ§ã«ãèšé²ã¯1ã€ã®MKãã£ãŒãã§è¡ãããèªã¿åãã¯æ¬¡ã®MKãã£ãŒãããè¡ãããŸãã ãŸãã100åã®è©Šè¡ãå®è¡ãããŸãããã®ãã¡ã®50åãäžæ¹ã®æ¹åã«ã50åãä»æ¹ã®æ¹åã«è¡ãããŸãã æ°åã¯æåããè©Šè¡ã瀺ããŸãã 25ã50ã®å€ãåŸãããã®ã¯ãã¬ãã°ã®äžéšãåäœåè·¯ã«æ¥ç¶ãããåºå®å€ã0ããŸãã¯ã1ããäŸçµŠãããããããã¹ãã®äžéšã§åœéœæ§ãæããã«ãªãããã§ãã ãã®ããããããå€ã¯100ã«è¿ãéžæãããŸãã
MKèã®é»æ°ãã©ã¡ãŒã¿ãŒã確èªãã
ãããŠãããããã®ããã«åãéæ³ã§ãïŒ
1.ã¬ãã°ã¯ã1ããåºåããããã«èšå®ãããå ¥åã¢ãŒãã«ç§»è¡ããŠã0ãã«ãªããŸã§ã®æéã枬å®ãããŸãã
2.ã¬ãã°ã¯ã0ããåºåããããã«èšå®ãããå ¥åã¢ãŒãã«ç§»è¡ããŠã1ãã«ãªããŸã§ã®æéã枬å®ãããŸãã
3.ããã³4. pã1ããã³pã2ãšåæ§ã§ãããå°é¢ãŸãã¯é»æºãžã®ãªããã§ã¢ãŒãã«è»¢éãããŸã-ããã«ãããã0ããŸãã¯ã1ãã«ãã°ããåãæ¿ããããšãã§ããŸãã
ãããã®ã¢ã¯ã·ã§ã³ã䜿çšãããšãèã®ãã£ãã·ãã£ãšãµã¹ãã³ããŒã®ååšãããã«ã¯é«ãæµæã枬å®ã§ããŸãã ããããé 延ã¯MKå ã®ç· ãä»ãã®å€§ããã«äŸåãã10åå€åããå¯èœæ§ãããããã枬å®ã¯éåžžã«ç²ããªããŸãã 枩床ãžã®äŸåã¯ãŸã ãããããã¯å€§ããç°ãªãå ŽåããããŸãã
æéå€ã¯å¯Ÿæ°ç®çã§è¡šç€ºãããŸãã ãã©ã°ã©ã1..4ã®çµæã«ãããšããããã®å€ã¯åè¡ã®æåã®4ã€ã®æ°å€ã«èšé²ãããŸãã
UARTãå«ããã¹ãŠã®ã¬ãã°ããã§ãã¯ãããŸãã åæã«ãäžè¯æåã¯UARTã«æ²¿ã£ãŠéãããŸãã
ãã®ãã¹ãã®ãã©ã¡ãŒã¿ãŒã®ã¿ã€ãïŒ
- hi_Z -10 pFæªæºã®éåžžã«å°ããªå®¹éã®é«ã€ã³ããŒãã³ã¹ç¶æ ã
- hi_Z + C_pF-容éã10ã1000 pFã®é«ã€ã³ããŒãã³ã¹ç¶æ ã
- hi_Z + C_nF-ãã£ãã·ã¿ã³ã¹1ã1000 nFã®é«ã€ã³ããŒãã³ã¹ç¶æ ã
- hi_Z + C_uF-容éã1ãã€ã¯ããã¡ã©ãã以äžã®é«ã€ã³ããŒãã³ã¹ç¶æ ã
- Pull_Down-ã°ã©ã³ããžã®äœã€ã³ããŒãã³ã¹ãã« ;
- Pull_Down_M-å°é¢ãžã®é«æµæãã« ã
- Pull_Up-é»æºãžã®äœæµæãã«ã¢ããã
- Pull_Up_M-é»æºãžã®é«æµæãã«ã¢ããã
- ä¿®æ£æžã¿ -èã®ç¶æ ã¯ããã®ã¢ã¯ã·ã§ã³ã«äŸåããŸããã
- ïŒç©ºã®ã©ã€ã³ïŒ -ç¶æ ãå€å¥ã§ããŸããã§ããïŒããšãã°ãã©ã€ã³ããã®ãªãã¢ã³ãåºåãæ¥ç¶ãããŠããã¬ãã°ã§ïŒã
2è²LEDã®ãã¹ã
å2è²LEDã¯ãç°ãªãè²ã®2ã€ã®ãªã³ãªãLEDãè¡šããŸãã ãã§ãã¯ã®æ¬è³ªã¯ã1ãŸãã¯0ããŸãã¯ã°ã©ãŠã³ããŸãã¯é»æºãžã®ãã«ã¢ããããŸãã¯é«ã€ã³ããŒãã³ã¹ãLEDã®äžæ¹ã®ã¬ãã°ã«é©çšãããããšã§ãã ãŸããLEDã®ããäžæ¹ã®èã§ã¯ããã®å¹æã«å¯Ÿããé»æ°çç¶æ
ã®åå¿ã確èªãããŸãã ãã®åŸã圌ãã¯å Žæãå€æŽããçµæã«åºã¥ããŠæ±ºå®ãäžãããŸãã
ããšãã°ããã³62ã§ãã«ã¢ãããVD1_MCU_62ãã«ã¢ãããé»æºããªã³ã«ãããã³61ã®ç¶æ ã枬å®ããŸããããã¯ãã«ã¢ãããšåãã«ãªããŸããããé«æµæã®ãVD1_MCU_61 Pull_UP_Mãã§ãã
ãã¹ãŠã®LEDãåãæ¹æ³ã§ãªã³ã«ãªãããã§ã¯ãªããäžéšã®LEDã«ã¯ãã¬ãŒã¹ãŸãã¯ãã®ä»ã®æ©èœããããŸãã ããã¯ãLEDãã¹ããã°ã§èæ ®ãããŸãã ããšãã°ã å®å šãªãã°ãèŠãŠãæåã®èšäºã®MKã¹ããŒã ã§æ€èšŒãããšããã®åäœã¯ãã¹ãçµæãã確èªã§ããŸãã
次ã®ããŒãã§ã¯ãé»è©±åç·ïŒé»å§æºãé³å£°åºåãšåä¿¡ïŒãSDã«ãŒããè² è·äžã®é»æºãããã³ãããã®ãã©ã¡ãŒã¿ãŒã®èšç®æ¹æ³ã確èªããæ¹æ³ã説æããŸãã ãããŠãèšäºã®çµããã«ããã¹ããã¡ãŒã ãŠã§ã¢ã«é¢ããçµè«ãšçµè«ãå°ããŸãã