UART Communication
Posted: Thu Jan 05, 2023 6:45 pm
Hello!
I am working with PIC18F27K42 and Nextion display, the settings are as following,
Oscillator: 8Mhz with PLL
Channel: 2 (Tx:B6 and Rx:B7)
Baud: 57600
The problem I am facing is inconsistent working/starting/communication/initialization of the PIC and Nextion, I have noticed at few power ON of the circuit the communication between PIC and display fails and then nothing is displayed on the screen, if I press the reset button (MCLR) then the communication between both is correctly initialized and works absolutely fine, but at few power ON it do not start correctly I notice as if the initialization has gone wrong.
Can someone point out what could be the problem, or I am missing something (some delay before or after) One of the thoughts I am getting in my mind is after powering the circuit wait for a moment and somehow reset (MCLR) the PIC, as I see every time I press the reset button the display and PIC initialize perfect and works fine after that, but at few power ON I am facing this problem of both not getting initialization correctly.
Kindly correct me.
Thank you.
Abhi
I am working with PIC18F27K42 and Nextion display, the settings are as following,
Oscillator: 8Mhz with PLL
Channel: 2 (Tx:B6 and Rx:B7)
Baud: 57600
The problem I am facing is inconsistent working/starting/communication/initialization of the PIC and Nextion, I have noticed at few power ON of the circuit the communication between PIC and display fails and then nothing is displayed on the screen, if I press the reset button (MCLR) then the communication between both is correctly initialized and works absolutely fine, but at few power ON it do not start correctly I notice as if the initialization has gone wrong.
Can someone point out what could be the problem, or I am missing something (some delay before or after) One of the thoughts I am getting in my mind is after powering the circuit wait for a moment and somehow reset (MCLR) the PIC, as I see every time I press the reset button the display and PIC initialize perfect and works fine after that, but at few power ON I am facing this problem of both not getting initialization correctly.
Kindly correct me.
Thank you.
Abhi