A96G150 User's manual
15. Combination of USART, SPI, and I2C (USI)
209
15.22
USIn register description
USInBD (USIn Baud- Rate Generation Register: For UART and SPI mode): E3H/F3H, n = 0, 1
7
6
5
4
3
2
1
0
USInBD7
USInBD 6
USInBD 5
USInBD 4
USInBD 3
USInBD 2
USInBD 1
USInBD 0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: FFH
USInBD[7:0]
The value in this register is used to generate internal baud rate in
asynchronous mode or to generate SCKn clock in SPI mode. To
prevent malfunction, do not write
‘0’ in asynchronous mode and do not
write
‘0’ or ‘1’ in SPI mode.
NOTE
: In common with USInSAR register, USInBD register is used for slave address
register when the USIn I2C mode.
USInDR (USIn Data Register: For UART, SPI, and I2C mode): E5H/F5H, n = 0, 1
7
6
5
4
3
2
1
0
USInDR7
USInDR 6
USInDR 5
USInDR 4
USInDR 3
USInDR 2
USInDR 1
USInDR 0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 00H
USInDR[7:0]
The USIn transmit buffer and receive buffer share the same I/O
address with this DATA register. The transmit data buffer is the
destination for data written to the USInDR register. Reading the
USInDR register returns the contents of the receive buffer.
Write to this register only when the DREn flag is set. In SPI master
mode, the SCK clock is generated when data are written to this
register.
USInSDHR (USInSDA Hold Time Register: For I2C mode): E4H/F4H, n = 0, 1
7
6
5
4
3
2
1
0
USInSDHR7
USInSDHR6
USInSDHR5
USInSDHR 4
USInSDHR 3
USInSDHR 2
USInSDHR 1
USInSDHR 0
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Initial value: 01H
USInSDHR[7:0]
The register is used to control SDAn output timing from the falling edge
of SCI in I2C mode.
NOTES:
1.
That SDAn is changed after t
SCLK
X (U2), in master SDAn change in
the middle of SCLn.
2.
In slave mode, configure this register regarding the frequency of SCLn from
master.
3.
The SDAn is changed after t
SCLK
X (U2) in master mode. So, to insure
operation in slave mode, the value t
SCLK
X (U2) must be smaller than
the period of SCL.
Содержание A96G150
Страница 126: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 126 Figure 43 16 bit Timer Counter Mode Operation Example...
Страница 136: ...12 Timer 0 1 2 3 4 5 A96G150 User s manual 136 Figure 51 16 bit Timer Counter Mode Operation Example...
Страница 147: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 147 Figure 59 16 bit Timer Counter Mode Operation Example...
Страница 157: ...A96G150 User s manual 12 Timer 0 1 2 3 4 5 157 Figure 67 16 bit Timer Counter Mode Operation Example...
Страница 171: ...A96G150 User s manual 14 12 bit ADC 171 Figure 79 ADC Operation Flow Sequence...
Страница 333: ...A96G150 User s manual Revision history 333 Revision history Revision Date Notes 1 00 2022 06 22 First creation...