Search found 3 matches

by rschoele
Tue Aug 08, 2017 10:32 pm
Forum: LPC Support
Topic: LPC17xx Serial enabling RTS
Replies: 3
Views: 4346

Re: LPC17xx Serial enabling RTS

Got it working.
I added the highlighted line in serial_lld.c and it enables the RTSEN bit.

#if LPC17xx_SERIAL_USE_UART1
if (&SD2 == sdp) {
div = LPC17xx_SERIAL_UART1_PCLK / (config->sc_speed << 4);
LPC_UART1->MCR |= 0x40;
}
#endif
by rschoele
Tue Aug 08, 2017 9:42 pm
Forum: LPC Support
Topic: LPC17xx Serial enabling RTS
Replies: 3
Views: 4346

Re: LPC17xx Serial enabling RTS

I was noticing that in LPC17xx.h MCR is defined in the structure definition for UART0
uart0_structdef.GIF


But MCR is not defined in UART structure definition and has RESERVED0 between LCR and LSR. Can I add MCR here so I can configure it then?
uart_structdef.GIF
by rschoele
Tue Aug 08, 2017 8:41 pm
Forum: LPC Support
Topic: LPC17xx Serial enabling RTS
Replies: 3
Views: 4346

LPC17xx Serial enabling RTS

Hello, I have the serial driver implemented for uart1 on an LPC1778 and the device I'm trying to communicate with has an API with RTS flowcontrol enabled by default. My pin configs are set for RTS and CTS and using a scope I can see my data when I transmit, but I get no response from the other devic...

Go to advanced search