S STP.Asghari New Member Jan 9, 2023 #1 Hello I wrote a program in IAR. The program has an error when executing the following line. UART1_SendData8("A"); The complete program file is available below. I would be grateful if you could tell me the mistakes of my code. Attachments 2.rar 612.7 KB · Views: 425
Hello I wrote a program in IAR. The program has an error when executing the following line. UART1_SendData8("A"); The complete program file is available below. I would be grateful if you could tell me the mistakes of my code.
Ian Rogers User Extraordinaire Forum Supporter Most Helpful Member Jan 10, 2023 #2 I don't like opening RAR files but my experience with IAR is rusty.. Normally you need to fill in the putch() funtion to divert traffic to the correct peripheral.. What system are you using as when I used IAR, it was for Hitachi H8 systems Upvote 0 Downvote
I don't like opening RAR files but my experience with IAR is rusty.. Normally you need to fill in the putch() funtion to divert traffic to the correct peripheral.. What system are you using as when I used IAR, it was for Hitachi H8 systems
rjenkinsgb Well-Known Member Most Helpful Member Jan 10, 2023 #3 Try putting the A in single quotes? UART1_SendData8('A'); Single quotes denote a char value, double would normally be a pointer to a character array string. Upvote 0 Downvote
Try putting the A in single quotes? UART1_SendData8('A'); Single quotes denote a char value, double would normally be a pointer to a character array string.