MMx通信プロトコル(ver1.1 : 2004.6.7) ◎通信方式: 9600bps, 8bit, パリティなし, フロー制御なし ◎PC -> MMx - 0x00 : read out (1) - 0x01 - 0xfe : configure automata function (2) - 0xff : set lifegame mode (3) (1) read out [MMx -> PC] '*' (ack) [MMx -> PC] number of conditions (1byte) // 0 - 16 [MMx -> PC] initial pattern (2byte x 8) [MMx -> PC] condition (3byte x N) [MMx -> PC] '*' (ack) (2) configure automata function [MMx -> PC] '*' (ack) [PC -> MMx] initial pattern (1byte) [*] [MMx -> PC] '*' (ack) [*] [*] repeat 8 times [PC -> MMx] condition (3byte) [**] [MMx -> PC] '*' (ack) [**] [**] repeat N times (3) set lifegame mode [MMx -> PC] '*' (ack) [PC -> MMx] initial pattern (1byte) [*] [MMx -> PC] '*' (ack) [*] [*] repeat 8 times ※遷移条件の3バイトは以下のとおり 76 54 32 10 (bits) 1st UL U UR L 2nd V R DL D 3rd DR AC 00 00 UL=左上 U=上 UR=右上 L=左 V=中央 R=右 DL=左下 D=下 DR=右下 00 ==0, 01 ==1, 10/11 ==x(don't care) AC=動作 00 =0, 01 =1, 10 =reverse, 11 random(optional) ------------------------ [EEPROM map] 0x00 - 0x07 : initial pattern (8byte) 0x08 : N (number of conditions) 0x09 - 0x0b : 1st condition 0x0c - 0x0e : 2nd condition ...