IRCOM support #1015
Replies: 2 comments
-
No there are no plans to implement this. I have never been able to find any devices that used it, and concluded that it's long obsolete and that there is insufficient demand to justify adding it. It's one of the three features that I made the decision not to support in Serial: (well, 3.5)
You might have success setting up the USART normally then doing:
the song and dance here is a faster way of doing the intuitive approach
Note that either method of modifying CTRLB needs to be done with interrupts disabled if you are doing anything in an interrupt which changes the the state of CTRLB (unless the change is ephemeral - like how we are changing it to something else then back to what it was, if the interrupt exits with it in the same state as it started, the rest of the app will be none the wiser - the hardware serial ISR does this in order to support autobaud in spite of the widespread erratum. If we see the ISFIF - that must first be cleared, then the RXEN bit turned off and back on, to restore the receiver after an inconsistent sync field error. Busted like that in almost every modern AVR, per silicon errata (it's supposed to block receiving until the intflag is cleared, but clearing the intflag alone was meant to be sufficient to restart receiving; it's not) |
Beta Was this translation helpful? Give feedback.
-
I am working on a project to interface with a device that uses IrDA modulated (3/16) UART. The IRCOM should be perfect for this. I was able to detect some data with your suggestions, but it doesn't seem to be capturing correctly. Not able to get TX to function either. Could use some guidance on this (willing to compensate for your time) to get things working. |
Beta Was this translation helpful? Give feedback.
-
Are there any plans to add support for IRCOM to UART? As far as I understand, the controllers support modulation-demodulation of infrared signals. How difficult is it to switch the uart into this mode? Not enough USART0.CTRLC = USART_CMODE_IRCOM_gc :(((
Beta Was this translation helpful? Give feedback.
All reactions