pfe
Newbie level 3
Hello,
I want to use uart with pic 18f6620 but the virtual terminal doesn't receive the word that i send. help me please to solve this problem.
This is my code written with mikroc.
I want to use uart with pic 18f6620 but the virtual terminal doesn't receive the word that i send. help me please to solve this problem.
This is my code written with mikroc.
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 void main() { txsta1.sync=0; // txsta1.txen=1; // rcsta1.spen=1 ;RCSTA1.CREN = 1; // trisc.f6=0; trisc.f7=1; UART1_Init(9600); // Initialize UART module at 9600 bps Delay_ms(100); // Wait for UART module to stabilize UART1_Write_Text("start"); UART1_Write(10); UART1_Write(13); }
Attachments
Last edited by a moderator: