Add option to send break to RS232 component
Moderator: Benj
Forum rules
Only feature requests will be considered here. General questions should not be posted in this forum.
Only feature requests will be considered here. General questions should not be posted in this forum.
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Add option to send break to RS232 component
The current RS232 component does not have a macro to send a break to the output. It would be useful if this feature could be added.
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Add option to send break to RS232 component
Hi Jac,
Would the break simply output low for a period greater then a byte period? e.g. so the stop bit is not detected.
Would the break simply output low for a period greater then a byte period? e.g. so the stop bit is not detected.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
-
- Valued Contributor
- Posts: 2045
- Joined: Wed Aug 27, 2008 10:31 pm
- Location: Netherlands
- Has thanked: 553 times
- Been thanked: 1081 times
- Contact:
Re: Add option to send break to RS232 component
Yes, to quote from the dsPIC33EP256MU806 datasheet:Benj wrote:Would the break simply output low for a period greater then a byte period? e.g. so the stop bit is not detected.
Of course different controllers use different registers/bits so it would be nice if it could be included in the component.UTXBRK: UARTx Transmit Break bit
1 = Sends Sync Break on next transmission – Start bit, followed by twelve ‘0’ bits, followed by Stop bit;
cleared by hardware upon completion
Some Microchip controllers like the 18F2X/45K50 series use break for auto baud or even "Auto-Wake-up on Break" (page 275 of the data sheet). The mechanism relies on the driving controller being able to send the break...
“Integrity is doing the right thing, even when no one is watching.”
― C.S. Lewis
― C.S. Lewis
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Add option to send break to RS232 component
Hi Jac,
Ok so it's something that some chips support in hardware. It certainly looks possible so I'll get it on the list and try and have a go next time I get a min. Should be easy to do with the software mode and would also come in handy for LIN based comms. We currently have an intern working for us on the compiler conversion and the PIC32 chip pack so maybe I could divert him for half a day or so to investigate.
AutoBaud would be another good feature but I would have to think about this one.
Ok so it's something that some chips support in hardware. It certainly looks possible so I'll get it on the list and try and have a go next time I get a min. Should be easy to do with the software mode and would also come in handy for LIN based comms. We currently have an intern working for us on the compiler conversion and the PIC32 chip pack so maybe I could divert him for half a day or so to investigate.
AutoBaud would be another good feature but I would have to think about this one.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel