/********************** I2C data word format ******************************/ /* Target_ID R/W Control_Word Data CRC_8 */ /* A6~A0 W0 CW23~CW0 D15/D31/D63~D0(LSB first) C7~C0 */ /***********************************************************************/ /********************** 24-bit control word format *****************************/ /* CW23 CW22 CW21~CW20 CW19~CW16 CW15~CW12 CW11~CW0 */ /* OP_R/W CRC_EN DLEN MEM_SEC MEM_PAGE MEM_ADDR */ /* 1: R 1: enable 00: 16bit 4bit 4bit 12bit */ /* 0: W 0: disable 01: 32bit */ /* 10: 64bit */ /* 11: reserve */ /*************************************************************************/ static DataFormat_32bit gRegisterAddressTable[RegisterMax] = { //Control Data+Address+Data(4 Bytes) {0x10, 0x00, 0x80, 0x20, 0x8C, 0x63, 0x44}, // 0x80 : init speed detect config {0x10, 0x00, 0x82, 0x64, 0xF0, 0x3A, 0x28}, // 0x82 : reverse driver config {0x10, 0x00, 0x84, 0xD0, 0x07, 0x68, 0x0B}, // 0x84 : motor start setting1 {0x10, 0x00, 0x86, 0x00, 0x60, 0x06, 0x23}, // 0x86 : motor start setting2 {0x10, 0x00, 0x88, 0xB0, 0x81, 0x31, 0x0C}, // 0x88 : close loop setting1 {0x10, 0x00, 0x8A, 0x00, 0x00, 0xAD, 0x1A}, // 0x8A : close loop setting2 {0x10, 0x00, 0x8C, 0x00, 0x00, 0x00, 0x00}, // 0x8C : close loop setting3 {0x10, 0x00, 0x8E, 0x2C, 0x01, 0x00, 0x00}, // 0x8E : close loop setting4 {0x10, 0x00, 0x90, 0x06, 0x02, 0xE8, 0x5F}, // 0x90 : config fault setting1 {0x10, 0x00, 0x92, 0x00, 0x00, 0x00, 0x74}, // 0x92 : config fault setting2 {0x10, 0x00, 0x94, 0x00, 0x00, 0x00, 0x00}, // 0x94 : config speed profile1 {0x10, 0x00, 0x96, 0x00, 0x00, 0x00, 0x00}, // 0x96 : config speed profile2 {0x10, 0x00, 0x98, 0x00, 0x00, 0x00, 0x00}, // 0x98 : config speed profile3 {0x10, 0x00, 0x9A, 0x00, 0x00, 0x00, 0x00}, // 0x9A : config speed profile4 {0x10, 0x00, 0x9C, 0x00, 0x00, 0x00, 0x00}, // 0x9C : config speed profile5 {0x10, 0x00, 0x9E, 0x00, 0x00, 0x00, 0x00}, // 0x9E : config speed profile6 {0x10, 0x00, 0xA0, 0x7D, 0x40, 0xB3, 0x00}, // 0xA0 : config init algo setting1 {0x10, 0x00, 0xA2, 0xA7, 0x01, 0x00, 0x00}, // 0xA2 : config init algo setting2 {0x10, 0x00, 0xA4, 0x00, 0x00, 0x00, 0x00}, // 0xA4 : config hardware pin {0x10, 0x00, 0xA6, 0x00, 0x00, 0x00, 0x00}, // 0xA6 : config device1 {0x10, 0x00, 0xA8, 0x00, 0xB0, 0x00, 0x00}, // 0xA6 : config device2 ----crystal OS {0x10, 0x00, 0xAA, 0x00, 0x00, 0x00, 0x40}, // 0xAA : config peri {0x10, 0x00, 0xAC, 0x00, 0x01, 0x00, 0x00}, // 0xAC : config gated driver setting1 {0x10, 0x00, 0xAE, 0x00, 0x00, 0x20, 0x00}, // 0xAE : config gated driver setting2 {0x10, 0x00, 0xEA, 0x00, 0x00, 0x50, 0x8A}, // 0xEA : config algo //{0x10, 0x00, 0xEA, 0x00, 0x00, 0x00, 0x00}, // 0xEA : config algo };