Ìܼ¡
¥³¥á¥ó¥È¤Ï¤¢¤ê¤Þ¤»¤ó¡£ 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¶¤Ï¡¢¿ô»ú¡¦¥¢¥ë¥Õ¥¡¥Ù¥Ã¥È¡¦À©¸æÉä¹æ¤ò£·¥Ó¥Ã¥È¤Çɽ¤·¤Æ¤¤¤ë¡¢¥Ç¡¼¥¿ÄÌ¿®ÍѤÎÉä¹æÂηϡ£
»²¹Í¤Ë¤Ê¤ê¤½¤¦¤Ê¥Ú¡¼¥¸¢
https://developer.mbed.org/users/okini3939/notebook/mbed256/
640*480[pixel] ¢ª 210fps 640*175[pixel] ¢ª 500fps 640*64[pixel] ¢ª 1000fps
PSoC¤Ç¥µ¥Ã¥±¡¼¥ÉÃæ¤Î¤ßLED¤òÅÀÅô¤µ¤»¤ë¤Î¤¬¤É¤¦¤Ë¤â¤¦¤Þ¤¯¤¤¤Ã¤Æ¤Ê¤¤¡£
LED¤ÏÅÀÌǤ·¡¢¥«¥á¥éÁ´ÂΤòÇò¤«¹õ¤Ç£±Ãͤˤ·¤Æ¤ä¤ë¤È¾ÃÅô¤¹¤ë¡£¥µ¥Ã¥±¡¼¥É¬ÄêÃæ¤Ç¤âÅÀÌǤ¬¸«¤¨¤Æ¤·¤Þ¤¦¤¿¤áïçÃͤòºÆÄ´À°¤·¤¿¤¬¤ä¤Ï¤ê¤ª¤«¤·¤¤¡£
PSoC¥·¥ê¥¢¥ë¥Ç¡¼¥¿¤òÁ÷¤Ã¤Æ³Îǧ¤·¤Æ¤ß¤¿¤È¤³¤íËÜÍè¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤«¤Ã¤¿¡£°ì±þ¥«¥á¥é¥·¥¹¥Æ¥à¤«¤éľÀÜ¥·¥ê¥¢¥ë¥Ç¡¼¥¿¤ò¤â¤é¤Ã¤Æ³Îǧ¤·¤¿¤¬Àµ¾ï¡£
¤½¤Î¸åmain.c¤Îµ½Ò¤òÂçÉý¤Ë¥³¥á¥ó¥È¥¢¥¦¥È¤·¤¿¤È¤³¤íPSoC¤«¤éÁ÷¤é¤ì¤ë¥·¥ê¥¢¥ë¥Ç¡¼¥¿¤âÀµ¾ï¤Ë¤Ê¤ê¡¢¥³¥á¥ó¥È¥¢¥¦¥ÈÉôʬ¤ò¸º¤é¤·¤Æ¤¤¤Ã¤¿¤È¤³¤í½ù¡¹¤Ë¥·¥ê¥¢¥ë¥Ç¡¼¥¿¤Î¥Õ¥©¡¼¥Þ¥Ã¥È¤¬Êø¤ì¤Æ¤¤¤¯¤è¤¦¤Ê¾õÂÖ¤¬³Îǧ¤Ç¤¤¿¡£
¢ªPSoC¤Î½èÍý¤¬¥·¥ê¥¢¥ë¥Ç¡¼¥¿¤ËÄɤ¤¤Ä¤¤¤Æ¤¤¤Ê¤¤¤¿¤á¥·¥ê¥¢¥ë¥Ç¡¼¥¿¤Î¼è¤êƨ¤·¤¬È¯À¸¤·¤Æ¤¤¤ë¤Î¤«¡£
¤·¤Ð¤é¤¯Á°¤Ë¶îÆ°ÅÅ°µ¤Ë¤è¤ëCPUCLKÀ©¸Â¤Ë¤Ä¤¤¤Æ¥á¥â¤·¤¿¤¬¡¢¶îÆ°ÅÅ°µ¤ò£µ£Ö¤ËÊѹ¹¤·¤ÆCPUCLK¤ò12¤«¤é24MHz¤ËÊѹ¹¤·¤¿¡£
¤À¤¬¤½¤ì¤Ç¤â¥·¥ê¥¢¥ë¥Ç¡¼¥¿¤ò´°Á´¤Ê¾õÂ֤ǤȤì¤Ê¤«¤Ã¤¿¡£¤·¤«¤·¡¢12MHz¤Î»þ¤ÈÈæ¤Ù¤ë¤È¤Û¤È¤ó¤É¥³¥á¥ó¥È¥¢¥¦¥È¤·¤Ê¤¯¤Æ¤âÂç¾æÉפÀ¤Ã¤¿¤Î¤Ç²þÁ±¤Ï¤·¤¿¤è¤¦¤Ë»×¤¨¤ë¡£
¤Á¤Ê¤ß¤Ëmbed NXP LPC1768¤Ï96MHz¤ÇÆ°ºî¤¹¤ë¤è¤¦¤À¡£