Tks Anobium, that solved the problem. I don't know how I missed it as I was looking for something that would clear the buffers.
Hi Anobium. Tks, I see I have missed that command. Here is my uart setup. I have tried the USART_BLOCKING but without result. 'USART settings #define USART_BAUD_RATE 9600 'Initializes USART port with 9600 baud '#define USART_TX_BLOCKING ' wait for tx register to be empty #define USART_STOPBITS 2 #define USART_DATABIT 8 '#define USART_BLOCKING 'Set USART transmit pin to output Dir PORTC.6 Out // Radio commands
Hi I have a problem using RS232 in that some of the received character is displayed double. It look like the receive buffer is not cleared after receiving a byte. If I disable the receiver and use dummy bytes to display, all is fine, enable the RX port, the problem is there. The TX side is workinf as the radio respond with the right data. 'Get Radio Frequency 'Send Command through USART to Radio do for i = 1 to 5 HSerSend Get_Freq(i) 'Short delay for receiver to process message Wait 10 ms 'probably...
Tks, I found the syntext. All solved now, thank you for your support, much appreciated as I am not that good with programming.
Problem solved. I had ILI9341_YELLOW also in the same line. Question: how do I set the text color? Thank you so much for your support.
Tks Anobium. I found I had voltage drop resistors on the SDI line which dropped the voltage on the Pin beyond the minimum value for the pic to read. The display is now showing "65504" in stead of "Test of the ILI9341 Device" text. At last some progress.
Hi Anobium, Tks for the reply. I did drop the voltage to 3.3V on the display. But it still does not work. There is no output from the 16F887 chip on the SDO pin. It still go hi for a second or two, then drop low again. No pulses out of the SDO pin. The clock is there, but no data out of the SDO pin.
Hi, I am using one of the demos but changed the pic to 16f887. The SDO line goes hi and stay there. After a while it go down to lo. The SCK line shows a clock present but not the SDO line. Here is the code. Could someone please help me by showing me where I made a mistake? The ILI9341 does not respond to the program and show a black screen.