Jump to content

Recommended Posts

Hello,

 

I'm totally new to PIC and I can't overcome the following problem:

 

I'm just trying to write a little program for the LCD on my PIC18f4620 and on the line with

lcd_setup();

I'm getting the error

failed to parse template arguments

I have them set as follows

 

#define LCD_ARGS  1, /* Interface type: mode 0 = 8bit, 1 = 4bit(low nibble), 2 = 4bit(upper nibble) */ \
1,  /* Use busy signal: 1 = use busy, 0 = use time delays */\
portd, trisd,  /* Data port and data port tris register */ \
porta, trisa,  /* Control port and control port tris register */ \
3, /* Bit number of control port is connected to RS */ \
2, /* Bit number of control port is connected to RW */ \
1  /* Bit number of control port is connected to Enable */

What do I do wrong?

 

Thanks for the answer,

 

midin

 

Share this post


Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...