Search found 4 matches
- Wed May 27, 2020 2:13 pm
- Forum: ESP32 Arduino
- Topic: Direct access to UART1 TX FIFO
- Replies: 4
- Views: 3821
Re: Direct access to UART1 TX FIFO
Thx, you're right. This is explained in the datasheet on "13.3.5 UART Data Frame" ... UART_TX_IDLE_NUM explains the gap. CLEAR_PERI_REG_MASK( UART_IDLE_CONF_REG(1), UART_TX_BRK_NUM_M ); CLEAR_PERI_REG_MASK( UART_IDLE_CONF_REG(1), UART_TX_IDLE_NUM_M ); solved the issue! I went with the UART1 because ...
- Tue May 26, 2020 9:42 pm
- Forum: ESP32 Arduino
- Topic: Direct access to UART1 TX FIFO
- Replies: 4
- Views: 3821
Re: Direct access to UART1 TX FIFO
Okay, I now ran into another issue ... The code works fine if there is a long pause between pulses. For a 5µs pulse, issues arise when I try to send a pulse within the next ~160µs. When I try to create a pulse every 100µs, they are batched up and sent every ~160µs. Here is the code: void setup() { p...
- Mon May 25, 2020 8:09 pm
- Forum: ESP32 Arduino
- Topic: Direct access to UART1 TX FIFO
- Replies: 4
- Views: 3821
Re: Direct access to UART1 TX FIFO
Okay, guess I somehow missed it the last weekend, but now I found it ;) // Initial Setup DPORT_SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT_UART1_CLK_EN); // Enable Clock for UART1 DPORT_CLEAR_PERI_REG_MASK(DPORT_PERIP_RST_EN_REG, DPORT_UART1_RST); // Enable UART1 pinMode(2, OUTPUT); pinMatrixOut...
- Sun May 24, 2020 7:09 pm
- Forum: ESP32 Arduino
- Topic: Direct access to UART1 TX FIFO
- Replies: 4
- Views: 3821
Direct access to UART1 TX FIFO
Hey, on the ESP8266 (Arduino Framework) it was pretty easy to access the UART registers. All relevant registers were exposed in the esp8266_peri.h I used UART1 to generate a precise timed pulse using: // Initial Setup pinMode(2, SPECIAL); // Set GPIO2 as UART1 TX U1S |= 0x01 << USTXC; // Set UART1 T...