首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

PE与自己写代码的优缺点

PE与自己写代码的优缺点

Processor Expert is a high level programming tool with all advantages
(easy to use, save time...) and disadvantages (the programmer does not
have full control over the code, it's difficult to do "unexpected"
things...).

Of course, we can combine the PE code with our own code. But we have to
make sure that our code doesn't impact the PE code, i.e. rewriting the
registers...


Without PE is's very easy, just a few lines of code...

With PE I would use some bean that enables the free running timer (FC161
for example, as you mentioned earlier) and enable the timer overflow
ISR. Then I would create own global variable that should be incremented
in the timer overflow ISR. The rest is the same as I described in my
previous reply...

自己顶一下

PE好,特别对芯片不熟悉的我,更是很爽,虽然有很多无用代码,只要不引用,是不会下载到芯片中去的,也不会占用芯片代码。。嘿嘿[em01]
只是还有很多功能不会用,有没有人指点,麻烦哈

只有在摸索中前进了

呵呵

返回列表