Search results

  1. MO_YA_NE

    Teensy4.1 Serial RX to DMA problem

    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 (x86)\Arduino\hardware\teensy\avr\cores\teensy4) You should know which number of registers to use in that file.
  2. MO_YA_NE

    Teensy4.1 Serial RX to DMA problem

    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 */ #include "DMAChannel.h" unsigned char DMA_RxBuf[50]; //receive buffer 50 DMAChannel dmachannel1; void...
  3. MO_YA_NE

    Teensy4.1 Serial RX to DMA problem

    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 for reception */ #include "DMAChannel.h" //unsigned char DMA_TxBuf[50]; //transfer buffer 50...
  4. MO_YA_NE

    Teensy4.1 Serial RX to DMA problem

    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 ...
  5. MO_YA_NE

    Teensy4.1 Serial RX to DMA problem

    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.
  6. MO_YA_NE

    Teensy4.1 Serial RX to DMA problem

    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. In addition, communication is very high speed (20 Mbps). I am dissatisfied with generating an...
  7. MO_YA_NE

    Teensy4.1 Serial RX to DMA problem

    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 bytes from serial 8 and transfer to RAM with DMA Use a 4-byte FIFO buffer for reception */ #include...
  8. MO_YA_NE

    Teensy4.1 Serial RX to DMA problem

    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. #include "DMAChannel.h" unsigned char DMA_TxBuf[50]; //transfer buffer 50 unsigned char...
  9. MO_YA_NE

    Teensy4.1 MAX baud rate

    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 obtained. I am trying to apply this to a 250W-motor driver. I am wondering if it is possible to...
  10. MO_YA_NE

    Teensy4.1 MAX baud rate

    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() { pinMode(3, OUTPUT); while (!Serial) ; // Serial1.begin(3000000); //3M OK //...
  11. MO_YA_NE

    Teensy4.1 MAX baud rate

    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 data communication.
  12. MO_YA_NE

    Teensy4.1 MAX baud rate

    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 register to 0. Look at the code and the execution result. void setup() { // Serial1.begin(3000000)...
  13. MO_YA_NE

    Teensy4.1 MAX baud rate

    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 peruse the hardware manual.
  14. MO_YA_NE

    Teensy4.1 MAX baud rate

    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 ​​didn't work. Is there any way to get higher speeds? void setup() { // Serial1.begin(3000000)...
Back
Top