Hello,
I am using EK-TM4C123GXL. I am trying to have a communication between UART1 and an rf module. My rf module signals that UART communication is possible by sending low; and high when the buffer is full (128 byte) with the RTS output . Therefore, I assigned one of my GPIO (here PF4) as an input which is connected to the RTS pin of the rf module. I am using
if(GPIOPinRead(GPIO_PORTF_BASE,GPIO_PIN_4)==0) command before sending data to the rf module. I sent 128 character to make RTS high and write the following command:
if(GPIOPinRead(GPIO_PORTF_BASE,GPIO_PIN_4)==0x10)
{ rtswillhigh=1;}
(int rtswillhigh=0 initially)
But rtswillhigh remains zero, I am wondering whether code is true or not. In addition, I disable the cts pin of the rf module and connect it to the one of my GPIO as well. (since it says the module will check this pin before a new byte is transmitted via UART) I think it is not necessary to use. Am I wrong? I will appreciate any suggestions.
Thanks in advance.