I do not manage to set the MST-bit in the IICC1-register of my uC. I'm using the software example of the HCS08QRUG users guide. I adapted all registers to the DZ60. Compilation is successfull.
When trying to debug in BDM with the Multilink, avery time I write IICC1_MST = 1 the bit is not changing.
Code for initialization of IIC-module in master-mode:
IICF = 0x40; // Set IIC frequency,100kbit (4MHz oscillator) IICC1_IICEN = 1; // Enable IIC IICC1_IICIE = 1; // Enable IIC interrupts IICA = 0xC0; // IIC Address I2C_STEP = IIC_READY_STATUS; I2C_DATA='A'; // test data I2C_DATA='B'; I2C_DATA='C';//want to set my controller to be master, to send smth afterwards... IICC1_MST = 1;
In this last line the MST-bit is not changing.
What do I do wrong?