Board logo

标题: PE与自己写代码的优缺点 [打印本页]

作者: fjczd    时间: 2009-1-4 08:48     标题: 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...

作者: fjczd    时间: 2009-1-5 10:57

自己顶一下


作者: 文天祥    时间: 2009-1-21 11:42


作者: lhp5890    时间: 2009-1-22 16:05

PE好,特别对芯片不熟悉的我,更是很爽,虽然有很多无用代码,只要不引用,是不会下载到芯片中去的,也不会占用芯片代码。。嘿嘿[em01]
作者: lhp5890    时间: 2009-1-22 16:06

只是还有很多功能不会用,有没有人指点,麻烦哈
作者: fjczd    时间: 2009-3-6 15:30

只有在摸索中前进了

呵呵






欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0