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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

I 2 C Status Register<br />

Programming Model<br />

i2_stop When set, the I 2 C master controller generates a stop sequence<br />

on the I 2 C bus on the next dummy write (data=don’t care) to<br />

the I 2 C Transmitter Data Register and clears the i2_cmplt bit<br />

in the I 2 C Status Register. After the stop sequence has been<br />

transmitted, the I 2 C master controller will automatically clear<br />

the i2_stop bit and then set the i2_cmplt bit in the I 2 C Status<br />

Register.<br />

i2_ackout When set, the I 2 C master controller generates an acknowledge<br />

on the I 2 C bus during read cycles. This bit should be used only<br />

in the I 2 C sequential read operation and must remain cleared<br />

for all other I 2 C operations. For I 2 C sequential read operation,<br />

this bit should be set for every single byte received except on<br />

the last byte in which case it should be cleared.<br />

i2_enbl When set, the I 2 C master interface will be enabled for I 2 C<br />

operations. If clear, reads and writes to all I 2 C registers are<br />

still allowed but no I 2 C bus operations will be performed.<br />

Address $FEF800A0<br />

Bit 0<br />

Name<br />

1<br />

2<br />

3<br />

4<br />

5<br />

6<br />

7<br />

8<br />

9<br />

10<br />

11<br />

12<br />

13<br />

14<br />

15<br />

16<br />

17<br />

18<br />

19<br />

20<br />

21<br />

22<br />

23<br />

24<br />

25<br />

26<br />

27<br />

28<br />

29<br />

30<br />

31<br />

Operation READ ZERO READ ZERO READ ZERO R RRRRRRR<br />

Reset X X X<br />

0<br />

0<br />

0<br />

0<br />

i2_datin<br />

i2_err<br />

i2_ackin<br />

i2_cmplt<br />

X<br />

X<br />

X<br />

X<br />

0 PL<br />

0 PL<br />

0 PL<br />

1 PL<br />

i2_datin This bit is set whenever the I 2 C master controller has<br />

successfully received a byte of read data from an I 2 C bus slave<br />

device. This bit is cleared after the I 2 C Receiver Data Register<br />

is read.<br />

i2_err This bit is set when both i2_start and i2_stop bits in the I 2 C<br />

Control Register are set at the same time. The I 2 C master<br />

controller will then clear the contents of the I 2 C Control<br />

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

3

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

Saved successfully!

Ooh no, something went wrong!