Hi, I have been working on a project which requires interfacing a
keypad and a LCD to 8051 microcontroller using keil
software(microvision version 5). I have difficulty resolving a C202
error, error statement being ‘PIN_Dx’: undefined
identifier. (x being 0,1,2,3,4,5,6,7)
I have attached the source code below. Please help
#include <reg51.h>
#include <string.h>
#define lcd_4bit P1
#define keypad P2
char
↧