在codewarrior V3.1中使用TERMIO_PutChar,请高手解决。。

- UID
- 83636
- 性别
- 男
|
在codewarrior V3.1中使用TERMIO_PutChar,请高手解决。。
#include <hidef.h> /* for EnableInterrupts macro */ #include <MC68HC908GP32.h> /* include peripheral declarations */ #include "stdio.h" #include "terminal.h" #include "termio.h" void main(void) { unsigned char c; EnableInterrupts; /* enable interrupts */ /* include your code here */ PTA=0x30; TERMIO_Init(); TERMIO_PutChar(0x34); TERMIO_PutChar(0x34); TERMIO_PutChar(0x34); TERMIO_PutChar(0x34); TERMIO_PutChar(0x34); TERMIO_PutChar(0x34); c=TERMIO_GetChar();
for(;;) { __RESET_WATCHDOG(); /* feeds the dog */ } /* loop forever */ /* please make sure that you never leave this function */ } 编译能成功。在DEBUG中,进行调试时,总是出错。并不能在TestTerm中,出现输入信息。
|
|
|
|
|
|

- UID
- 83636
- 性别
- 男
|
|
|
|
|
|

- UID
- 83636
- 性别
- 男
|
|
|
|
|
|

- UID
- 83636
- 性别
- 男
|
如何设置??能不能给个实例??TERMIO_Init();就是对串口进行设置。用RAM中0x200~0x204来模拟串口,在TestTERM中显示。。 |
|
|
|
|
|

- UID
- 83636
- 性别
- 男
|
版主!!我link能通过,在DEBUG中,进行调试时,总是出错。并不能在TestTerm中,出现输入信息。但在你有没有用过DEBUG中的TestTerm??我的QQ:55872655,请版主加我。。 |
|
|
|
|
|

- UID
- 83636
- 性别
- 男
|
c=TERMIO_GetChar();
debug时,出现:
Breakpoint
STARTED
RUNNING
COP Watchdog caused a RESET.
in>
|
|
|
|
|
|

- UID
- 83636
- 性别
- 男
|
|
|
|
|
|

- UID
- 83636
- 性别
- 男
|
|
|
|
|
|

- UID
- 83636
- 性别
- 男
|
|
|
|
|
|