ade7169f16 Analog Devices, Inc., ade7169f16 Datasheet - Page 116

no-image

ade7169f16

Manufacturer Part Number
ade7169f16
Description
Single-phase Energy Measurement Ic With 8052 Mcu, Rtc And Lcd Driver
Manufacturer
Analog Devices, Inc.
Datasheet
ADE7169F16
UART SERIAL INTERFACE
The ADE7169F16 UART can be configured in one of four
modes:
- Shift register with baud rate fixed at F
- 8-bit UART with variable baud rate
- 9- bit UART with baud rate fixed at F
- 9 bit UART with variable baud rate
Variable baud rates are defined by using an internal timer to
generate any rate between 300 and 115200 bauds/s.
The UART serial interface provided in the ADE7169F16 is a
full-duplex serial interface. It is also receive buffered, by storing
the first received byte in a receive buffer until the reception of
UART SFR REGISTER LIST
Table 115. Serial port SFRs
SFR
SCON
SBUF
SBAUDT
SBAUDF
Table 116. SCON SFR Bit Description SFR (SCON, 0x98)
Bit
Location
7-6
5
Address
0x98
0x9E
0x9D
0x99
Bit
Addr.
0x9F,
0x9E
0x9D
Bit Addressable
Yes
No
No
No
Bit
Name
SM0,
SM1
SM2
Default
Value
00
0
core
core
/64 or F
/12
Description
Serial Communications Control register – see Table 116
Serial Port Buffer – see Table 117
Enhanced error checking – see Table 118
Enhanced Fractional Divider – see Table 119
core
Description
UART Serial Mode Select Bits. These bits select the serial port operating mode as
follows:
SM0
0
0
1
1
Multiprocessor Communication Enable Bit.
Enables multiprocessor communication in Modes 2 and 3 and framing error detection
in Mode 1.
In Mode 0, SM2 should be cleared.
In Mode 1, if SM2 is set, RI is not activated if a valid stop bit was not received. If SM2 is
cleared, RI is set as soon as the byte of data is received.
/32
Rev. PrD | Page 116 of 140
SM1
0
1
0
1
Selected Operating Mode.
Mode 0: Shift register, fixed baud rate (F
Mode 1: 8-bit UART, variable baud rate.
Mode 2: 9-bit UART, fixed baud rate (F
Mode 3: 9-bit UART, variable baud rate.
the second byte is complete. The physical interface to the UART
is provided via the RxD (P1.0) and TxD (P1.1) pins, while the
firmware interface is through the SFRs presented in Table 115.
Both the serial port receive and transmit registers are accessed
through the SBUF SFR (SFR address = 0x99). Writing to SBUF
loads the transmit register, and reading SBUF accesses a
physically separate receive register.
An enhanced UART mode is offered by using UART Timer and
providing enhanced frame error, break error and overwrite
error detection. This mode is enabled by setting the EXTEN bit
in the CFG SFR—see the UART additional features section. The
SBAUDT and SBAUDF SFR are used to configure UART Timer
and to indicate the enhanced UART errors.
Preliminary Technical Data
core
core
/32) or (F
/12).
core
/16).

Related parts for ade7169f16