I'm trying to control a LCD screen from my PC. I have a W78E52B MCU with a sample code written in a .c file which I want to compile and upload to the device, preferably from a Linux environment for automation purposes.
The code looks like this:
#include<reg51.h> #include<intrins.h> //======================================================== sbit RES=P3^5; sbit CS1=P3^3; sbit A0=P3^0; sbit E=P3^2; sbit RW=P3^1; sbit DB0=P1^0; sbit DB1=P1^1; sbit DB2=P1^2; sbit DB3=P1^3; sbit DB4=P1^4; sbit DB5=P1^5; sbit DB6=P1^6; sbit DB7=P1^7; sbit key1=P3^4; sbit key2=P3^6; sbit key3=P3^7; ...
What tool do I use to build this program into a hex/binary which can be transferred to the MCU? What is the relation between "8051" that I see here and there, and the MCU that I have?