我使用的是PIC18F25k20单片机,买个编程器 ICD2.5 USB的,开发环境是MPLABv8.35,编译器是PICC18v8.05 ,写几行代码
#include <pic.h>
main ()
{
TRISB = 0x00;
while (1)
{ PORTB = 0xf;
}
}
编译出来:Executing: "C:\HT-PIC\BIN\PICC.EXE" -C -E"LED.cce" "LED.c" -O"LED.obj" -Zg9 -O -ASMLIST -Q -MPLAB -18F25K20
Halting build on first failure as requested.
BUILD FAILED: Sat Oct 16 13:41:19 2010
编程器连接不上:
ICDWarn0068: This device has a VPP(max) below the minimum ICD2 VPP level of 12V. Please ensure that external protection for MCLR is in place. (Press the Help button for an example circuit or use AC164112 available from microchipDIRECT.com.)
Connecting to MPLAB ICD 2
...Connected
Setting Vdd source to target
ICDWarn0020: Invalid target device id (expected=0x103, read=0x0)
...Reading ICD Product ID
Running ICD Self Test
... Failed Self Test. See ICD2 Settings (Programmer->Settings) (status tab) for details.
MPLAB ICD 2 ready for next operation
各位,我这是什么情况,改了两天了,搞不定,请指点啊。还有就是programming―setting‐power-不能设置由ICD供电 |