Neyolight
Full Member level 5
Hi ALL
Ok so i found this bit of code online:
//#include <p18f4450.h>
#include <p18cxxx.h>
//#pragma config WDT = OFF, LVP = OFF, FOSC = INTOSC_HS //internal oscillator
#pragma config WDT=OFF,LVP=OFF,FOSC=HSPLL_HS,PLLDIV=5,CPUDIV=OSC2_PLL3 //run with external oscillator
void main (void);
void InterruptHandlerLow (void);
#define LCD_DATA PORTD ------> I DONT GET WHAT THESE 4 lines are doing? And How they are doing what they are doing?
#define LCD_EN PORTCbits.RC2
#define LCD_RW PORTCbits.RC1
#define LCD_RS PORTCbits.RC0
#define A PORTAbits.RA0
#define B PORTAbits.RA1
#define C PORTAbits.RA2
#define D PORTAbits.RA3
thanks
Ok so i found this bit of code online:
//#include <p18f4450.h>
#include <p18cxxx.h>
//#pragma config WDT = OFF, LVP = OFF, FOSC = INTOSC_HS //internal oscillator
#pragma config WDT=OFF,LVP=OFF,FOSC=HSPLL_HS,PLLDIV=5,CPUDIV=OSC2_PLL3 //run with external oscillator
void main (void);
void InterruptHandlerLow (void);
#define LCD_DATA PORTD ------> I DONT GET WHAT THESE 4 lines are doing? And How they are doing what they are doing?
#define LCD_EN PORTCbits.RC2
#define LCD_RW PORTCbits.RC1
#define LCD_RS PORTCbits.RC0
#define A PORTAbits.RA0
#define B PORTAbits.RA1
#define C PORTAbits.RA2
#define D PORTAbits.RA3
thanks