Hi, i have to develop a configuration control for a microcontroller. For this i developd GUI using VC++ and µc controller programs are written in Keil. I have to send data from GUI to µc programs which are written in keil, where both programs are running on same pc.But i am not able to make communication between VC and µc, and i got an idea that can i write keil programs in VC, then i did that but vc is not supportng data types of keil, is it possible to write c51 in vc compiler? Thanking you
"i will try to explain again" I'm afraid you're just adding to the confusion: "in µc program i have sfr oep1 = 0xB2; sfr p1 = 0x80; and i like to make this intialisation part from GUI" Those are not initialisations! Those are symbol definitions! See: http://www.keil.com/support/man/docs/c51/c51_le_sfrs.htm
sfr oep1 = 0xB2;
oep1 = 23; // Write the value 23 to the SFR x = ope1; // Reads the value from the SFR into variable 'x'
Or are you designing some kind of configurable processor based on programmable logic...?" Yes am developing a configurable processor, in this user has to configure the µprocessor using GUI, so am saving user selected configuration data in .txt file and i µvision programs has to read that .txt file.
"Yes am developing a configurable processor, in this user has to configure the µprocessor using GUI, so am saving user selected configuration data in .txt file and i µvision programs has to read that .txt file." Then, again, I suggest that you have your GUI generate 'C' source files - say config.c and config.h Your uVision Project then uses these files to gain access to the configurable items. This is the method that Triscend used for their configurable processor; it is also the approach used by Code Architect.