sfr access or def files

General discussion on mikroBasic PRO for 8051.
Post Reply
Author
Message
oldmetalbasher
Posts: 58
Joined: 20 Mar 2009 08:25

sfr access or def files

#1 Post by oldmetalbasher » 11 Feb 2012 16:13

Hello all
I want to be able to use the 89c51ac3 which has a included a/d converter but there is no def files for this micro.
i can see from the data sheet that the sfr's are from 0xf2 to 0xf7 so if i could access these directly i would not need the a/d library and select a standard 89c51 in the project settings.
is this possible and if so how ?
kind regards
john

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: sfr access or def files

#2 Post by janko.kaljevic » 13 Feb 2012 19:09

Hello,

If those controllers have same core, than you will be able to generate hex file that will work on this controller too.
Also you can declare these sfrs on your own just like in def file and it will work fine.

Best regards.

Post Reply

Return to “mikroBasic PRO for 8051 General”