?????????R7F0Cxxx??????
???
??????????????R7F0Cxxx??е??????????????????????????????????????????????????????ɡ???????????????????????????????????д??????????????????????Щ??????
R7F0Cxxx???????й???????????????????У??????????????????
?????е??豸??????????IDE?в???м???????????????????????????????豸???????IDE??????????????Χ???????????????????????????AP4????????????????檔??????????????????????ο???????R7F0Cxxx?????????
???
?????????R7F0C014B?????????LED?????????????ο???????R7F0Cxxx?????????
1 ???
?????????????????????????е????????LED?????????á??????Χ????????????μ????? 1.1????
?? 1.1 ?????Χ????????
??Χ???? | ??? |
????????е?? 0 ??? 0 | 0.5s??????????????led?? |
P70 | LED?????? |
?????????е?ο???????????????????????????С?
?? 2.1 ??????????? | ???? |
??????????? | R7F0C014B |
??????????? | CS+ for CA CX V4.01.00 ???? CS+ for CC V6.01.00 |
??Χ??·??????????? | AP4 for RL78_EC V1.05.00 |
?????? | EZ-CUBE |
????????豸??? | r7f0c014_dif.zip |
2.1 ???????
??????R7F0C014B????С???壬?????2.1.1?? ?2.1.1 ??С?????2.1.2 LED?????
2.2 ???????????
Renesas??CS+ for CACX(??????CA)???CS+ for CC(??????CC)?????????????,????????????????CA??????????????CA?汾?4.0????CC??汾?6.0??
??????????????????????CA???????NEC?????????NEC??IP???????????????????????????ò??????????????????????????????RL78??е???????????CA???????????Ч?????????????????????????????????????????CA?????????????????CC??
CA?????????????????????????demo???????CA????????????????????CC???IDE???CC????÷?????????CA???????????????????????????CA?????????С20%????CC?????long long???????????CA????long???????
IDE?????????????????????????????÷????????CC V6.01?????CA??????Щ??????????
2.3??Χ??·???????????
AP4??????????????????????????????????????Χ??????????? ??????????(??????) ?? AP4????????????????Χ??????????????? ???????????????????????????????AP4 for RL78_EC ????????й???MCU??? - R7F0Cxx ??У?????? CA78K0R ?? CC-RL ???????????????????????IDE???ɡ?
2.4 ??????
EZ-CUBE?????flash?洢??????????????????????????????????????????д??????Flash?洢??????????С???????????????????????????????????200????????????????????????????EZ-CUBE?????????????????????
2.5 ????????豸???
????R7F0Cxxx?????????й?????о????豸???????????????????м???????б??????????????·??(??R7F0C014???):
????????->???->?????й???MCU???->R7F0C014->?????????->Tools->???????????
3 ????????
3.1 ?????豸???
???????R7F014MCU?豸??????????Readme.txt?????
????????????汾??IDE??ε????豸????????????????????????CS+ for CC V6.01???????????Device_Custom????????????????C:\Program Files (x86)\Renesas Electronics\CS+\CC\Device_Custom\RL78·?????????????????????о??豸??????????????С?????????????????????????????CC???????????Device_Custom\RL78???·????????????????????????
3.2 ????????
??CS+ for CC????????[Create New Project]?????[GO]?????
?????????????????ú???[????]??
3.3 ????????
??????У?????????????????????????????????蹦??? ????????????????????GUI??????????????????
3.3.1 ????AP4????
??AP4????,???New Project??
?????????????????ú???[????]??
??????????????????λ???????????????????????????????????
3.3.2 ??????
????????У??????????????????????????????????????????????????
????????????????????档
???[Pin assignment]?????????[Fix settings]?????
???[On-chip debugging setting]???????????????????
3.3.3 ???????
???Port Function????????档???[Port7]????????????????á?
????????У?????????????????????????2.1.2??P7??Bit 0??????????????????1??
3.3.4 ?????????
???[Timer Array Unit],?????????棬???[General Setting]????????????Channel 0?[Interval timer]
???[Channel 0]??????????????á?
3.3.5 ??????????????
???[Watchdog Timer],?????????????á?
3.3.6 ????????
????????????????????????CS+ for CC???CCRL??CS+ for CA CX???CA78K0R,?????[Generate code]???д??????ɡ????????
3.4 ????
3.4.1 ???????????????
??AP4?????л?CC????,???File->Add->Add New Category????[code generate]????У????????
???code generate->Add->Add File
?????????????У???????????????У???cg_src?е????????????
????????
??????е?hdwinit.asm??stkinit.asm??main.c?????????????
??????????????????
3.4.2 ??
???r_main.c?? ??????????????0???0????????R_TAU0_Channel0_Start().
???r_cg_tau_user.c????????????????
3.4.3 ???????
???????->???[Rebuild Project]????????????????
???Error0????????Warning 4??????????????????Ч????治???????????????????????????????????????????????????????????
4 ????
4.1 ?????????????????
4.1.1 ?????????
?????Debug Tool]->[Using Debug Tool]->[RL78 EZ Emulator].
?????RL78 EZ Emulator??????????
4.1.2 ????????????????????????????
???????????????粻???????????????????????????????????????棬?????????????????E1203124 ?? E0204001????
CC??????????????
????Option byte values for OCD??User option byte value ????????????AP4?????????r_option_cc.txt??????????????
????α?????????????????Ч???????????????????????????
CA?????????????
????????????AP4?????r_option_ca.txt???????
4.1.3 ????EZ
???????EZ???????????
4.1.4 ????module file ??EZ
?????Download???????
??????????????????????????????????????????????????

????admin ?????????2019-08-01