Try pulling portb.5 low (the lv programming pin) Or disable low voltage programming. ----- Original Message ----- From: "Lucas Hartmann" To: Sent: Monday, December 01, 2003 4:35 PM Subject: [PIC]: Strange problem with PIC18F452 an HT-PICC18 Hello. I'm having some trouble with the following code on PIC18F452. I try to run it, but the IO pins aren't responding. I double checked the power supply, the clock source (pic's clock output was correct for the 40MHz osc), the pic itself, the programmer, the reset pin, and everything seems correct. This takes me to a software problem. I simulated the program using MPLAB and it worked. But, when running on the real hardware the pic just does nothing..... The code, Hi-Tech picc18: ******************************** #include #include "ceee.h" #include "pbus.h" void main() { GIE = 0; TRISD = 0x00; while(1) { PORTD = 0x00; asm("nop"); asm("nop"); PORTD = 0xff; asm("nop"); asm("nop"); } } *********************************** Configuration bits: WDT=off, PUT=on, all code protections=off, oscilator switch=off. Am I forgetting something? Lucas Hartmann -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu