Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

problem with IAR code

Status
Not open for further replies.

STP.Asghari

New Member
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
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
 
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.
 
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top