3/19/2017 MicrcontrollerProgrammingUsingCWithKeilIDE|
MicrcontrollerProgrammingUsingC March25,2011
WithKeilIDE
KEILuVisionisthenameofasoftwarededicatedtothedevelopmentandtestingofa
familyofmicrocontrollersbasedon8051technology,whichwearegoingtousealongthis
[Link]
website:[Link]
tutorialusesKEILC51uVision4withtheC51compiler.
Tocreateproject,writeandtestthesourcecodeandalsocreatehexfile,followthe
followingsteps:
OpenKeilandStartanewproject:
Youwillpromptedtochoseanameforyournewproject,choseanameand
[Link],whereyouwillbeaskedtoselectadevicefor
TargetTarget1:
Fromthelist,selectATMELandchoseyourmicrocntroller.TheAT89s52willbecalled
yourTargetdevice,[Link]
[Link] 1/2
3/19/2017 MicrcontrollerProgrammingUsingCWithKeilIDE|
whethertocopystandard8051startupcodeclickNo.
ClickFile,[Link]
yourcodeshouldbewritten.
Now,YouhavetoclickFile,Saveasandchoseafilenameforcodeendingwiththe
[Link]
showninthefollowingscreen:
Afterrightclickingonsourcegroup1,clickonAddfilestogroup,thenyouwillbe
promptedtobrowsethefiletoaddtosourcegroup1,chosethefilethatyoujustsaved
[Link]
theleft.
InsomeversionsofthissoftwareyouhavetoturnONmanuallytheoptiontogenerate
[Link],byrightclickingontarget1,Optionsfortarget
target1,thenundertheoutputtab,[Link]
isveryimportantastheHEXfileisthecompiledoutputofyourprojectthatisgoingtobe
transferredtothemicrocontroller.
Youcanthenstarttowritethesourcecodeinthewindowthenbeforetestingyoursource
code,youhavetocompileyoursourcecode,[Link]
IDE,thisstepiscalledrebuildalltargets.
[Link] 2/2