[原创]怎么应用DEBUG在终端机上观察运行情况 Define LOADER_USED 1 DEFINE OSC 20 DEFINE DEBUG_REG PORTA DEFINE DEBUG_BIT 5 DEFINE DEBUG_BAUD 4800 DEFINE DEBUG_MODE 1 Init: adcon1 = 6 trisa = %00001000 porta = %00000010 Main: if porta.3 = 0 then led2 Porta.1 = 1 porta.2 = 0 goto Main LED2: Debug "!===LED2:", 13 porta.2 = 1 porta.1 = 0 goto Main
我就是想应用16F876A的DEBUG端口在PC机上观察程序的运行情况,经过MAX232转换后接入电脑串口显示的是乱码,不转换的话压根底就没反应,求大虾帮忙指点,谢谢诶
|