Hi,Mike.
I was confused at first, but Teensy4's HW serial uses registers with different numbers.
See HardwareSerialX.h in the teensy4 folder.(X=1~8)
(C:\Program Files...
Type: Posts; User: MO_YA_NE
Hi,Mike.
I was confused at first, but Teensy4's HW serial uses registers with different numbers.
See HardwareSerialX.h in the teensy4 folder.(X=1~8)
(C:\Program Files...
O.K.
I understand how it works little by little.
I got rid of the extra code.
This works enough.
/*
Receive 8 bytes from serial8 and transfer to RAM with DMA
*/
Do you suggest code like this?
The FIFO buffer capacity was set to 1 byte. This works fine.
/*
Receive 8 bytes from serial 8 and transfer to RAM with DMA
Use a 4-byte FIFO buffer...
This is because the serial receive FIFO buffer is 4 bytes.
DMA trigger when the 4-byte FIFO buffer is full.
I think that is the most efficient ...
I have succeeded in increasing the serial of Teensy 4.1 to 20Mbps.
https://forum.pjrc.com/threads/67150-Teensy4-1-MAX-baud-rate?p=278787#post278787
The other devices are PIC32MZ and RX72T.
Thank you for your help KurtE-san.
In order to communicate with other microcomputers, I need to send 8 bytes and then receive 8 bytes.
These communications need to use very little CPU resources....
DMA in Teensy 4.1 is hopelessly difficult.
I wander around the labyrinth but I was able to escape from it temporarily.
I succeeded in receiving 8 bytes from the serial.
/*
Receive 8...
I'm trying to transfer the data received by UART to RAM by DMA, but it fails.
When I execute the code below and enter 4 characters from the terminal software, an unintended result is output.
...
I extended the harness length to 2.5m and experimented again.
I sent and received 20Mbps by 5000byte.
The result was all 5000 bytes OK.
It was carried out about 10 times, and the same result was...
I tried a program that connects teensy 4.1 and PIC32MZ and echo back.
Teensy 4.1 sends characters at 20Mbps and PIC32MZ just adds 1 and returns.
It looks working fine.
void setup() {
...
I have not tried to send and receive actual data yet.
I just saw the output waveform of TX1.
I'm going to connect Teensy 4.1 with Renesas RX72T and Microchip PIC32MZ with RS485 and try the actual...
Thank you Mr. KurtE ! It was exactly what you said!
I am very grateful for your advice.
I succeeded in raising the baud rate to 20Mbps.
I just rewrote the UART_CLK_SEL bit in the CCM_CSCDR1...
Thanks for your reply Kurt-san.
I hope I can get a higher baud rate with the method you suggested.
I'm still not familiar with the clock division of the IMXRT1060.
I'll try your ideas as I...
Hi!
I have been teensydiuno for the third day.
I want to communicate with other MPUs at high speed using RS485 communication.
I set the teensy 4.1 hardware serial to 6Mbps, but higher values...