Comprehensive DMX transceiver library with hardware USART?

Status
Not open for further replies.

SebiR

Member
Aloha,
Has anyone created a library to receive and transmit DMX with the hardware UART and its registers?
The DMXSimple lib can only send DMX, but it is software-based and this implementation uses a hardware UART, but is only capable of receiving DMX.

So, I'm searching for a library which can do both using the USART, because it's more reliable and consumes less CPU time.
But I don't think someone has done it.

The greatest DMX library for Arduino is Mathertels DMXSerial, which not only uses the hardware USART, can transmit and receive but also has a nice function to measure the time since the last frame was received. Great for fault detection.
Is it possible to adapt this library?
Are the registers of the teensy USART documented?



Thanks!
 
The greatest DMX library for Arduino is Mathertels DMXSerial, which not only uses the hardware USART, can transmit and receive but also has a nice function to measure the time since the last frame was received. Great for fault detection.
Is it possible to adapt this library?

Not easily. Of course, anything is possible with enough work....

Are the registers of the teensy USART documented?

Yes, of course it's documented.

http://www.pjrc.com/teensy/K20P64M72SF1RM.pdf

The UARTs are documented in chapter 47, starting on page 1201.

If you ignore the extra features like LON & FIFO, they're actually pretty similar to the AVR UART.
 
Status
Not open for further replies.
Back
Top