This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How can i create a new device in the database?

Hello,
I work at CTI Design House -Brazil (http://www.cti.org.br) and we develop a microcontroller based on the 8051. However, our microcontroller uses registers that are not available in 80C51 listed in the database. I'm having problems when I try to build the target, this case the following message appears "VER_I2CSM_TX_1B_NEW.asm (130): error A1: ILLEGAL CHARACTER IN NUMERIC CONSTANT"
Here is the line indicated by the message.

mov  0E8, # 001h; </ pre>.

Can someone show me the solution to this problem?

Sincerely,
Claudionor Santos


Parents
  • To answer the original question. You can modify some things in a device data base. First go to File -> Device DataBase... and open the dialog. Carefully select a device as near to your device as possible(carefully read the device descriptions). To make a copy of the existing device data base, change the name, device family and device type to your device names, etc. Modify the any data necessary and click the Update AND the the ADD button. At this point you can define the register .h files that you have created to define your register set. This is just your Regxxx.h file that you have created. You can change other device descriptions as necessary.

    Now the real hard part. If you have peripherals not common to the device that you select to change, you must write your own peripheral types using the AGSI and/or the AGDI features in this toolset. These new tools will be written in C++ external to the Keil Tools and you will create a new .dll for your simulator. Templates are availble on this website.

    All of this is described in detail in the PK51 User's Manuals at this website. You must read and study these manuals carefully to implement any serious changes to the Device Database.

    Good Luck. You will need it.

    Bradford

Reply
  • To answer the original question. You can modify some things in a device data base. First go to File -> Device DataBase... and open the dialog. Carefully select a device as near to your device as possible(carefully read the device descriptions). To make a copy of the existing device data base, change the name, device family and device type to your device names, etc. Modify the any data necessary and click the Update AND the the ADD button. At this point you can define the register .h files that you have created to define your register set. This is just your Regxxx.h file that you have created. You can change other device descriptions as necessary.

    Now the real hard part. If you have peripherals not common to the device that you select to change, you must write your own peripheral types using the AGSI and/or the AGDI features in this toolset. These new tools will be written in C++ external to the Keil Tools and you will create a new .dll for your simulator. Templates are availble on this website.

    All of this is described in detail in the PK51 User's Manuals at this website. You must read and study these manuals carefully to implement any serious changes to the Device Database.

    Good Luck. You will need it.

    Bradford

Children