| Electronic Components Datasheet Search |
|
AN2038 Datasheet(PDF) 13 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2038 Datasheet(HTML) 13 Page - STMicroelectronics |
|
13 / 23 page ![]() AN2038 Command frames 13/23 Figure 10. Communication frame (Response from Slave) Motor Status Byte MS: Motor Stalled SF: Startup Fails OT: Over Temperature OV: Over Voltage OC: Over Current Table 4. I2C Code table COMMUNICATION CODE STX 0x02 Start Transmission ETX 0x03 End Transmission ACK 0x1c Acknowledge NOT_ACK 0xee Not Acknowledge NOT_READY 0xcc Not Ready WAIT 0xfc Wait MASTER COMMANDS CMD_SETSPEED 0x77 Command set speed. D2 and D3 will be respectively MSB and LSB of a word contains speed in rpm. CMD_BRAKE 0x88 Command brake CMD_START 0x66 Command start motor MASTER QUERY ASK_STATUS 0x08 Master asks for motor status. D1 and D2 of subsequent answer of the slave is a byte formatted as below. D2 is a checksum byte equal to complemented bit respect D1 ASK_SPEED 0x07 Master asks for motor speed. D1, D2, D3, D4 of subsequent answer of the slave is respectively MSB and LSB of a word contains speed in rpm. D3 and D4 is two checksum byte equal to complemented bit respect D1 and D2 00 0 MS SF OV OC OT Slave addr. + r STX Length = n D1 D2 Dn … CRC1 CRC2 ETX ANSWER FROM SLAVE From Slave From Master |
|
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |