[[ºî¶ÈÆü»ï]]
&size(20){¥Þ¥¤¥³¥ó½é¿´¼Ô¤Ë¤è¤ë¥Þ¥¤¥³¥óÄ©Àïµ­};

Ìܼ¡
#contents

#ref(mic004.png,,100%)

//*domae [#te6acb16]
//¸Ä¿Í¥Ú¡¼¥¸¤Î²¼¤Ë¥Ú¡¼¥¸¤òºî¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£
//-[[./¤Æ¤¹¤È¤Ú¡¼¤¸]]

*domae¤Ø¤Î¥³¥á¥ó¥È [#v7c73926]
- domae¤¬¤¹¤´¤¤¤â¤Î¤òºî¤ê¤½¤¦¤Êͽ´¶¡ù -- [[kondo]] &new{2008-06-30 (·î) 19:00:06};
- ¢¬¥×¥ì¥Ã¥·¥ã¡¼¡© -- [[akita]] &new{2008-07-01 (²Ð) 09:10:39};
- ¢¬¢¬´èÄ¥¤ê¤Þ¤¹(´À) -- [[domae]] &new{2008-07-01 (²Ð) 18:05:33};
- SD¤Îinit¤Ï¡¢¤«¤Ê¤ê»þ´Ö¤¬¤«¤«¤ê¤Þ¤¹¤Í¡£»ÅÍͤȤ¤¤¦¤³¤È¤Ç¡£ -- [[akita]] &new{2009-07-08 (¿å) 15:01:55};
- NZeCyl http://www.vX0UUwfbV0BvG3upQKBWlc97t5wQCiD84Bdaq9Om.com -- [[marmont]] &new{2011-12-02 (¶â) 13:05:06};
- smicx' -- [[smicx']] &new{2021-12-28 (²Ð) 09:34:19};

#comment
µ­»ö¤Ë¤Ä¤¤¤Æ¤Î¥³¥á¥ó¥È¤Ïµ­»ö¤´¤È¤ËÃÖ¤¤¤Æ¤¢¤ë¥³¥á¥ó¥ÈÍó¤ò»È¤Ã¤Æ¤¯¤À¤µ¤¤¤Þ¤·¡£

//*²áµî¤ÎÆüµ­ [#kd76d139]
//-[[./2008ǯ5·î]]

*09/07/05(Æü) [#gd9cf781]
**microSD¤ÇHello World [#tf60ee81]
µ×¡¹¤Î¹¹¿·¤Ç¤¹¡£¤¨¤Ø¡£~
***PSoC¤ÇmicroSD¤Ë²¿¤«½ñ¤­¹þ¤ó¤Ç¤ß¤ë¥Æ¥¹¥È [#s8e57854]
PSoC29466¤ÎÃæ¤Ë¤¢¤ëSDCard¥â¥¸¥å¡¼¥ë¤ò»È¤Ã¤ÆmicroSD¤Ë¡ÖHello World¡×¤ò½ñ¤­¹þ¤ó¤Ç¤ß¤ë¡£~
(»²¹Í¤Ë¤µ¤»¤Æ¤¤¤¿¤À¤¤¤¿¥Ú¡¼¥¸)
-[[Bird-Soft Weblog(PSoC¤ÇSD¥«¡¼¥É¤òÆɤ߽ñ¤­¤¹¤ë):http://www.bird-soft.net/mt/2007/01/psocsd.html]]
-[[dinop.com(PSoC¤ÇSD¥«¡¼¥É¤Ë½ñ¤­¹þ¤à):http://www.dinop.com/elec/psoc_sdcard_write.html]]

ºÇ½é¤ÏmicroSD¤Î¥½¥±¥Ã¥È¤ò»È¤Ã¤Æ¤¤¤¿¤Î¤Ç¤¹¤¬¡¢¤¦¤Þ¤¯microSD¤¬Ç§¼±¤µ¤ì¤Ê¤«¤Ã¤¿(¤¿¤Ö¤ó¤¦¤Þ¤¯¥Ô¥óÀܳ¤µ¤ì¤Æ¤Ê¤¤)¤Î¤Ç¡¢
¸å¼Ô¤ÎÊý¤Î¤è¤¦¤ËmicroSD¥«¡¼¥É¢ªSD¥«¡¼¥É¤ÎÊÑ´¹¥¢¥À¥×¥¿¤ò»ÈÍѤ·¤Þ¤·¤¿¡£~
¤¢¤È¡¢PSoC¤ËÍ¿¤¨¤ëÅÅ°µ¤ò3.3V¤Ë¤·¤¿¤Î¤ÇÄñ¹³¤â¾¯¤Ê¤¯¤ÆºÑ¤ß¤Þ¤·¤¿¡£~

#ref(microsd_001.PNG,,60%)

¤Á¤Ê¤ß¤ËmicroSD¤ÈPSoC¤ÎÀܳÊýË¡¤äPSoC¤Î¥Ô¥ó¤ÎÀßÄêÊýË¡¤ÏSDCard¥â¥¸¥å¡¼¥ë¤Î¥Ç¡¼¥¿¥·¡¼¥È¤ËºÜ¤Ã¤Æ¤Þ¤¹¡£
¥×¥í¥°¥é¥à¤â¤Û¤È¤ó¤É¥Ç¡¼¥¿¥·¡¼¥È¤Î¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à¤Î´Ý¼Ì¤·¤ÇOK¤Ç¤¹¡£
(º£²ó¤Î¾ì¹ç¡¢SD_CD¤ò»È¤ï¤Ê¤¤¤Î¤ÇSDCard_Present()¤ò»È¤¦Éôʬ¤ÏÉÔÍѤǤ¹¤Í)

¢­·ë²Ì¤Ï¤³¤Á¤é~
#ref(microsd_002.PNG,,100%)
#ref(microsd_003.PNG,,100%)

¤³¤ì¤À¤±½ñ¤­¹þ¤à¤Î¤ËÌó3É䫤«¤ê¤Þ¤·¤¿¡£~
LED¸÷¤é¤»¤ÆÆ°ºî³Îǧ¤·¤Æ¤ß¤¿¤È¤³¤í¡¢¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à¤Î
cardInfo = SDCard_InitCard();
¤Î¤È¤³¤í¤Ç»þ´Ö¤¬¤«¤«¤ë¤ß¤¿¤¤¤Ç¤¹¡£
(¤³¤ì¤Ã¤ÆËè²óɬÍפʤΤ«¤Ê?¢ªÌÀÆü»î¤·¤Æ¤ß¤ë)



*08/10/27(·î) [#gd9cf781]
**YMZ294¤Ø¤ÎÄ©Àï 03 [#tf60ee81]
ÃæÅÓȾü¤Ê¤È¤³¤í¤Ç»ß¤Þ¤Ã¤Æ¤¿¤Î¤Çº£¹¹¤À¤±¤É¹¹¿·(´À)
***PSoC CY8C29466¤È¤Î½Ð²ñ¤¤ [#af77c452]
PSoC¤Î29466¤ò»È¤Ã¤ÆYMZ294¤µ¤ó¤òÁà¤Ã¤Æ¤ß¤ë¡£

29466¤ÈYZM294¤ò¢­¤Î¤è¤¦¤Ë¤Ä¤Ê¤°¡£
|29466|YMZ294|È÷¹Í|
|P0[0]|4/6|PWM8¤Ç4MHz¤Î¥¯¥í¥Ã¥¯À¸À®|
|P1[0]|/WR||
|P1[1]|/CS||
|P1[2]|A0||
|P1[3]|/IC||
|P2[0]|D0||
|P2[1]|D1||
|¡§|¡§||
|P2[7]|D7||

P1[0]¡ÁP1[3]¤Î¤½¤ì¤¾¤ì¤Ë¤Ä¤¤¤Æ'0'¤«'1'¤ò½ÐÎϤ¹¤ë´Ø¿ô¤òÀè¤ËÍÑ°Õ¤·¤Æ¤ª¤¯¡£
¢¨¥Ç¡¼¥¿¥·¡¼¥È¤Ë¤è¤ë¤È/WR¤È/CS¤ÏƱ»þ¤ËÀßÄꤷ¤Æ¤â¤¤¤¤¤è¤¦¤Ê¤Î¤Ç°ì½ï¤Ë½ÐÎϤ¹¤ë¡£

 void wr_low()
 {
 	PRT1DR &= ~0x03;
 }
 void wr_high()
 {
	PRT1DR |= 0x03;
 }
 void a0_adr()
 {
	PRT1DR &= ~0x04;
 }
 void a0_dat()
 {
	PRT1DR |= 0x04;
 }
 void ic_rst()
 {
 	PRT1DR &= ~0x08;
 }
 void ic_set()
 {
	PRT1DR |= 0x08;
 }
¡Ê»²¹Í¤Ë¤·¤¿¥µ¥¤¥È¡Ë
[[PSoC/ÈÆÍѥݡ¼¥È¤ò»ÈÍѤ·¤è¤¦:http://1c3.world.coocan.jp/wiki/index.php?PSoC%2F%C8%C6%CD%D1%A5%DD%A1%BC%A5%C8%A4%F2%BB%C8%CD%D1%A4%B7%A4%E8%A4%A6]]

¼¡¤Ë¥¢¥É¥ì¥¹¤È¥Ç¡¼¥¿¤ò»ØÄꤷ¤Æ¥Ç¡¼¥¿¤òÁ÷¤ë´Ø¿ô¤òºî¤ë¡£
 void ad_set(BYTE adr, BYTE dat)
 {
	// [1]address input
	PRT2DR = adr;
	
	// [2]address write enabled(/WR=0, /CS=0, A0=0)
	a0_adr();
	wr_low();
	
	// [3]address write disabled(/WR=1, /CS=1, A0=0)
	wr_high();
		
	// [4]data input
	PRT2DR = dat;
	
	// [5]data write enabled(/WR=0, /CS=0, A0=1)
	a0_dat();
	wr_low();
	
	// [6]data write disabled(/WR=1, /CS=1, A0=1)
	wr_high();
 }

¤¢¤È¤Ï¤³¤Î´Ø¿ô¤ò»È¤Ã¤Æ¥ì¥¸¥¹¥¿¤Î¥¢¥É¥ì¥¹¤ò»ØÄꤷ¤Æ¥Ç¡¼¥¿¤òÁ÷¤Ã¤Æ¤¢¤²¤ì¤ÐYMZ294¤ò¼«Í³¤ËÁà¤ë¤³¤È¤¬¤Ç¤­¤ë¡£
Îã)
ad_set(0x07, 0x38)¢ª³Ú²»¤Î#A¡Á#C¤ò½ÐÎÏ¡£
ad_set(0x08, 0x0F)¢ª#A¤Î²»Î̤òÀßÄê¡£



***¥Î¡¼¥È¥ª¥ó/¥Î¡¼¥È¥ª¥Õ [#wbf92ece]
³Ú²»¤Î¼þÇÈ¿ô¤òÀßÄꤷ¤Æ½ÐÎϤ¹¤ë´Ø¿ô
void tone(BYTE ch, BYTE pit, BYTE oct, BYTE vel)
¤òºî¤ë¡£
ch¤Ç³Ú²»¤Î¥Á¥ã¥ó¥Í¥ë¤ò¡¢
pit¤Èoct¤Ç²»Äø¤ò(Î㤨¤ÐC4¤È¤«D#5¤È¤«)¡¢
vel¤Ç¥Ù¥í¥·¥Æ¥£¤ò¤½¤ì¤¾¤ìÀßÄê¤Ç¤­¤ë¡£
Îã)
tone(1,tnC,4,0x0F)¢ª#A¤ÇC4¤ò²»Î̺ÇÂç¤Ç½ÐÎÏ¡£
¢¨pit¤Ï#define¤Ç¤½¤ì¤¾¤ì¿ôÃͤ˳ä¤êÅö¤Æ¤Æ¤¢¤ë¡£

¡Ê²»Äø¤ÎÀßÄê¤Ç»²¹Í¤Ë¤·¤¿¥µ¥¤¥È¡Ë
[[PSG¤Ø¤ÎÆ»:http://homepage2.nifty.com/sampodo/craft/psg.html]]

¤Ä¤¤¤Ç¤Ë¥Î¡¼¥È¥ª¥Õ(ÌĤäƤ¿²»¤ò»ß¤á¤ë)¤Î´Ø¿ô
void noff(BYTE ch)
¤âºî¤ë¡£Ãæ¿È¤Ï¤½¤Î¥Á¥ã¥ó¥Í¥ë¤Î²»Î̤ò£°¤Ë¤·¤Æ¤¤¤ë¤À¤±¡£



**¥¿¥¤¥Þ¤ò»È¤Ã¤Æ±éÁÕ¤¹¤ë [#iad04a6e]
Tick(ʬ²òǽ)¤ò48¤ËÀßÄꤷ¤Æ¡¢¥¿¥¤¥Þ³ä¤ê¹þ¤ß¤ÇÊÑ¿ôtic¤ÎÃͤòÁý¤ä¤¹¤³¤È¤Ç¶Ê¤ò±éÁÕ¤¹¤ë¡£
BPM¤Ï¥¿¥¤¥Þ³ä¤ê¹þ¤ß¤Î¼þ´üPeriod¤ÎÃͤòÊѤ¨¤ë¤³¤È¤ÇÀßÄê¤Ç¤­¤ë(¤¬¡¢ºÙ¤«¤¯¤ÏÀßÄê¤Ç¤­¤Ê¤¤¡Ä)

¤¢¤È¤Ïtic¤´¤È¤Ë¢¬¤Çºî¤Ã¤¿tone¤Ènoff¤òÃÖ¤¤¤Æ¤¤¤±¤ÐMML¤Î¤è¤¦¤ËÉèÌ̤òºî¤Ã¤Æ±éÁÕ¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£



**¥Ô¥³¥Ô¥³²»³Ú [#k2480f08]
Áá®˿¥Ò¥²¤Î¿Í¤Î²»³Ú¤òÂǤÁ¹þ¤ó¤Ç±éÁÕ¤·¤Æ¤ß¤Þ¤·¤¿¢ö

¤ª¤ª¤ª¡ª¤³¤ì¤À¡ª¤³¤ì¤¬Ê¹¤­¤¿¤«¤Ã¤¿¤ó¤À¡ª¡ª(T¢¦T)


±éÁդλÅÊý¤Ê¤É¿Í¤½¤ì¤¾¤ì¤Î¤ä¤êÊý¤¬¤¢¤ë¤ß¤¿¤¤¤Ç¤¹¤¬¡¢
ËͤϤ³¤ó¤Ê´¶¤¸¤Ç¼«Ê¬¤Îʹ¤­¤¿¤«¤Ã¤¿²»³Ú¤ò¼«Ê¬¤Çºî¤Ã¤Æʹ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤·¤¿¡£

PSoC·¯¤È¤â¤À¤¤¤ÖÃçÎɤ¯¤Ê¤ì¤¿¡¢¤È»×¤¤¤Þ¤¹(¡°¡°¡¨

¶½Ì£¤Î¤¢¤ëÊý¤ÏÀ§ÈóÄ©À路¤Æ¤ß¤Æ¤Ï¡©



*08/07/23(¿å) [#veedb1e0]
**PSoC First Touch 03 [#c483918e]
***¥¿¥¤¥Þ³ä¤ê¹þ¤ß [#e32dbcd8]
¥¿¥¤¥Þ¡¼¤ò»È¤¦¤È¤­¤Îή¤ì
­¡Timer¤òÀßÃÖ
­¢Clock¤ÎÀßÄê(»È¤¤¤ä¤¹¤¤¼þÇÈ¿ô¤Ë¤·¤Æ¤ª¤¯)
­£Period¤ÎÀßÄê(³ä¤ê¹þ¤ß¤¬È¯À¸¤¹¤ë´Ö³Ö¤ò·è¤á¤ë)
­¤¥×¥í¥°¥é¥à¤ò½ñ¤¯(Timer¤Î³ä¤ê¹þ¤ßµö²Ä¤È¥¹¥¿¡¼¥È¡¢³ä¤ê¹þ¤ß½èÍý¥ë¡¼¥Á¥ó¤Îµ­½Ò)

Äê´üŪ¤ËLED¤ÎÌÀ¤ë¤µ¤òÊѤ¨¤ë¤³¤È¤ËÀ®¸ù¡£

¤Þ¤¿Timer_PeriodWrite()¤òÍѤ¤¤ì¤ÐÅÓÃæ¤Ç³ä¤ê¹þ¤ß¤Î´Ö³Ö¤òÊѹ¹¤Ç¤­¤ë¤ß¤¿¤¤¤Ç¤¹¡£

**YMZ294¤Ø¤ÎÄ©Àï 02 [#t400d1ff]
***¥ì¥¸¥¹¥¿µ¡Ç½ [#g648250d]
Á´µ¡Ç½¤ÏÆ⡤µ¤ì¤ë¥ì¥¸¥¹¥¿¤Ë¤è¤Ã¤ÆÀ©¸æ¤µ¤ì¤Þ¤¹¡£
¤è¤Ã¤Æ³Æ¡¹¤Î¥ì¥¸¥¹¥¿¤ÎÃͤòÊѤ¨¤ë¤³¤È¤Ë¤è¤Ã¤Æ²»¤òȯÀ¸¤µ¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£

¥Ç¡¼¥¿¥·¡¼¥È¤¬¥Ü¥í¥Ü¥í¤Ë¤Ê¤Ã¤Æ¤­¤¿¤Î¤Ç¡¢¡¢¡¢°Ê²¼¡¢¼«Ê¬ÍѤΥá¥â¡£

1. ³Ú²»¼þÇÈ¿ô¤ÎÀßÄê($00¡Á$05)
#ref(ymz004.jpg,,100%)
¡¡£³¥Á¥ã¥ó¥Í¥ë(#A¡¢#B¡¢#C)¤Î³Ú²»È¯À¸´ï¤Çºî¤é¤ì¤ë¶ë·ÁÇȤμþÇÈ¿ôft¤ò·è¤á¤ë¡£
¡¡ft¡áfst¡à16TP¡¡(fst¡á£²MHz)
¡¡TP¡áTP11¡ß2^12¡ÜTP10¡ß2^11¡ÜTP9¡ß2^10¡Ü¡Ä¡ÜTP2¡ß2^2¡ÜTP1¡ß2^1¡ÜTP0

2. ¥Î¥¤¥º²»¼þÇÈ¿ô¤ÎÀßÄê($06)
#ref(ymz005.jpg,,100%)
¡¡¥Î¥¤¥ºÈ¯À¸´ï¤Çºî¤é¤ì¤ë¥Î¥¤¥º²»¤Î¼þÇÈ¿ôfn¤ò·è¤á¤ë¡£
¡¡fn¡áfst¡à16NP
¡¡NP¡áNP4¡ß2^4¡ÜNP3¡ß2^3¡ÜNP2¡ß2^2¡ÜNP1¡ß2^1¡ÜNP0

3. ¥ß¥­¥µ¡¼¤ÎÀßÄê($07)
#ref(ymz006.jpg,,100%)
¡¡³Æ¥Á¥ã¥ó¥Í¥ë(#A¡¢#B¡¢#C)Ëè¤Ë³Ú²»¤ª¤è¤Ó¥Î¥¤¥º²»¤ò½ÐÎϤ¹¤ë¤«¤òÀßÄꤹ¤ë¡£
¡¡¥ì¥¸¥¹¥¿¤Ë£°¤ò½ñ¤­¹þ¤à¤È²»¤ò½ÐÎϤ¹¤ë¡£
¡¡³Ú²»¤È¥Î¥¤¥º²»¤¬¤È¤â¤Ë£°¤Î»þ¤Ï¥ß¥­¥·¥ó¥°¤µ¤ì¤Æ½ÐÎϤ¹¤ë¡£

4. ²»ÎÌ¥³¥ó¥È¥í¡¼¥ë¤ÈDAC($08¡Á$0A)
#ref(ymz007.jpg,,100%)
¡¡³Æ¥Á¥ã¥ó¥Í¥ë(#A¡¢#B¡¢#C)¤Î²»Î̤òÀßÄꤹ¤ë¡£
¡¡£Í¡á£°¤Î»þ¡§L3¡ÁL0¤Ë¤è¤Ã¤Æ16Ä̤ê¤Î¥ì¥Ù¥ë¤«¤é²»Î̤òÀßÄê¡£
¡¡£Í¡á£±¤Î»þ¡§¥¨¥ó¥Ù¥í¡¼¥×ȯÀ¸´ï¤Çºî¤é¤ì¤ë¥Ç¡¼¥¿(5bit)¤Ë¤è¤Ã¤Æ²»Î̤òÀ©¸æ¡£

¡¡(¤Þ¤À¥¨¥ó¥Ù¥í¡¼¥×¤ò»ÈÍѤ·¤¿¤³¤È¤¬¤Ê¤¤¤Î¤Ç¤È¤ê¤¢¤¨¤º¤³¤³¤Þ¤Ç¡£¤Î¤Á¤Î¤ÁÄɲä·¤Þ¤¹)



**08/07/23(¿å)¤Îµ­»ö¤Ø¤Î¥³¥á¥ó¥È [#j2ca1077]
- ¤³¤Îɽ¤Ï¤Ê¤Ë¤ÇÉÁ¤¤¤Æ¤¤¤ë¤ó¤Ç¤·¤ç¤¦¡©¤Þ¤µ¤«¥Ú¥¤¥ó¥È¡© -- [[akita]] &new{2008-07-24 (ÌÚ) 11:04:09};
- ¥¨¥¯¥»¥ë¤Ç½ñ¤¤¤¿É½¤¬¤¢¤Ã¤¿¤Î¤Ç¤½¤ì¤ò¥­¥ã¥×¥Á¥ã¤·¤Æ»È¤¤¤Þ¤·¤¿(¡°¡°¡¨ -- [[domae]] &new{2008-07-25 (¶â) 15:13:05};
- smicx' -- [[smicx']] &new{2021-12-28 (²Ð) 09:34:41};

#comment





¡¡

*08/06/27(¶â) [#t1238e24]
**PSoC First Touch 02 [#t400d1ff]
Á°²ó¤«¤é¤«¤Ê¤ê¤¿¤Ã¤Æ¤·¤Þ¤Ã¤¿¤±¤É¤¤¤Ä¤â¿´¤ÏPSoC·¯¤È¤È¤â¤Ë¡£
***CapSense¤ÇÍ·¤Ö [#eea4f5a3]
¥Á¥å¡¼¥È¥ê¥¢¥ëÄ̤ê¤ä¤Ã¤Æ¤ß¤¿¤È¤³¤íÌäÂê¤Ê¤¯¤Ç¤­¤Þ¤·¤¿¡£
º£¸å¥¹¥é¥¤¥À¤ÏÆþÎϤΣ±¤Ä¤È¤·¤Æ»È¤¨¤½¤¦¤Ç¤¹¤Í¡£ÌÌÇò¤¤¤Ç¤¹¡£

¤È¤ê¤¢¤¨¤º±þÍÑÊԤȤ·¤Æ¥¹¥é¥¤¥À¤Îº¸Â¦(CSB7)¤Ë¤¤¤¯¤Û¤ÉÀÄ¡¢±¦Â¦(CSB1)¤Ë¤¤¤¯¤Û¤ÉÀ֤ˤʤë¤è¤¦¤Ë¤·¤Æ¤ß¤Þ¤·¤¿¡£

¤·¤«¤·¡¢¥¹¥é¥¤¥À¤«¤é»Ø¤òÎ¥¤¹¤ÈÀÄ¿§¤ËÌá¤Ã¤Æ¤·¤Þ¤Ã¤¿¤Î¤Ç¼¡¤Î¤è¤¦¤Ë¾¯¤·²þÎÉ¡£
#ref(psoc003.png,,100%)
¤¹¤ë¤È¤³¤ÎÄ̤ê»Ø¤òÎ¥¤·¤Æ¤â¹¥¤­¤Ê¿§¤Ç¸÷¤é¤»¤ë¤³¤È¤¬¤Ç¤­¤Þ¤·¤¿¡£
#ref(psoc004.jpg,,50%)

£Í£Å£Í£Ï¡§
º£²ó»ÈÍѤ·¤¿CSD¤Î´Ø¿ô¤¿¤Á
-CSD_Start()
-CSD_InitializeBaselines()
-CSD_SetDefaultFingerThresholds()
½é¤á¤Ë¸Æ¤Ó½Ð¤·¤Æ¤ª¤¯¡£¤ä¤Ã¤Æ¤ë¤³¤È¤Ï¤³¤ì¤«¤é»È¤¦Ãͤνé´ü²½¤Ê¤É¡£

-CSD_ScanAllSensors()
-CSD_UpdateAllBaselines()
while()ʸÃæ¤Î½é¤á¤Ë¸Æ¤Ó½Ð¤¹¤³¤È¤Ç¡¢Ëè²ó¥»¥ó¥µ¤ò¥¹¥­¥ã¥ó¤·¡¢¥Ù¡¼¥¹¥é¥¤¥ó¤Î¹¹¿·¤ò¹Ô¤¦¡£

-CSD_bIsSensorActive(BYTE bSensor)
-CSD_bIsAnySensorActive()
¥¿¥Ã¥Á¥»¥ó¥µ¤¬¥¢¥¯¥Æ¥£¥Ö(¿¨¤Ã¤Æ¤ë)¤«¤òÄ´¤Ù¤ë¡£
¾å¤Î¤Ï²¿ÈÖÌܤΥ»¥ó¥µ¤¬¥¢¥¯¥Æ¥£¥Ö¤«¤É¤¦¤«¤òÄ´¤Ù¤ë¡£
²¼¤Î¤Ï¤¤¤¯¤Ä¤«¤¢¤ë¥»¥ó¥µ¤ÎÃæ¤Ç¤É¤ì¤«£±¤Ä¤Î¥»¥ó¥µ¤¬¥¢¥¯¥Æ¥£¥Ö¤Ê¤é£±¤òÊÖ¤¹¡£

-CSD_wGetCentroidPos(BYTE bSnsGroup)
¿¨¤Ã¤Æ¤ë°ÌÃÖ(½Å¿´)¤òÄ´¤Ù¤ë¡£¥¹¥é¥¤¥À¤Î¤È¤­¤Î¤ß»ÈÍѲġ£

**YMZ294¤Ø¤ÎÄ©Àï 01 [#t400d1ff]
***¥Þ¥¤YMZ294¤È¤´ÂÐÌÌ [#j62f99d5]
#ref(ymz001.jpg,,50%)
(¾å¤«¤é¥ª¥·¥ì¡¼¥¿(4MHz)¡¢YMZ294¡¢¥½¥±¥Ã¥È)

½©·î¤Ë¤ÆYMZ294¤ò¹ØÆþ¤·¤Æ¤ß¤Þ¤·¤¿¡£
¤ä¤Ï¤ê¥Þ¥¤YMZ294¤¬¼ê¸µ¤Ë¤¢¤ë¤È²äÁ³¤ä¤ëµ¤¤¬½Ð¤Þ¤¹¡ª¡ª

***YMZ294¤Ë¤Ä¤¤¤Æ [#n21d7844]
-YAMAHA¤ÎPSG(Programmable Sound Generator)²»¸»¡£
-YM2149ÁêÅö¤Î²»¸»LSI¡£
-£³·ÏÎó¤Î¶ë·ÁÇÈȯÀ¸´ï¤È£±·ÏÎó¤Î¥Î¥¤¥ºÈ¯À¸´ï¡¢¥¨¥ó¥Ù¥í¡¼¥×ȯÀ¸´ï¤òÆâ¡¡£
-CS¡¢WRÀ©¸æ¿®¹æ¤È£¸bit¥Ç¡¼¥¿¥Ð¥¹¤Ë¤è¤ëÈÆÍÑCPU¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¡£
-£¸¥ª¥¯¥¿¡¼¥Ö¤Îȯ²»°è¡£
-¥Þ¥¹¥¿¡¼¥¯¥í¥Ã¥¯¤Ï£´MHz¤Þ¤¿¤Ï£¶MHz¤«¤éÁªÂò¤Ç¤­¤ë¡£
-£µVñ°ìÅŸ»¡£

***ü»ÒÇÛÃÖ¤Èü»Òµ¡Ç½ [#n65a7137]
¢­³°¸«(18pin) ÂÀ¤¯ÉÁ¤­¤¹¤®¤Þ¤·¤¿(¡°¡°¡¨
#ref(ymz002.jpg,,100%)
¢­³Æ¥Ô¥ó¤ÎÀâÌÀ
#ref(ymz003.jpg,,100%)

+¦Õ£Í
¥Þ¥¹¥¿¡¼¥¯¥í¥Ã¥¯ÆþÎÏ¡£ÆþÎϼþÇÈ¿ô¤Ï4Mhz¤«6Mhz¤Î¤É¤Á¤é¤«¤òÁªÂò¤Ç¤­¤Þ¤¹¡£
º£¤Ï¤È¤ê¤¢¤¨¤º4MHz¤È¤·¤Þ¤¹(°ì½ï¤Ë¤Ä¤¤¤Æ¤­¤¿¥ª¥·¥ì¡¼¥¿¤â4MHz¤Ê¤Î¤Ç)
+4/6
¥Þ¥¹¥¿¡¼¥¯¥í¥Ã¥¯¤Î¼þÇÈ¿ô¤òÁªÂò¤·¤Þ¤¹¡£
4MHz¤È¤¹¤ë¤¿¤á"H"¤Ë¤·¤Þ¤¹¡£
+D0¡ÁD7
8bit¤Î¥Ç¡¼¥¿¥Ð¥¹¡£
+/CS¡¢/WR¡¢A0
8bit¤Î¥Ç¡¼¥¿¥Ð¥¹¤«¤é¤Î¥¢¥É¥ì¥¹¤È¥Ç¡¼¥¿¤Î½ñ¤­¹þ¤ß¤ò¥³¥ó¥È¥í¡¼¥ë¤·¤Þ¤¹¡£
(/CS¡¢/WR¡¢A0)
(0,0,0)¢ªSSGLP¤Ë¥¢¥É¥ì¥¹¤ò½ñ¤­¹þ¤à¡£
(0,0,1)¢ªSSGLP¤Ë¥Ç¡¼¥¿¤ò½ñ¤­¹þ¤à¡£
+/IC
"L"¤Î»þ¥·¥¹¥Æ¥à¥ê¥»¥Ã¥È¤Ë¤Ê¤ê¡¢¥ì¥¸¥¹¥¿¥¢¥ì¡¼¤ÎÆâÍƤ¬Á´¤Æ'0'¤Ë¤Ê¤ê¤Þ¤¹¡£
+SO
²»À¼¿®¹æ¤Î¥¢¥Ê¥í¥°½ÐÎÏ¡£
+/TEST
¥Æ¥¹¥ÈÍÑü»Ò¡£ÌµÀܳ¤ÇOK¡£
+VDD¡¢GND
VDD¤Ï+5V¤ÎÅŸ»Ã¼»Ò¡¢GND¤ÏÀÜÃÏü»Ò¡£

¡¡

¤µ¤Æ¡¢º¤¤Ã¤¿¤³¤È¤Ë¥Ç¡¼¥¿¥Ð¥¹¤äÀ©¸æ¿®¹æÍѤΤ¿¤á¤ËºÇÄã12Ëܰʾå¤Î¥Ô¥ó¤¬É¬ÍפǤ¹¡£

PSoC First Touch¤Ç¤Ï¡Ä¡£¤Á¤ç¤Ã¤È¸·¤·¤½¤¦¤Ç¤¹¡£¡£¡£

¤½¤³¤Ç¤³¤ÎYMZ294¤µ¤ó¤Î¥Ñ¡¼¥È¥Ê¡¼¤òõ¤·¤Æ¤Þ¤¹¡£

º£¤Î¤È¤³¤íÌܤò¤Ä¤±¤Æ¤¤¤ë¤Î¤Ï¤³¤ÎCY8C29466¤Ç¤¹¡£
[[CY8C29466¡ÊProducts - Cypress Semiconductor¡Ë:http://www.cypress.com/products/index.jsp?fid=24&rpn=CY8C29466]]

28Pin¤Ç¥Ç¥£¥¸¥¿¥ëI/O¤È¤·¤Æ»ÈÍѤǤ­¤ë¥Ô¥ó¤¬8bit¡ß£³¥°¥ë¡¼¥×ʬ(P0¡¢P1¡¢P2)¤¢¤ê¤Þ¤¹¡£¥¢¥Ê¥í¥°ÆþÎϤȤ·¤Æ»È¤¨¤ë¥Ô¥ó¤â¤¢¤ë¤ß¤¿¤¤¤Ç¤¹¡£
£±¥°¥ë¡¼¥×ʬ¤ò8bit¤Î¥Ç¡¼¥¿¥Ð¥¹ÍѤȤ·¤Æ¡¢Â¾¤Î¥Ô¥ó¤òÀ©¸æ¿®¹æÍѤȤ·¤Æ¤â½½Ê¬Í¾¤ê¤¬¤Ç¤­¤½¤¦¤Ç¤¹¡£

¤Þ¤¿¡¢PSoC¤Î¥â¥¸¥å¡¼¥ë¤âÍ­¸úÍøÍѤǤ­¤Ê¤¤¤«¸¡Æ¤Ãæ¡£
-PWM¤ò»È¤Ã¤Æ4MHz½Ð¤»¤ó¤¸¤ã¤Í¡©¥ª¥·¥ì¡¼¥¿É¬Íפʤ¤¤ó¤¸¤ã¤Í¡©
¢ª¥Þ¥¹¥¿¡¼¥¯¥í¥Ã¥¯¤Ï³Ú²»¤ä¥Î¥¤¥º¤Î²»Äø¤ò·è¤á¤ë¤Î¤Ë»È¤ï¤ì¤ë¤Î¤Ç¤½¤ì¤Ê¤ê¤ÎÀºÅÙ¤¬É¬Íס£
ʹ¤¯¤È¤³¤í¤Ë¤è¤ë¤ÈPWM¤«¤é½Ð¤»¤ë¼þÇÈ¿ô¤Ë¤Ï¿¾¯¸íº¹¤¬¤¢¤ë¤È¤«¡©
¤Á¤Ê¤ß¤Ë¤ª¤Þ¤±¤È¤·¤ÆÉÕ¤¤¤Æ¤­¤¿¥ª¥·¥ì¡¼¥¿¤Ë¤Ï4.0000MHz(¥Æ¥¹¥¿¡¼¤Ç¬¤Ã¤Æ¤ß¤Ê¤¤¤È¡Ä)¤È½ñ¤¤¤Æ¤¢¤ë¡£¤¦¡¼¤ó¡£
-AMP»È¤¨¤ë¤ó¤¸¤ã¤Í¡©
¢ªÄ´ººÃæ¡Ä¡£

¤È¤ê¤¢¤¨¤º¤³¤³¤Þ¤Ç¡£¥ì¥¸¥¹¥¿µ¡Ç½¤ÎÀâÌÀ¤Ë¤Ä¤¤¤Æ¤Ï¼¡²ó¤Ë¡£

**08/06/27(¶â)¤Îµ­»ö¤Ø¤Î¥³¥á¥ó¥È [#sd1add91]
- 29466¤Ï¡¢µîǯ¤Î¼«¼ç²ÝÂê¤Ç¤â»È¤Ã¤Æ¤¤¤Þ¤·¤¿¤·¡¢µ¡Ç½¥Ö¥í¥Ã¥¯¤â¥Ô¥ó¿ô¤â¿¤¯¤Æ¡¢¤è¤¤¤Î¤Ç¤Ï¤Ê¤¤¤Ç¤·¤ç¤¦¤«¡£È¾ÅÄÉô²°¤Ëºß¸Ë¤¬¤¢¤Ã¤¿¤Ï¤º¤Ê¤Î¤Ç¡¢»È¤Ã¤Æ¤ß¤Æ¤¯¤À¤µ¤¤¡£¤Á¤ç¤Ã¤È½ñ¤­¹þ¤ß¤Ë»þ´Ö¤¬¤«¤«¤ë¤Î¤¬ÆñÅÀ¤«¤Ê¡¦¡¦¡¦ -- [[akita]] &new{2008-06-29 (Æü) 12:42:20};
- PSoC¤ÎÆâ¢ȯ¿¶²óÏ©¤Ï¡¢¤Ê¤«¤Ê¤«ÀºÅÙ¤¬¤è¤¤¤Î¤Ç¡¢´ð½à¥¯¥í¥Ã¥¯¤È¤·¤Æ»È¤Ã¤Æ¤âÂç¾æÉפÀ¤È»×¤¤¤Þ¤¹¤è¡£PWM¤Ç4MHz¤Ï¡¢Á´¤¯ÌäÂê¤Ê¤¤¤Ç¤¹¤Í¡£(24MHz/6)¤¢¤È¡¢¡Ö¥Æ¥¹¥¿¡¼¤Ç4MHz¤Ï¬¤ì¤Þ¤»¤ó¡×¤è¡£ -- [[akita]] &new{2008-07-01 (²Ð) 09:12:30};
- ¤Ç¤ÏPWM¤Î¥¯¥í¥Ã¥¯¤ò»È¤Ã¤Æ¤ß¤ë¤³¤È¤Ë¤·¤Þ¤¹¡£ -- [[domae]] &new{2008-07-01 (²Ð) 18:03:26};
- smicx' -- [[smicx']] &new{2021-12-28 (²Ð) 09:35:04};

#comment





¡¡
*08/05/29(ÌÚ) [#t1238e24]
**PSoC First Touch 01 [#t400d1ff]
[[PSoCÆþÌ硧PSoC First TouchÊÔ]] ¤ò¤ä¤ê¤Ä¤Ä¡¢PSoC·¯¤È¤Îµ÷Î¥¤ò¾¯¤·¤º¤ÄËä¤á¤ëŽ¥Ž¥Ž¥¡Ê̤ÍèÆüµ­¡Ë
***LED¤È¸÷¥»¥ó¥µ [#n4b9691b]
º£¤Î¤È¤³¤íÎãÂ꣱¤Þ¤Ç¡£¤³¤³¤Þ¤ÇÆäËÌäÂê¤Ê¤·¡£

£±¤Ä¤ÎPWM8¤ÇÀÖ¤ÈÀĤÎLED¤òÅÀÅô¤·¤Æ¤ß¤Þ¤·¤¿¡£
#ref(psoc002.jpg,,50%)

ÌÀ¢ªÀÖ¡¢°Å¢ªÀÄ¡£Éô²°¤ÎÃæ¤Ç¤ÏÀÖ¡§ÀÄ¡á3¡§7¤¯¤é¤¤¤Ç¤·¤ç¤¦¤«¡£Å¬ÅÙ¤ÊÌÀ¤ë¤µ¡¢¤«¤Ê¡£

¼¡¤ÏCapSense¤ÇÍ·¤Ö¤Ä¤â¤ê¡£¢ª¤Î¤Á¤Î¤Á»È¤¨¤½¤¦¤Ê¤Î¤Ç¤·¤Ã¤«¤êÍ·¤Ö¡£

***½ñ¤­¹þ¤ß´ï¤«¤é¤ÎÆÈΩ [#gb2e7a9b]
º£Î®¹Ô¤Ã¤Æ¤¤¤ë¡Ê¡©¡ËPSoC·¯¤Î½ñ¤­¹þ¤ß´ï¤«¤é¤ÎÆÈΩ¤ò»î¤ß¤ë¡£

#ref(psoc001.jpg,,50%)
-ÊÒÌÌ¥æ¥Ë¥Ð¡¼¥µ¥ë´ðÈÄ(¡ß´ðÈ×)¢«ÄûÀµ
-£²¡¥£±£í£íɸ½à£Ä£Ã¥¸¥ã¥Ã¥¯
-¥Ô¥ó¥½¥±¥Ã¥È¡Ê¥á¥¹¡Ë£²£°£Ð¡Ê£²¡ß£±£°¡Ë£Ì»ú¥¿¥¤¥×¢«akitaÀèÀ¸´¶¼Õ¤·¤Þ¤¹¡ª
-¥Ñ¥¹¥³¥ó¡Ê£°¡¥£±£õ£Æ¡Ë

¼Ì¿¿¤ÎÄ̤ꤦ¤Þ¤¯ÆÈΩ¤Ç¤­¤Þ¤·¤¿¡£

Íߤò¤¤¤¦¤Ê¤ésenda·¯¤ß¤¿¤¤¤ËÅŸ»¤Î¥¹¥¤¥Ã¥Á¤Ä¤±¤ì¤Ð¤è¤«¤Ã¤¿orz


£Í£Å£Í£Ï¡§
[[¥Ñ¥¹¥³¥ó¤Ã¤Æ²¿¡©(ÅŻҤΤª¤¿¤¹¤±£Í£Å£Í£Ï):http://www.geocities.co.jp/HeartLand-Tachibana/9059/otasuke/pascon.htm]]

**º£¸å¤Î¤³¤È¡Ê¥Á¥ã¥ì¥ó¥¸¤·¤¿¤¤¤³¤È¡Ë [#y1ab0cee]
&size(24){Ëͤϥ²¡¼¥à¥ß¥å¡¼¥¸¥Ã¥¯¤¬Âç¹¥¤­¤À¡ª};

¤È¤Ï¤¤¤¦¤â¤Î¤Î¡¢

¥²¡¼¥à¥ß¥å¡¼¥¸¥Ã¥¯¤Î´ðÁäδðÁäȤ¤¤¨¤ë¥Õ¥¡¥ß¥³¥ó²»¸»¤Ë¤Ä¤¤¤Æ¤Ï¤¢¤Þ¤êÃΤê¤Þ¤»¤ó¡£
(¥¬¥­¤Îº¢¤Ï¤Û¤È¤ó¤É¥¹¡¼¥Õ¥¡¥ß¤«¥×¥ì¥¹¥Æ¤Ç¤·¤¿)

¤½¤³¤Ç¡¢¼ÂºÝ¤Ë¤½¤Î"²»"¤òʹ¤¤¤Æ¤ß¤¿¤¤¡ª(Æä˥Υ¤¥º²»)

¤µ¤é¤Ë¤Ï¼ÂºÝ¤Ë±éÁÕ¤·¤Æ¤ß¤¿¤¤¡ª¡ª

¤È¤¤¤¦¤Î¤¬¤µ¤µ¤ä¤«¤Ê´ê¤¤¤À¤Ã¤¿¤ê¤·¤Þ¤¹¡£(100¡ó¼ñÌ£¤Ç¤¹¤¬)


¤È¤ê¤¢¤¨¤ºº£¤Ï¥Þ¥¤¥³¥ó¤Î¤ªÊÙ¶¯¤È°ÊÁ°akitaÀèÀ¸¤Ë¶µ¤¨¤Æ¤â¤é¤Ã¤¿YMZ294¤Ë¤Ä¤¤¤ÆÄ´¤Ù¤Æ¤Þ¤¹¡£

£Í£Å£Í£Ï¡§
¼ÂºÝ¤ËÍ·¤ó¤Ç¤¤¤ëÊý¤â¤¤¤ë¤ß¤¿¤¤¤ÇŽ¥Ž¥Ž¥

-[[YMZ294¤Ç³Ú¤·¤àPSG²»¸»(¤½¤ì¤Ï¤½¤ì¡¢¤³¤ì¤Ï¤³¤ì¤ÇŽ¥Ž¥Ž¥¡£):http://hijiri3.s65.xrea.com/sorekore/develop/pic/PIC04_YMZ.htm]]

-[[YMZ294 - SSG²»¸»¥Ü¡¼¥É(mattic):http://www.mbin.jp/~masa-u/electron/ymz294/]]

-[[²»¸»IC YMZ294 ­¡¡Ö¥Æ¥¹¥È¡×(You Tube):http://jp.youtube.com/watch?v=pGqa6ESeb1A]]

**08/05/29(ÌÚ)¤Îµ­»ö¤Ø¤Î¥³¥á¥ó¥È [#s2553b61]
- ¡Ö´ðÈספǤϤʤ¯¡Ö´ðÈġפǤ¹¤Í¡£¤è¤¯¤¢¤ë¸í»ú¤Ç¤¹¤Î¤Çµ¤¤ò¤Ä¤±¤Þ¤·¤ç¤¦¡£ -- [[akita]] &new{2008-07-08 (²Ð) 20:12:35};
- µ¤¤ò¤Ä¤±¤Þ¤¹(´À) -- [[domae]] &new{2008-07-23 (¿å) 12:45:28};
- smicx' -- [[smicx']] &new{2021-12-28 (²Ð) 09:35:25};

#comment

IP:186.90.70.214 TIME:"2021-12-28 (²Ð) 09:35:25" REFERER:"" USER_AGENT:"Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:47.0) Gecko/20100101 Firefox/47.0"

¥È¥Ã¥×   ÊÔ½¸ º¹Ê¬ ÍúÎò źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS