17.11.2012 Views

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

MVME5100 Single Board Computer Programmer's Reference Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

I 2 C Page Write<br />

Functional Description<br />

The I 2 C page write is initiated the same as the I 2 C byte write, but instead<br />

of sending a stop sequence after the first data word, the I 2 C master<br />

controller will transmit more data words before a stop sequence is<br />

generated. The first step in the programming sequence should be to test the<br />

i2_cmplt bit for the operation-complete status. The next step is to initiate a<br />

start sequence by first setting the i2_start and i2_enbl bits in the I 2 C<br />

Control Register and then writing the device address (bits 7-1) and write<br />

bit (bit 0=0) to the I 2 C Transmitter Data Register. The i2_cmplt bit will be<br />

automatically clear with the write cycle to the I 2 C Transmitter Data<br />

Register. The I 2 C Status Register must now be polled to test the i2_cmplt<br />

and i2_ackin bits. The i2_cmplt bit becomes set when the device address<br />

and write bit have been transmitted, and the i2_ackin bit provides status as<br />

to whether or not a slave device acknowledged the device address. With<br />

the successful transmission of the device address, the initial word address<br />

will be loaded into the I 2 C Transmitter Data Register to be transmitted to<br />

the slave device. Again, i2_cmplt and i2_ackin bits must be tested for<br />

proper response. After the initial word address is successfully transmitted,<br />

the first data word loaded into the I 2 C Transmitter Data Register will be<br />

transferred to the initial address location of the slave device. After<br />

i2_cmplt and i2_ackin bits have been tested for proper response, the next<br />

data word loaded into the I 2 C Transmitter Data Register will be transferred<br />

to the next address location of the slave device, and so on, until the block<br />

transfer is complete. A stop sequence then must be transmitted to the slave<br />

device by first setting the i2_stop and i2_enbl bits in the I 2 C Control<br />

Register and then writing a dummy data (data=don’t care) to the I 2 C<br />

Transmitter Data Register. The I 2 C Status Register must now be polled to<br />

test i2_cmplt bit for the operation-complete status. The stop sequence will<br />

initiate a programming cycle for the serial EEPROM and also relinquish<br />

the ASIC master’s possession of the I 2 C bus. Figure 3-8 shows the<br />

suggested software flow diagram for programming the I 2 C page write<br />

operation.<br />

http://www.motorola.com/computer/literature 3-29<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!