milan.rajik
Banned
Proteus Sample Designs have Explorer 16 Board which has PIC24FJ. Use it to simulate your Projects.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
XC16 has a delay function, e.g. usei trying with this code but he display mean error in fucnctionCode:void lcd_delay() { mSecDelay(2); } // if LCD does not work make this longer
#include <libpic30.h>
void __delay_ms(unsigned int time);
remove them - they are used in the rest of my projectand i dont have this file .h
thanks in advanceCode:#include "hardware.h" #include "lcd.h"
Horace i m adding this include but i have the ame error with LCD_Delay
#include <xc.h> /* XC8 General Include File */
#define _XTAL_FREQ 400000
int main(void)
{
__delay_ms(100);
}
void __delay_ms() { mSecDelay(2); }
void __delay_ms(unsigned int time);
void __delay_ms() { mSecDelay(2); }
void lcd_delay() { mSecDelay(2); }
#include <xc.h> /* XC8 General Include File */
#define _XTAL_FREQ 400000 // replace with your frequency
void lcd_delay() { __delay_ms(2); } //
#include <xc.h>
yes
but is it ot necssarry to addd the configuation of bits or it is not important?
#define FCY 400000
#include <libpic30.h>
LCD_Out(1,1,"LCD Test...");
lcdString(1,1,"LCD Test...");
void __delay_ms(unsigned int time);
lcdCmd(_LCD_CLEAR);