原理图和PCB都没有问题。LED程序是参照LL16的程序写的。

啥也不说了。上图。呵呵,漂亮吧。 上程序。 #include <hidef.h> /* for
EnableInterrupts macro */ #include "derivative.h" /* include
peripheral declarations */ void SYS_INIT(void) {
PTBDD = 0xFF;
PTBD = 0x00; }
//---------------------------------- void DELAY(unsigned int i) {
while(i)i--; } ////////////////
Main//////////////////////////////...
阅读全文>>