Jump to content

Recommended Posts

Hello,

 

I am using that library with success from the beginning I boot Boostc compiler. I would like to use USB connection of the PIC family and following Dave's suggestion I will use the Library from Ian Harris.

 

To begin I first would like to have the functionality I had on my 18F4520 working. One is the LCD display. I wrote a small part of code to test it... but the LCD is not initialized (using the USB demo card from Microchip). Turning around issue did not improve the situation.

 

To try to see where is the problem coming I mount a new demo system where I can rapidly replace the 18F4550 by 18F4520 and vice versa.

 

My code and hardware are working properly with the 18F4520, but not with 18F4550. I have a led on RB0, and this one is flashing with the two processor and by the way I know that the PIC program is OK. But not the LCD part for the 4550.

 

Here is the code of lcd_Driver initialization into the main file :

 

// Add the following after #include <system.h> in you source file:
//
#define LCD_ARGS 	2,	/* Interface type: mode 0 = 8bit, 1 = 4bit(low nibble), 2 = 4bit(upper nibble) */ \
0, 				/* Use busy signal: 1 = use busy, 0 = use time delays */\
PORTB, TRISB, 	/* Data port and data port tris register */ \
PORTC, TRISC, 	/* Control port and control port tris register */ \
4,				/* Bit number of control port is connected to RS */ \
6,				/* Bit number of control port is connected to RW */ \
7 				/* Bit number of control port is connected to Enable */

#include "lcd_driver.h"

 

I suspect that not the issue, not such. What is your opinion ?

 

A second question : can the config bits have influence on this part of application ?

 

Thanks you for your help,

Jena-Marie

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...