379
CHAPTER 22 I
2
C
Table 22.5-1 I
2
C Bus Control Register 0 (IBCR00) (1 / 2)
Bit name
Function
bit7
AACKX:
Address acknowledge
disable bit
This bit controls the address ACK when the first byte is transmitted.
Setting the bit to "0": Causes the address ACK to be output automatically. (The address ACK is
returned automatically if the slave address matches.)
Setting the bit to "1": Prevents the address ACK from being output.
• Write "1" to this bit in either of the following ways:
- Write "1" to the bit in master mode.
- Clear the bit to "0" after making sure that the bus busy bit is "0" (IBSR0:BB = 0).
Note:
• If AACKX = "1" and IBSR0:FBT = "0" when an IBCR10:INT bit interrupt occurs, no address
ACK is output even though the I
2
C address matches the slave address. Clear the IBCR10:INT
bit to "0" as an interrupt is generated upon completion of transfer of each byte of address/data
in the same way as during addressing.
• If AACKX = "1" and IBSR0:FBT = "1" when an IBCR10:INT bit interrupt occurs, "1" might
be written to AACKX after addressing as in slave mode. Either continue normal
communication after setting AACKX to 0 again or restart communication after disabling I
2
C
operation (ICCR0:EN = 0).
bit6
INTS:
Timing select bit for
data reception transfer
completion flag (INT)
This bit selects the timing of the transfer completion interrupt (IBCR10:INT) when data is received.
Change the bit only when IBSR0:TRX = 0 and IBSR1:FBT = 0.
Setting the bit to "0": Sets the transfer completion interrupt (IBCR10:INT) in the ninth SCL cycle.
Setting the bit to "1": Sets the transfer completion interrupt (IBCR10:INT) in the eighth SCL cycle.
Note:
• The transfer completion interrupt (IBCR10:INT) is set always in the ninth SCL0 cycle except
during data reception (IBSR1:TRX = 1 or IBSR1:FBT = 1).
• If the data ACK depends on the content of the received data (such as packet error checking
used by the SM bus), control the data ACK by setting the data ACK enable bit
(IBCR10:DACKE) after writing "1" to this bit (for example, using a previous transfer
completion interrupt) to read latest received data.
• The latest data ACK (IBSR0:LRB) can be read after the ACK has been received (IBSR0:LRB
must be read during the transfer completion interrupt in the ninth SCL cycle.) If ACK is read
when this bit is "1", therefore, you must write "0" to this bit in the transfer completion
interrupt in the eighth SCL0 cycle so that another transfer completion interrupt will occur in
the ninth SCL0 cycle.
bit5
ALF:
Arbitration lost
interrupt request flag
bit
This bit is used to detect when arbitration is lost.
• An arbitration lost interrupt request is generated if this bit and the IBCR00:ALE bit are both "1".
• This bit is set to "1" in the following cases:
- When arbitration lost is detected during data/address transmission as a master
- When "1" is written to the IBCR10:MSS bit with the bus being used by another system. However, the
bit is not set when "1" is written to the MSS bit after the system returns AACK or GCAK as a slave.
• This bit is set to "0" in the following cases:
- When "0" is written to the IBCR00:ALF bit with IBSR0:BB = 0.
- When "0" is written to the IBCR10:INT bit to clear the transmission completion flag.
• Writing "1" to this bit leaves its value unchanged and has no effect on the operation.
• The bit returns "1" when read by a read-modify-write operation.
bit4
ALE:
Arbitration lost
interrupt enable bit
This bit enables or disables arbitration lost interrupts.
• An arbitration lost interrupt request is generated if this bit and the IBCR00:ALF bit are both "1".
Setting the bit to "0": Disables arbitration lost interrupts.
Setting the bit to "1": Enables arbitration lost interrupts.
bit3
SPF:
Stop detection interrupt
request flag bit
This bit is used to detect a stop condition.
• A stop detection interrupt request is generated if this bit and the IBCR00:SPE bit are both "1".
• This bit is set to "1" if a valid stop condition is detected when the bus is busy.
Setting the bit to "0": Clears itself (changes the value to "0").
Setting the bit to "1": Leaves its value unchanged without affecting the operation.
• The bit returns "1" when read by a read-modify-write operation.
Содержание 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: ......