405
CHAPTER 22 I
2
C
22.8
Notes on Use of I
2
C
This section summarizes notes on using the I
2
C interface.
■
Notes on Use of I
2
C
●
Notes on setting I
2
C interface registers
•
Operation of the I
2
C interface must be enabled (ICCR0:EN) before setting the I
2
C bus control registers
(IBCR00 and IBCR10).
•
Setting the master/slave select bit (IBCR10:MSS) (by writing "1") starts data transfer.
●
Notes on setting the shift clock frequency
•
The shift clock frequency can be calculated by determining the m, n, and DMBP values using the Fsck
equation in Table 22.5-4.
•
"DMBP=1" may not be selected if the value of n is 4 (ICCR0:CS2 = CS1 = CS = 0).
●
Notes on priority for simultaneous writes
•
Contention between next byte transfer and stop condition
When "0" is written to IBCR10:MSS with IBCR10:INT cleared, the MSS bit takes priority and a stop
condition develops.
•
Contention between next byte transfer and start condition
When "1" is written to IBCR10:SCC with IBCR10:INT cleared, the SCC bit takes priority and a start
condition develops.
●
Notes on setup using software
•
Do not select a repeated start condition (IBCR10:SCC=1) and slave mode (IBCR10:MSS=0)
simultaneously.
•
Execution cannot return from interrupt processing if the interrupt request enable bit is enabled
(IBCR10:BEIE=1/IBCR10:INTE=1) with the interrupt request flag bit (IBCR10:BER/IBCR10:INT)
containing "1". Be sure to clear the IBCR10:BER/IBCR10:INT bit.
•
The following bits are cleared to "0" when I
2
C operation is disabled (ICCR0:EN=0):
- AACKX, INTS, and WOE bits in the IBCR00 register
- All the bits in the IBCR10 register except the BER and BEIE bits
- All bits in the IBSR0 register
●
Notes on data acknowledgment
In slave mode, a data acknowledgment is generated in either of the following cases:
- When the received address matches the value in the address register (IAAR0) and
IBCR00:AACKX = 0.
- When a general call address (00
H
) is received and IBCR10:GACKE = 1.
Содержание F2 MC-8FX Family
Страница 2: ......
Страница 4: ......
Страница 30: ...16 CHAPTER 1 DESCRIPTION 1 FPT 64P M23 FPT 64P M24 2 For the I O circuit type refer to 1 8 I O Circuit Type ...
Страница 34: ...20 CHAPTER 1 DESCRIPTION ...
Страница 35: ...21 CHAPTER 2 HANDLING DEVICES This chapter gives notes on using 2 1 Device Handling Precautions ...
Страница 38: ...24 CHAPTER 2 HANDLING DEVICES ...
Страница 39: ...25 CHAPTER 3 MEMORY SPACE This chapter describes memory space 3 1 Memory Space 3 2 Memory Map ...
Страница 43: ...29 CHAPTER 4 MEMORY ACCESS MODE This chapter describes the memory access mode 4 1 Memory Access Mode ...
Страница 56: ...42 CHAPTER 5 CPU ...
Страница 73: ...59 CHAPTER 6 CLOCK CONTROLLER ...
Страница 96: ...82 CHAPTER 6 CLOCK CONTROLLER ...
Страница 104: ...90 CHAPTER 7 RESET ...
Страница 105: ...91 CHAPTER 8 INTERRUPTS This chapter explains the interrupts 8 1 Interrupts ...
Страница 174: ...160 CHAPTER 10 TIMEBASE TIMER ...
Страница 184: ...170 CHAPTER 10 TIMEBASE TIMER ...
Страница 218: ...204 CHAPTER 13 WATCH PRESCALER ...
Страница 257: ...243 CHAPTER 16 8 16 BIT COMPOSITE TIMER ...
Страница 261: ...247 CHAPTER 16 8 16 BIT COMPOSITE TIMER ...
Страница 288: ...274 CHAPTER 16 8 16 BIT COMPOSITE TIMER ...
Страница 301: ...287 CHAPTER 17 16 BIT PPG TIMER ...
Страница 316: ...302 CHAPTER 17 16 BIT PPG TIMER ...
Страница 382: ...368 CHAPTER 21 UART SIO DEDICATED BAUD RATE GENERATOR ...
Страница 390: ...376 CHAPTER 22 I2C ...
Страница 395: ...381 CHAPTER 22 I2C ...
Страница 399: ...385 CHAPTER 22 I2C ...
Страница 430: ...416 CHAPTER 23 10 BIT A D CONVERTER ...
Страница 476: ...462 CHAPTER 24 LCD CONTROLLER ...
Страница 482: ...468 CHAPTER 25 LOW VOLTAGE DETECTION RESET CIRCUIT ...
Страница 494: ...480 CHAPTER 26 CLOCK SUPERVISOR ...
Страница 507: ...493 CHAPTER 27 REAL TIME CLOCK ...
Страница 523: ...509 CHAPTER 27 REAL TIME CLOCK ...
Страница 532: ...518 CHAPTER 27 REAL TIME CLOCK ...
Страница 536: ...522 CHAPTER 28 256 KBIT FLASH MEMORY ...
Страница 554: ...540 CHAPTER 28 256 KBIT FLASH MEMORY ...
Страница 564: ...550 CHAPTER 29 EXAMPLE OF SERIAL PROGRAMMING CONNECTION ...
Страница 595: ...581 INDEX INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 596: ...582 INDEX Index ...
Страница 597: ...583 INDEX ...
Страница 599: ...585 Pin Function Index V2 LCD power supply driving pin 2 439 V3 LCD power supply driving pin 3 439 ...
Страница 600: ...586 Pin Function Index ...
Страница 602: ......