----- Original Message ----- From: "James Fitzsimons" To: Sent: Tuesday, August 21, 2001 2:34 PM Subject: [PIC]:can't get code to work > Hi all, > well after getting my programmer to work I loaded the example hex file that > flashes an LED on port RB1 and wow! the LED flashes ! ;-) > > I have written a bunch of code in Hi TECH C integrated with Microchips > MPLAB. To start of with I wrote my own version of the flashing LED program > (attached) which flashes an LED on pin RB0. I compiled the code and loaded > the hex file. However this time no flashing LED :-( > > Can anyone help me with this? Is there a bug in the code? I have gone over > it and can't see any obvious mistakes. > > Is there anything special I have to do in MPLAB or HI TECH cmd line switches > to get code that will run? > > Thanks for you help > regards > James Fitzsimons > Hi James, I think the problem is in the delay procedure .... just try to use the delay procedure from Hi TECH .... u can find it in the example dirctory ....it will give u accurate value for Ms,Us .... all that u need is to include it in ur program and add it to ur project files .... just try it plz. Regards Salah Mohammed -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics