Hi, if the LED is always on, perhaps comment out the lines that turn it on and see if it is then always off. At least this way you will be sure the PIC is running and something is executing. If that works then it must be timing. If it doesnt then the PIC may not be wired up right, bypass caps ?, mclr? Oh, and what joy when I got my first LED to blink. Justin On Sun, Aug 10, 2008 at 5:06 AM, Daniele Salatti wrote: > Hi! > > >>> Is it a solid on ? Might there be a fast on/off loop ? How does its > >>> brightness compare with a steady 5V supply ? > >> > >> Compared with a steady 5V supply the brightness is lower... This could > >> be a symptom of a too fast on/off loop? > >> > > > > Quite possibly, it would seem you're creating some PWM by accident? > > Uhm...not sure, but I don't think... > > > MPLAB should run fine in Wine. I don't recall it using any crazy > > libraries, but I'd be interested to hear about regarding whether or > > not it runs... > > Yes, it works! Now I have to find out how the MPLAB Simulator works... > > > The very first operation at 'start' is > > > > movlw 0x07 > > movwf CMCON > > > > According to the d/s, reset state of STATUS is 00011xxx, ie > > RP0=RP1=0 which is bank 0, so that appears OK > > > > Maybe add clrf intcon ;no interrupts > > Tried...still the same... :( > > > Working without Sim would kill me! It is your first step so you don't > > have to spend hours on stupid or hidden mistake. > > I'm using GPSim for simulations... > > > If you can't get it to work with Wine, get a dedicated XP machine to > > develop on. I keep all my files one one machine that does not go on the > > internet! > > PC are cheap! Old ones laying all over the place here! > > PC are cheap, but I don't have room for another PC in my house. If I'd > really need Windows XP (I hope not) I'll use VMWare... ;) > > Can someone suggest me a place (link) where to find a working code to > make a LED blink with a PIC16F628A? Maybe it would be usefull to compare > it with my code... > > Dan > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist