Other Parts Discussed in Thread: MOTORSTUDIO
Tool/software:
Hi there,
I'm having trouble using I2C with the MCF8329EVM board and an STM32 micro.
the EVM board reacts to I2C commands, but I am unsure of how to set the speed via I2C.
At present, I have been reading the contents of register 0xA4; clearing the lower two bits; and setting them to 0b10, then writing it back to 0xA4.
I then attempt to set the speed via reading the contents of 0xEC; clearing bits 16-30 (var &= ~0x7FFF0000); then placing arbitrary values into the 16-30 bit position.
In addition to setting bit 31 of 0xEC for SPEED_OVER_RIDE then writing back to 0xEC.
I'm not certain what I am doing wrong.
Many thanks in advance,
Best regards,
Nathan