![Geehy SEMICONDUCTOR APM32F030x4x6x8xC Скачать руководство пользователя страница 286](http://html1.mh-extra.com/html/geehy-semiconductor/apm32f030x4x6x8xc/apm32f030x4x6x8xc_user-manual_573629286.webp)
www.geehy.com Page 285
Field
Name
R/W
Description
In master mode:
0: Not transfer
1: Transfer
It is meaningless to write 0 to this bit.
15
NACKEN
R/W
Transmit NACK Enable
This bit can be set to 1 and cleared by software; it can be cleared by
hardware after the stop bit and NACK are transmitted, the address
match event is received or when I2CEN bit is not set.
0: Transmit ACK
1: Transmit NACK
It is meaningless to write 0 to this bit, and it is applicable only to the
slave ode.
In master receiving mode, it will be automatically transmitted after the
last byte is transmitted and between transmitting the stop bit or
RESTART bit.
In slave receiving mode, NACK will be transmitted automatically when
overrun occurs. In this case, NACKEN bit does not work;
After PEC check of hardware is enabled, the confirmation value of PEC
still does not depend on the value of NACK bit.
23:16
NUMBYT
R/W
Number of Bytes Setup
This bit determines the number of bytes to be transmitted. This bit is
meaningless when it is in slave mode and SBCEN=0.
This bit can be set only when START bit is not set.
24
RELOADEN
R/W
NUMBYT Reload Mode Enable
It can be set to 1 and cleared by software.
0: Transmission is over after transmission of NUMBYT bytes
1: Reload NUMBYT after transmission of NUMBYT bytes. After
transmission of NUMBYT bytes, TXCFLG flag bit will be set and SCL
will be pulled down.
25
ENDCFG
R/W
End Mode Configure
It can be set to 1 and cleared by software.
0: Software end mode: after transmission of NUMBYT data, TXCFLG
flag bit will be set, and SCL will be pulled down.
1: Automatic end mode: after transmission of NUMBYT data, a stop bit
will be transmitted automatically.
This bit does not work when it is in slave mode or RELOADEN bit is set.
26
PEC
R/W
Transfer Packet Error Checking Byte Enable
This bit can be set to 1 and cleared by software; it can be cleared by
hardware after PEC transmission is completed, the stop bit is received,
the address match event is received or when I2CEN bit is not set.
0: Disable
1: Enable
It is meaningless to write 0 to this bit.
Set RELOADEN bit or clear SBCEN bit in slave mode and this bit will
not work;
If SMBus mode is not supported, this bit will be reserved and be forced
to 0.
31:27
Reserved
Master address register 1 (I2C_ADDR1)
Offset address: 0x08
Reset value: 0x0000 0000