Other Parts Discussed in Thread: MCF8315EVM
Tool/software:
Hello,
Has an application note been created for this device yet? I have successfully implemented motor control using the MCF8315EVM, but am now wanting to move to using my own microcontroller. I am having a hard time compiling the appropriate commands using only the data sheet as a reference. Specifically, I am trying to determine what I2C command is needed in order to set the desired motor speed. When I connected an oscilloscope to the SCL and SDA pins, I was able to observe the following data stream when setting the motor speed to 100% via the motor studio GUI.
1000 EC00 00FF FF
I believe the below breakdown of the data stream is accurate, but cannot account for the "00" that is immediately before the "FFFF"
10 - target ID of 1, with the I2C write bit appended
00 - OP_R/W = 0, CRC_EN = 0, DLEN = 0 (16-bit data length), MEM_SEC = 0
EC00 - MEM_PAGE & MEM_ADDR
00 - UNKNOWN????
FFFF - 100% DIGITAL_SPEED_CTRL + OVERRIDE
Can someone help me understand where the extra "00" came from?
Thanks!