Ìܼ¡
¥³¥á¥ó¥È¤Ï¤¢¤ê¤Þ¤»¤ó¡£ Comments/tsujino
¥Ñ¥¿¡¼¥óÀ߷פò½ª¤¨¤¿¸å¤ËDRC¤Ç¥¨¥é¡¼¤¬¤Ê¤¤¤«³Îǧ¤¹¤ë¤È¿¿ô¤Î¥¨¥é¡¼¤¬È¯À¸¤·¤¿¡£
ÀèÀ¸¤Ë¤¤¤¯¤Ä¤«¤Î¥¨¥é¡¼¤Ë´Ø¤·¤Æ¶µ¤ï¤Ã¤¿¤Î¤Ç¥á¥â¡£
Ƽ¤òϪ½Ð¤·¤¿¤¤Éôʬ¤ËTop¤ÈtStop¤ò»È¤¨¤Ð¤è¤¤¡£
¸¡º÷¥¡¼¥ï¡¼¥É¤ÎÁ°¸å¤Ë¡ö¤ò¤Ä¤±¤ë¤È¤½¤ì¤ò´Þ¤à·ë²Ì¤òɽ¼¨¤Ç¤¤ë¡£
½Å¤Í¤Æ¤Ï¤ó¤À¤Å¤±¤¹¤ì¤Ð¤è¤¤¡£
ÅŸ»¤ÈGND¤Ë¤½¤ì¤¾¤ì¤Ä¤Ê¤¤¤ÀVia¤ò¥ê¡¼¥É¥¹¥¤¥Ã¥Á¤ÎŤµ¤Ë¹ç¤ï¤»¤ÆÀßÃÖ¤·¤Æ¤½¤³¤Ë¤Ï¤ó¤À¤Å¤±¡£
ºòÆü¥Õ¥ê¥¹¥¯¥±¡¼¥¹¤Ë¼ý¤á¤ë¤¿¤á¤Ë¤Ë´ðÈĤò¥«¥Ã¥È¤·¤Æ¤¤¤¿¤¬¡¢¥×¥é¥´¥ß¤Ë´ðÈĤ¬¼Î¤Æ¤é¤ì¤Æ¤¤¤ë¤Î¤ò¸«¤Æ»×¹ÍÄä»ß¤Ç¼«Ê¬¤â¼Î¤Æ¤Æ¤·¤Þ¤¤¡¢´ðÈĤÏËä¤áΩ¤Æ¥´¥ß¤À¤ÈÀèÀ¸¤Ë»ØŦ¤ò¤¤¤¿¤À¤¤Þ¤·¤¿¡£
°Ê¸åÃí°Õ¤·¤Þ¤¹¡£
»³Â¼·¯¤âºî¶ÈÆü»ï¤Ç¿¨¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢´ðÈÄÀß·×»þ¤Ë¤Ï¥Þ¥¤¥³¥ó¤Î½ñ¤¹þ¤ß¤ËɬÍפʥԥó¤ò¤¢¤é¤«¤¸¤á¥Ø¥Ã¥À¥Ô¥ó¤Ë¤Ä¤Ê¤¤¤Ç¤ª¤¯¤Ù¤¤Ç¤¹¡£
º£²ó»È¤¦¥Þ¥¤¥³¥ó¤ÏPSoC¤ÎCY8C27443¡¢SSOP¥Ñ¥Ã¥±¡¼¥¸¤Ç¤¹¤¬PSoC¤Î½ñ¤¹þ¤ß¤ËɬÍפʥԥó¤ÏVDD¡¢GND¡¢XRES¡¢SCLK(P1[1])¡¢SDATA(P1[0])¤Î£µ¤Ä¤Ç¤¹¡ÊXRES̵¤·¤Î£´¥Ô¥ó¤Ç¤â¤Ê¤ó¤È¤«¤Ê¤ë¤è¤¦¤Ç¤¹¡Ë¡£¤³¤ì¤Ë´Ø¤·¤Æ¤Ï¥Þ¥¤¥³¥ó¥Ö¤Î¶¦Í¾ðÊó¤Î¥Ú¡¼¥¸¤Ë¤â¤Þ¤È¤á¤é¤ì¤Æ¤¤¤Þ¤¹¡£
¼«Ê¬¤Ï¤½¤ì¤ò¤·¤Æ¤¤¤Ê¤«¤Ã¤¿¤³¤È¤¬È¿¾ÊÅÀ¤Ç¤¹¡£¤³¤Î¾õ¶·¤Ç¤É¤Î¤è¤¦¤Ë½ñ¤¹þ¤ß¤ò¤¹¤ë¤«¤È¤¤¤¦ÏäòÀèÀ¸¤«¤é¤¤¤¿¤À¤¤Þ¤·¤¿¡£XRES¤¬²¿¤â¤Ä¤Ê¤¬¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç£´¥Ô¥ó¤Ç¤¹¤¬¡¢VDD¤ÈGND¤Ë´Ø¤·¤Æ¤Ï£²¥Ô¥ó¥Ø¥Ã¥À¤Ë·Ò¤¤¤Ç¤¢¤Ã¤¿¤Î¤Ç¤½¤ì¤ò»È¤¨¤Ð¤è¤¤¡£P1[0]¡¢P1[1]¤Ë´Ø¤·¤Æ¤Ï£·¥»¥°¤Ë·Ò¤¤¤Ç¤¢¤Ã¤¿¤Î¤Ç¤½¤³¤ò½ñ¤¹þ¤ßÃʳ¬¤À¤±·Ò¤¬¤º¥Á¥Ã¥×Äñ¹³Éôʬ¤«¤éÀþ¤ò·Ò¤¤¤Ç½ñ¤¹þ¤ß¤ò¹Ô¤¦¡£
À߷פ·¤¿´ðÈĤ˼ÂÁõ¤·¤Æ¤ß¤¿¤¬¡¢LED¤¬¤¿¤Þ¤Ë¤·¤«ÅÀÅô¤·¤Ê¤¤¸½¾Ý¤¬¡£¥³¥¤¥óÅÅÃÓ¤ÎÆâÉôÄñ¹³¤ÇɬÍפÊÅÅÎϤ¬ÆÀ¤é¤ì¤Æ¤¤¤Ê¤¤¤Î¤Ç¤Ï¤Ê¤¤¤«¤È¤Î»ØŦ¤ÇÅŸ»ÁõÃÖ¤ò»È¤Ã¤Æ3V¤ÇÆ°ºî³Îǧ¤·¤¿¤È¤³¤í¤·¤Ã¤«¤êÅÀÅô¤·¤Þ¤·¤¿¡£2.8V¤¯¤é¤¤¤Ë²¼¤²¤ë¤ÈÅÀÅô¤·¤Ê¤¯¤Ê¤Ã¤¿¤Î¤Ç¡¢¥³¥¤¥óÅÅÃÓ¤¬¤½¤ì¤ò²¼²ó¤Ã¤Æ¤¤¤¿¤è¤¦¤Ç¤¹¡£
ÅŸ»ÁõÃ֤ǤÎÆ°ºî³Îǧ¤Ï»öÁ°¤Ë¤·¤Þ¤·¤ç¤¦¡£
ÅŸ»ÁõÃ֤Υê¥ß¥Ã¥¿¥Ü¥¿¥ó¤ò²¡¤·¤Ê¤¬¤éÅÅή¤òÄ´À°¤¹¤ë¤È¤½¤ì¤¬¥ê¥ß¥Ã¥¿¤È¤Ê¤Ã¤Æ¤½¤ì°Ê¾åÅÅή¤¬Î®¤ì¤ë¤³¤È¤òÁ˻ߤ·¤Æ¤¯¤ì¤Þ¤¹¡£¤â¤·¤½¤ì°Ê¾å¤ËÅÅή¤¬Î®¤ì¤ë¾ì¹ç¤Ï¼«Æ°¤ÇÅÅ°µ¤ò²¼¤²¤ë¤è¤¦¤Ç¤¹¡£
£±¥Õ¥ì¡¼¥àÊÕ¤ê16¿Ê¿ô¤Ç8byteʬ¤Î¥Ç¡¼¥¿¤¬115200bps¤Î¥·¥ê¥¢¥ëÄÌ¿®¤ÇÁ÷¤é¤ì¤Æ¤¯¤ë¡£
0x80, X1, X2, X3, 0xC0, Y1, Y2, Y3
¤È¤¤¤Ã¤¿´¶¤¸¤Ç¡¢X = X1*128 + X2 + X3/128
YºÂɸ¤âƱÍͤǤ¢¤ê¡¢¿ôÃÍÉôʬ¤ÏºÇ¾å°Ìbit¤¬0¤È¤Ê¤ë¤Î¤Ç0x80¡¢0xC0¤ò¤È¤êÆÀ¤ë¤³¤È¤Ï¤Ê¤¤¡£¥¹¥È¥ì¡¼¥¸¤ÎÀî¾å¤µ¤ó¤Î¥Õ¥©¥ë¥À¤Ë¤³¤Î¥Ç¡¼¥¿¤¢¤ê¡£
¸¶°ø¤ÏTerminal¤ÇBinary¤Ë¥Á¥§¥Ã¥¯¤¬Æþ¤Ã¤Æ¤¤¤Ê¤«¤Ã¤¿¤À¤±¤Ç¡¢Àµ¤·¤¤¥Ç¡¼¥¿¤ò¼õ¿®¤·¤Æ¤¤¤ë¤³¤È¤¬³Îǧ¤Ç¤¤¿¡£
VDD ¡æ 4.75V¡¡¢ª¡¡24MHz VDD ¡æ 3.0V¡¡¢ª¡¡12MHz VDD ¡æ 2.4V¡¡¢ª¡¡3MHz
¤½¤Î¸å¡¢PSoC¤«¤éÁ÷¤é¤ì¤Æ¤¯¤ë¥Ç¡¼¥¿¤ò16byte¡Ê£²¥Õ¥ì¡¼¥àʬ¡Ë¤À¤±¤Ë¤·¤Æ¤ß¤ë¤ÈTerminal¤¬Æ°ºî¤òÄä»ß¤¹¤ë¤³¤È¤Ï¤Ê¤«¤Ã¤¿¡£Terminal¤ÇÆ°ºî³Îǧ¤¹¤ë»þ¤ÏÁ÷¤ë¥Ç¡¼¥¿¤òÄø¡¹¤Ë¤¹¤ë¡£
ASC¶¤Ï¡¢¿ô»ú¡¦¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¡¦À©¸æÉä¹æ¤ò£·¥Ó¥Ã¥È¤Çɽ¤·¤Æ¤¤¤ë¡¢¥Ç¡¼¥¿ÄÌ¿®ÍѤÎÉä¹æÂηϡ£