Добавил:
ИВТ (советую зайти в "Несортированное") Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
interfeysy_1 / ИДЗ_машинка / даташиты / esp32_technical_reference_manual_en.pdf
Скачиваний:
16
Добавлен:
26.01.2024
Размер:
9.62 Mб
Скачать

13 UART Controller (UART)

UART_RXFIFO_FULL_INT: Triggered when the receiver gets more data than what (rx_flow_thrhd_h3, rx_flow_thrhd) specifies.

13.3.10 UHCI Interrupts

UHCI_SEND_A_REG_Q_INT: When using the always_send registers to send a series of short packets, this is triggered when DMA has sent a short packet.

UHCI_SEND_S_REG_Q_INT: When using the single_send registers to send a series of short packets, this is triggered when DMA has sent a short packet.

UHCI_OUT_TOTAL_EOF_INT: Triggered when all data have been sent.

UHCI_OUTLINK_EOF_ERR_INT: Triggered when there are some errors in EOF in the outlink descriptor.

UHCI_IN_DSCR_EMPTY_INT: Triggered when there are not enough inlinks for DMA.

UHCI_OUT_DSCR_ERR_INT: Triggered when there are some errors in the inlink descriptor.

UHCI_IN_DSCR_ERR_INT: Triggered when there are some errors in the outlink descriptor.

UHCI_OUT_EOF_INT: Triggered when the current descriptor’s EOF bit is 1.

UHCI_OUT_DONE_INT: Triggered when an outlink descriptor is completed.

UHCI_IN_ERR_EOF_INT: Triggered when there are some errors in EOF in the inlink descriptor.

UHCI_IN_SUC_EOF_INT: Triggered when a data packet has been received.

UHCI_IN_DONE_INT: Triggered when an inlink descriptor has been completed.

UHCI_TX_HUNG_INT: Triggered when DMA takes much time to read data from RAM.

UHCI_RX_HUNG_INT: Triggered when DMA takes much time to receive data .

UHCI_TX_START_INT: Triggered when DMA detects a separator char.

UHCI_RX_START_INT: Triggered when a separator char has been sent.

13.4Register Summary

13.4.1 UART Register Summary

Name

Description

 

UART0

UART1

UART2

Acc

Configuration registers

 

 

 

 

 

 

 

 

 

 

 

 

UART_CONF0_REG

Configuration register 0

0x3FF40020

0x3FF50020

0x3FF6E020

R/W

 

 

 

 

 

 

UART_CONF1_REG

Configuration register 1

0x3FF40024

0x3FF50024

0x3FF6E024

R/W

 

 

 

 

 

 

UART_CLKDIV_REG

Clock divider configu-

0x3FF40014

0x3FF50014

0x3FF6E014

R/W

ration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_FLOW_CONF_REG

Software

flow-control

0x3FF40034

0x3FF50034

0x3FF6E034

R/W

configuration

 

 

 

 

 

 

 

 

 

 

 

 

UART_SWFC_CONF_REG

Software

flow-control

0x3FF4003C

0x3FF5003C

0x3FF6E03C

R/W

character configuration

 

 

 

 

 

 

 

 

 

 

 

UART_SLEEP_CONF_REG

Sleep-mode configura-

0x3FF40038

0x3FF50038

0x3FF6E038

R/W

tion

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_IDLE_CONF_REG

Frame-end idle config-

0x3FF40040

0x3FF50040

0x3FF6E040

R/W

uration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Espressif Systems

 

349

 

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

13 UART Controller (UART)

UART_RS485_CONF_REG

RS485 mode configu-

0x3FF40044

0x3FF50044

0x3FF6E044

R/W

ration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Status registers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_STATUS_REG

UART status register

0x3FF4001C

0x3FF5001C

0x3FF6E01C

RO

 

 

 

 

 

 

UART_MEM_TX_STATUS_REG

TX FIFO write and read

0x3FF4005C

0x3FF5005C

0x3FF6E05C

RO

 

offset address

 

 

 

 

 

 

 

 

 

 

 

UART_MEM_RX_STATUS_REG

RX FIFO write and read

0x3FF40060

0x3FF50060

0x3FF6E060

RO

 

offset address

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Autobaud registers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_AUTOBAUD_REG

Autobaud

configura-

0x3FF40018

0x3FF50018

0x3FF6E018

R/W

tion register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Autobaud

 

minimum

 

 

 

 

UART_LOWPULSE_REG

low

pulse

duration

0x3FF40028

0x3FF50028

0x3FF6E028

RO

 

register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Autobaud

 

minimum

 

 

 

 

UART_HIGHPULSE_REG

high

pulse

duration

0x3FF4002C

0x3FF5002C

0x3FF6E02C

RO

 

register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_POSPULSE_REG

Autobaud

high

pulse

0x3FF40068

0x3FF50068

0x3FF6E068

RO

register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_NEGPULSE_REG

Autobaud

low

pulse

0x3FF4006C

0x3FF5006C

0x3FF6E06C

RO

register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_RXD_CNT_REG

Autobaud edge change

0x3FF40030

0x3FF50030

0x3FF6E030

RO

count register

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AT escape seqence detection configuration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_AT_CMD_PRECNT_REG

Pre-sequence

 

timing

0x3FF40048

0x3FF50048

0x3FF6E048

R/W

configuration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_AT_CMD_POSTCNT_REG

Post-sequence

timing

0x3FF4004C

0x3FF5004C

0x3FF6E04C

R/W

configuration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_AT_CMD_GAPTOUT_REG

Timeout configuration

0x3FF40050

0x3FF50050

0x3FF6E050

R/W

 

 

 

 

 

 

 

 

UART_AT_CMD_CHAR_REG

AT

escape

sequence

0x3FF40054

0x3FF50054

0x3FF6E054

R/W

detection configuration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

FIFO configuration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_FIFO_REG

FIFO data register

0x3FF40000

0x3FF50000

0x3FF6E000

R/W

 

 

 

 

 

 

UART_MEM_CONF_REG

UART threshold and al-

0x3FF40058

0x3FF50058

0x3FF6E058

R/W

location configuration

 

 

 

 

 

 

 

 

 

 

 

 

UART_MEM_CNT_STATUS_REG

Receive and

transmit

0x3FF40064

0x3FF50064

0x3FF6E064

RO

memory configuration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Interrupt registers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_INT_RAW_REG

Raw interrupt status

0x3FF40004

0x3FF50004

0x3FF6E004

RO

 

 

 

 

 

 

UART_INT_ST_REG

Masked interrupt sta-

0x3FF40008

0x3FF50008

0x3FF6E008

RO

tus

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UART_INT_ENA_REG

Interrupt enable bits

0x3FF4000C

0x3FF5000C

0x3FF6E00C

R/W

 

 

 

 

 

 

UART_INT_CLR_REG

Interrupt clear bits

0x3FF40010

0x3FF50010

0x3FF6E010

WO

 

 

 

 

 

 

 

 

 

 

Espressif Systems

350

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

13 UART Controller (UART)

13.4.2 UHCI Register Summary

Name

Description

 

 

UDMA0

UDMA1

Acc

Configuration registers

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_CONF0_REG

UART

and frame

separa-

0x3FF54000

0x3FF4C000

R/W

tion config

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_CONF1_REG

UHCI config register

0x3FF5402C

0x3FF4C02C

R/W

 

 

 

 

 

UHCI_ESCAPE_CONF_REG

Escape characters configu-

0x3FF54064

0x3FF4C064

R/W

ration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_HUNG_CONF_REG

Timeout configuration

0x3FF54068

0x3FF4C068

R/W

 

 

 

 

 

UHCI_ESC_CONF0_REG

Escape sequence configu-

0x3FF540B0

0x3FF4C0B0

R/W

ration register 0

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_ESC_CONF1_REG

Escape sequence configu-

0x3FF540B4

0x3FF4C0B4

R/W

ration register 1

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_ESC_CONF2_REG

Escape sequence configu-

0x3FF540B8

0x3FF4C0B8

R/W

ration register 2

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_ESC_CONF3_REG

Escape sequence configu-

0x3FF540BC

0x3FF4C0BC

R/W

ration register 3

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DMA configuration

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_OUT_LINK_REG

Link

descriptor

address

0x3FF54024

0x3FF4C024

R/W

and control

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_IN_LINK_REG

Link

descriptor

address

0x3FF54028

0x3FF4C028

R/W

and control

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_OUT_PUSH_REG

FIFO data push register

0x3FF54018

0x3FF4C018

R/W

 

 

 

 

 

UHCI_DMA_IN_POP_REG

FIFO data pop register

0x3FF54020

0x3FF4C020

RO

 

 

 

 

 

 

 

 

 

DMA status

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_OUT_STATUS_REG

DMA FIFO status

 

0x3FF54014

0x3FF4C014

RO

 

 

 

 

 

UHCI_DMA_OUT_EOF_DES_ADDR_REG

Out EOF link descriptor ad-

0x3FF54038

0x3FF4C038

RO

dress on success

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_OUT_EOF_BFR_DES_ADDR_REG

Out EOF link descriptor ad-

0x3FF54044

0x3FF4C044

RO

dress on error

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_IN_SUC_EOF_DES_ADDR_REG

In EOF link descriptor ad-

0x3FF5403C

0x3FF4C03C

RO

dress on success

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_IN_ERR_EOF_DES_ADDR_REG

In EOF link descriptor ad-

0x3FF54040

0x3FF4C040

RO

dress on error

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_IN_DSCR_REG

Current

inlink

descriptor,

0x3FF5404C

0x3FF4C04C

RO

first word

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_IN_DSCR_BF0_REG

Current

inlink

descriptor,

0x3FF54050

0x3FF4C050

RO

second word

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_IN_DSCR_BF1_REG

Current

inlink

descriptor,

0x3FF54054

0x3FF4C054

RO

third word

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_OUT_DSCR_REG

Current outlink

descriptor,

0x3FF54058

0x3FF4C058

RO

first word

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

UHCI_DMA_OUT_DSCR_BF0_REG

Current outlink

descriptor,

0x3FF5405C

0x3FF4C05C

RO

second word

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Espressif Systems

351

 

 

 

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

13 UART Controller (UART)

UHCI_DMA_OUT_DSCR_BF1_REG

Current outlink descriptor,

0x3FF54060

0x3FF4C060

RO

third word

 

 

 

 

 

 

 

 

 

Interrupt registers

 

 

 

 

 

 

 

 

 

UHCI_INT_RAW_REG

Raw interrupt status

0x3FF54004

0x3FF4C004

RO

 

 

 

 

 

UHCI_INT_ST_REG

Masked interrupt status

0x3FF54008

0x3FF4C008

RO

 

 

 

 

 

UHCI_INT_ENA_REG

Interrupt enable bits

0x3FF5400C

0x3FF4C00C

R/W

 

 

 

 

 

UHCI_INT_CLR_REG

Interrupt clear bits

0x3FF54010

0x3FF4C010

WO

 

 

 

 

 

Espressif Systems

352

ESP32 TRM (Version 5.0)

Submit Documentation Feedback

Соседние файлы в папке даташиты