shahbaz.ele
Advanced Member level 1
- Joined
- Aug 12, 2008
- Messages
- 454
- Helped
- 72
- Reputation
- 146
- Reaction score
- 73
- Trophy points
- 1,308
- Location
- Islamabad, Pakistan
- Activity points
- 3,669
// Control signal pin direction
#define RW_TRIS TRISCbits.TRISC13
#define RS_TRIS TRISCbits.TRISC14
#define E_TRIS TRISCbits.TRISC15
// Data signals and pin direction
#define DATA LATF,LATA // Port for LCD data
#define DATAPORT PORTF,PORTA
#define TRISDATA TRISF,TRISA // I/O setup for data Port
Here is my code i want to define DATA as combined ports F and A (0 to 6 portF and 1 bit of porta) of dsPIC30F3014
#define RW_TRIS TRISCbits.TRISC13
#define RS_TRIS TRISCbits.TRISC14
#define E_TRIS TRISCbits.TRISC15
// Data signals and pin direction
#define DATA LATF,LATA // Port for LCD data
#define DATAPORT PORTF,PORTA
#define TRISDATA TRISF,TRISA // I/O setup for data Port
Here is my code i want to define DATA as combined ports F and A (0 to 6 portF and 1 bit of porta) of dsPIC30F3014