[[ºî¶ÈÆü»ï]]

Ìܼ¡
#contents();

*¥á¥Ë¥å¡¼ [#wa300896]
//¸Ä¿Í¥Ú¡¼¥¸¤Î²¼¤Ë¥Ú¡¼¥¸¤òºî¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¡£
//¼«Ê¬¤Î¥Ú¡¼¥¸¤òÄɲä·¤¿¤¤¾ì¹ç¤Ï¡¢[[̾Á°/¿·¤·¤¤¥Ú¡¼¥¸Ì¾]]¤Þ¤¿¤Ï[[./¿·¤·¤¤¥Ú¡¼¥¸Ì¾]]¤È¤¤¤¦É÷¤Ë¤·¤Þ¤·¤ç¤¦¡£
//-[[./¤Æ¤¹¤È¤Ú¡¼¤¸]]

**¥³¥á¥ó¥È [#z0384db8]
//¥é¥¸¥ª¥Ü¥Ã¥¯¥¹¤¬¤¦¤¶¤¤¤Ã¤Æ¤¤¤¦¿Í¤Ï¡¢reply¤ò¾Ã¤·¤Æ¤ß¤Æ²¼¤µ¤¤¡£
#pcomment(reply);

**²áµî¤ÎÆüµ­ [#bb8af614]
//¥Ú¡¼¥¸¤¬Ä¹¤¯¤Ê¤Ã¤Æ¤­¤¿¤é¡¢²áµî¤ÎÆüµ­¤È¤·¤ÆÊÌ¥Ú¡¼¥¸¤ËÊݸ¤¹¤ë¤Î¤¬¤ª¤¹¤¹¤á¤Ã¤¹
//-[[./2008ǯ4·î]]

*11.11.02 [#n6ec0649]
** C : enum·¿¤ÇÂçÎ̤ËÀë¸À¤·¤¿Ï¢ÈÖ¤òif¤Çʬ´ô¤Ë»È¤¦¤È¤­¤ÎÏà [#s6277aaf]¤â¤·&#160;enum tag1 {NOSTUFF=0,A,B,C,D,E,F,G,H,I,J};&#160;enum tag2 {NOCODE=0,CODE_C,CODE_D,CODE_E,...,CODE_C10};¡¡// (30¸Ä¤È¤«40¸Ä¤È¤«¤¢¤ë¤È¤·¤å¤´¤¤)¤Î¤è¤¦¤ËÂçÎ̤Ëenum¤ÇÀë¸À¤·¤Æ¤¢¤ê¡¢&#160;if(nanika==areka){	if(koreha==A)sound=CODE_C;	else if(koreha==B)sound=CODE_D;	else if(koreha==C)sound=CODE_E;	...	else sound=NOCODE;&#160;}&#160;if(nanika==soreka){	if(koreha==A)sound=CODE_C4;	else if(koreha==B)sound=CODE_D4;	else ...	else sound=NOCODE;&#160;}&#160;if(nanika==nannda){&#160;...&#160;}&#160;return sound;¤Î¤è¤¦¤Ëenum¤ÇÀë¸À(¡áÏ¢ÈÖ)¤·¤¿¤â¤Î¤ò¾ò·ï¤È¾È¹ç¤·¡¢Ê̤Îenum¤ÇÀë¸À¤·¤¿¤â¤Î¤ò½ÐÎÏ(¤³¤³¤Ç¤Ïsound)¤¹¤ë¾ì¹ç¡¢¾åµ­¤Î½ñ¤­Êý¤è¤ê¤â&#160;define KOREHA_NUM (¤³¤³¤Ë¾ò·ï¤ËɬÍפʥ¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤Î¿ô)&#160;int i=0; 			// BYTE ¤Ç¤â¤¤¤¤&#160;if(nanika==areka)sound=CODE_C;	// index&#160;&#160;else if(nanika==soreka)sound=CODE_C4;&#160;else ...&#160;for(i=NOSTUFF;i<KOREHA_NUM;++i){¡¡	// i=0	if(koreha==i+1)sound+=i;	// i+1=A¤Ê¤Î¤Ç¤³¤ì¤È°ìÃפ¹¤ë¾ì¹çsound+=0;&#160;}¤È¤·¤¿Êý¤¬Îɤ¤(µ¤¤¬¤¹¤ë)¡£¸«¤Ë¤¯¤¯¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¤¬¡¢¸å¤Ç½ñ¤­¤Ê¤ª¤¹¤È¤­¤Ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÈenumÆâ¤Î½çÈÖ¤À¤±½ñ¤­¤«¤¨¤ì¤Ð¤¤¤¤¤·¡¢¾ò·ï¤Înanika¤¬Â¿¤¤¤È¤½¤ÎʬÇÜ¡¹¤Ë¥³¡¼¥É¤¬(̵Â̤Ë)Áý¤¨¤Æ¤¤¤¯¡£¤»¤Ã¤«¤¯enum¤ÇÏ¢ÈÖ¤ÇÀë¸À¤·¤Æ¤¤¤ë¤Ê¤éforʸ¤Ç¥¤¥ó¥¯¥ê¥á¥ó¥È¤·¤ÆÁöºº¤·¤¿Êý¤¬Îɤ¤¤È»×¤¦ [#q2674182]
¤â¤Á¤í¤ó¤À¤¬enum¤ÇÀë¸À¤¹¤ëºÝ¤Ë°ÕÌ£¤Î¤¢¤ë½çÈÖ¤ÇÊ¤Ф»¤ëɬÍפ¬¤¢¤ë¡£½çÉÔƱ¤ÇÀë¸À¤Ê¤ó¤«¤·¤¿¤éÏ¢È֤ΰÕÌ£¤¬¤Ê¤¤¤Ç¤¹( ^­ù^)¤Æ¤¤¤¦¤«enum¤ÇÀë¸À¤·¤¿¤é¤³¤¦¤¤¤¦¤³¤È»×¤¤¤Ä¤¤¤Æ¤â¤¤¤¤¤Ï¤º¤Ê¤Î¤Ë½ô¡¹½ª¤ï¤Ã¤¿¸å¤Ëµ¤ÉÕ¤¤¤¿²¶¤Ï¥Ð¥«¤À( ^­ù^)
*11·î2Æü [#n6ec0649]

** C : enum·¿¤ÇÂçÎ̤ËÀë¸À¤·¤¿Ï¢ÈÖ¤òif¤Çʬ´ô¤Ë»È¤¦¤È¤­¤ÎÏà [#s6277aaf]
¤â¤·
 enum tag1 {NOSTUFF=0,A,B,C,D,E,F,G,H,I,J};
 enum tag2 {NOCODE=0,CODE_C,CODE_D,CODE_E,...,CODE_C10};¡¡// (30¸Ä¤È¤«40¸Ä¤È¤«¤¢¤ë¤È¤·¤å¤´¤¤)
¤Î¤è¤¦¤ËÂçÎ̤Ëenum¤ÇÀë¸À¤·¤Æ¤¢¤ê¡¢
 if(nanika==areka){
	if(koreha==A)sound=CODE_C;
	else if(koreha==B)sound=CODE_D;
	else if(koreha==C)sound=CODE_E;
	...
	else sound=NOCODE;
 }
 if(nanika==soreka){
	if(koreha==A)sound=CODE_C4;
	else if(koreha==B)sound=CODE_D4;
	else ...
	else sound=NOCODE;
 }
 if(nanika==nannda){
 ...
 }
 return sound;
¤Î¤è¤¦¤Ëenum¤ÇÀë¸À(¡áÏ¢ÈÖ)¤·¤¿¤â¤Î¤ò¾ò·ï¤È¾È¹ç¤·¡¢Ê̤Îenum¤ÇÀë¸À¤·¤¿¤â¤Î¤ò½ÐÎÏ(¤³¤³¤Ç¤Ïsound)¤¹¤ë¾ì¹ç¡¢¾åµ­¤Î½ñ¤­Êý¤è¤ê¤â
 define KOREHA_NUM (¤³¤³¤Ë¾ò·ï¤ËɬÍפʥ¢¥ë¥Õ¥¡¥Ù¥Ã¥È¤Î¿ô)
 int i=0; 			// BYTE ¤Ç¤â¤¤¤¤
 if(nanika==areka)sound=CODE_C;	// index 
 else if(nanika==soreka)sound=CODE_C4;
 else ...
 for(i=NOSTUFF;i<KOREHA_NUM;++i){¡¡	// i=0
	if(koreha==i+1)sound+=i;	// i+1=A¤Ê¤Î¤Ç¤³¤ì¤È°ìÃפ¹¤ë¾ì¹çsound+=0;
 }
¤È¤·¤¿Êý¤¬Îɤ¤(µ¤¤¬¤¹¤ë)¡£
¸«¤Ë¤¯¤¯¤Ê¤ë¤«¤â¤·¤ì¤Ê¤¤¤¬¡¢¸å¤Ç½ñ¤­¤Ê¤ª¤¹¤È¤­¤Ë¥¤¥ó¥Ç¥Ã¥¯¥¹¤ÈenumÆâ¤Î½çÈÖ¤À¤±½ñ¤­¤«¤¨¤ì¤Ð¤¤¤¤¤·¡¢¾ò·ï¤Înanika¤¬Â¿¤¤¤È¤½¤ÎʬÇÜ¡¹¤Ë¥³¡¼¥É¤¬(̵Â̤Ë)Áý¤¨¤Æ¤¤¤¯¡£¤»¤Ã¤«¤¯enum¤ÇÏ¢ÈÖ¤ÇÀë¸À¤·¤Æ¤¤¤ë¤Ê¤éforʸ¤Ç¥¤¥ó¥¯¥ê¥á¥ó¥È¤·¤ÆÁöºº¤·¤¿Êý¤¬Îɤ¤¤È»×¤¦

¤â¤Á¤í¤ó¤À¤¬enum¤ÇÀë¸À¤¹¤ëºÝ¤Ë°ÕÌ£¤Î¤¢¤ë½çÈÖ¤ÇÊ¤Ф»¤ëɬÍפ¬¤¢¤ë¡£
½çÉÔƱ¤ÇÀë¸À¤Ê¤ó¤«¤·¤¿¤éÏ¢È֤ΰÕÌ£¤¬¤Ê¤¤¤Ç¤¹( ^­ù^)
¤Æ¤¤¤¦¤«enum¤ÇÀë¸À¤·¤¿¤é¤³¤¦¤¤¤¦¤³¤È»×¤¤¤Ä¤¤¤Æ¤â¤¤¤¤¤Ï¤º¤Ê¤Î¤Ë½ô¡¹½ª¤ï¤Ã¤¿¸å¤Ëµ¤ÉÕ¤¤¤¿²¶¤Ï¥Ð¥«¤À( ^­ù^)

( ^­ù^)

( ;­ù;)ŽÌŽÞŽÜŽ¯




¤Þ¤¡¤±¤Éenum¤ÇÂçÎ̤ËÀë¸À¤È¤«¤¢¤ó¤Þ¤ê»È¤ï¤Ê¤¤¤è¤Ê¤¡¡ÄenumÊØÍø¤À¤«¤é³§»È¤¦¤È¤¤¤¤¤µ¡ª

¤Þ¤¡¤±¤Éenum¤ÇÂçÎ̤ËÀë¸À¤È¤«¤¢¤ó¤Þ¤ê»È¤ï¤Ê¤¤¤è¤Ê¤¡¡Ä
enumÊØÍø¤À¤«¤é³§»È¤¦¤È¤¤¤¤¤µ¡ª

¤È»×¤Ã¤¿¤±¤ÉWikipedia¤Ë¤è¤ë¤ÈÎóµó·¿¤Ë¿ôÃͱ黻¤Ï¤¢¤ó¤Þ¤ê¤ä¤é¤Ê¤¤Êý¤¬Îɤ¤¤ß¤¿¤¤

http://ja.wikipedia.org/wiki/%E5%88%97%E6%8C%99%E5%9E%8B
C¤ÏÎóµó·¿¤Ë¿ôÃͤò¼«Í³¤ËÀßÄê½ÐÍè¤ë¾å¤Ë±é»»¤âµö¤µ¤ì¤Æ¤ë¤«¤é¾åµ­¤ÎÁöºº¤¬½ÐÍè¤ë¤À¤±¤Ç¡¢Java¤È¤«¤Ç¤Ï¤½¤Î¤Þ¤ÞÀ°¿ô¤È¤Î±é»»¤Ïµö¤µ¤ì¤Æ¤Ê¤¤¡Ä¤À¤È¡Ä¡Ä¡©¼«Ê¬¤Î´¶³Ð¤È¤·¤Æ¤ÏÂçÎ̤ξõÂÖ¤òÏ¢ÈÖ¤Ç#define¤¹¤ë¤è¤¦¤Ê´¶¤¸¤Ç¤¹ÍפϲÄÆÉÀ­¡Ä¥Ã¡ª²ÄÆÉÀ­¤Î¸þ¾å¡Ä¥Ã¡ª¥Þ¥¸¥Ã¥¯¥Ê¥ó¥Ð¡¼¤Î¡Ä°µÅÝŪ¡Ä¥Ã°µÅÝŪ¤Ê¸«¤Ë¤¯¤µ¡Ä¡Ä¥Ã¡ª¡ª(¸À¤¤Ìõ)

C¤ÏÎóµó·¿¤Ë¿ôÃͤò¼«Í³¤ËÀßÄê½ÐÍè¤ë¾å¤Ë±é»»¤âµö¤µ¤ì¤Æ¤ë¤«¤é¾åµ­¤ÎÁöºº¤¬½ÐÍè¤ë¤À¤±¤Ç¡¢Java¤È¤«¤Ç¤Ï¤½¤Î¤Þ¤ÞÀ°¿ô¤È¤Î±é»»¤Ïµö¤µ¤ì¤Æ¤Ê¤¤¡Ä¤À¤È¡Ä¡Ä¡©
¼«Ê¬¤Î´¶³Ð¤È¤·¤Æ¤ÏÂçÎ̤ξõÂÖ¤òÏ¢ÈÖ¤Ç#define¤¹¤ë¤è¤¦¤Ê´¶¤¸¤Ç¤¹
ÍפϲÄÆÉÀ­¡Ä¥Ã¡ª²ÄÆÉÀ­¤Î¸þ¾å¡Ä¥Ã¡ª¥Þ¥¸¥Ã¥¯¥Ê¥ó¥Ð¡¼¤Î¡Ä°µÅÝŪ¡Ä¥Ã°µÅÝŪ¤Ê¸«¤Ë¤¯¤µ¡Ä¡Ä¥Ã¡ª¡ª(¸À¤¤Ìõ)

*11.08.24(wed) [#d8d2b0c5]
**UART¤ÎBaud Rate¤Ë¤Ä¤¤¤Æ [#k03994fa]
UART¤ÇÃͤò¸«¤ë¤È¤­¤Ë²¿¤«¤È¤­¤É¤­¤ª¤«¤·¤¤Ãͤ¬½Ð¤ëorÃͤ¬¥º¥ì¤Æ¤¤¤ë¤È¤¤¤¦¤Î¤ÏBaud Rate¤¬¹ç¤Ã¤Æ¤¤¤Ê¤¤²ÄǽÀ­¤¬¤¢¤ê¤Þ¤¹~
Acknowrich¤Ê¤É¤Ç¤ÏǤ°Õ¤ÇBaud Rate¤òÊѤ¨¤é¤ì¤Þ¤¹¤¬ÍÑ°Õ¤µ¤ì¤Æ¤¤¤ë¤â¤Î¤ò»È¤Ã¤¿Êý¤¬Îɤ¤¤é¤·¤¤¤Ç¤¹¡£(9600bps¤È¤«14400bps¤È¤«)

ʬ¼þ¤Ï N=Sysclk/(8*BaudRate) ¤Ç·×»»¤·¤Æ»Í¼Î¸ÞÆþ¤·¤¿ÃͻȤ¨¤Ð¿ʬÂç¾æÉ×


*11.07.25(mon) [#ve901881]
**PSoC¤ÎI2CHW¥â¥¸¥å¡¼¥ë¤Ë¤Ä¤¤¤Æ [#mb22557c]
¥¿¥Ã¥Á¥»¥ó¥µ¤ò»È¤¦¤È¤­¤Ëslave¦¤Ë½©ÅÄÀèÀ¸¤Î¥µ¥ó¥×¥ë¤òÆþ¤ì¤ë¿Í¤Ø~
Designer5.1¤Ç¥×¥í¥¸¥§¥¯¥È¤òÆɤ߹þ¤à¤ÈI2CHW¤Î¥Ð¡¼¥¸¥ç¥ó¤¬°ã¤¦¤Î¤Ç¹¹¿·¤·¤Þ¤¹¤«¡¢¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬¸½¤ì¤Þ¤¹¡£
¡¡¤³¤ì¤ò¹¹¿·¤·¤Æslave¤Ë¥À¥¦¥ó¥í¡¼¥É¤¹¤ë¤È¤ª¤½¤é¤¯Æ°¤­¤Þ¤»¤ó¡£¸¶°ø¤ÏMaster¦¤Î¥×¥í¥°¥é¥à¤ÇReadStatus¤¬ÊѤï¤é¤ºComplete¤Ë¤Ê¤Ã¤Æ¤¤¤Ê¤¤¤³¤È¤È»×¤ï¤ì¤Þ¤¹¡£(¤±¤É¥Ç¡¼¥¿¤ÏÁ÷¤ì¤Æ¤ë)~
¡¡²ò·èË¡¤È¤·¤Æ¤Ï~
"I2CHW¤ò¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×¤»¤º¤Ëslave¤Ë¥À¥¦¥ó¥í¡¼¥É"~
"¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×¤·¤¿¾õÂÖ¤Çslave¦¤òÊѤ¨¤ºmaster¤Î¥×¥í¥°¥é¥à¤ÇReadStatus¤Î¥Õ¥é¥°¤òÆɤà¹Ô¤ò½ñ¤«¤Ê¤¤(¥³¥á¥ó¥È¥¢¥¦¥È)"~
¤Î2Âò¡©~

¡¡¥Ð¡¼¥¸¥ç¥ó¥¢¥Ã¥×¤·¤¿¾õÂ֤Ǽ«Ê¬¤Çslave¦¤Î¥×¥í¥°¥é¥à¿·¤·¤¯½ñ¤±¤Ð½ÐÍ褽¤¦¤Êµ¤¤â¤¹¤ë(»î¤·¤Æ¤Ê¤¤)¡£Designer¤¬5.0¤«¤é5.1¤ËÊѤï¤Ã¤¿¤Î¤Ëȼ¤Ã¤Æ¥µ¥ó¥×¥ë¥³¡¼¥É¤È¤«¤¬½¤Àµ¤µ¤ì¤Æ¤¿¤êÊѤï¤Ã¤Æ¤¿¤ê¤¹¤ë¤Î¤Ç¸Å¤¤¥×¥í¥¸¥§¥¯¥È¤È¤«»È¤¦¤È¤­¤ÏÃí°Õ¡£

IP:133.28.96.26 TIME:"2011-11-02 (¿å) 15:20:10" REFERER:"http://merl.ec.t.kanazawa-u.ac.jp/micon-bu/index.php" USER_AGENT:"Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2"

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