Actually, what is the real percentage of the internal osc preciosity? I know, 1-2% according the manual but seriously :-) I do not mind if it's running in a different freq than 4MHz -- between 3.something and 4.something is OK as long as after I switch it on it keeps the freq. Anyway, I've just put that tool together, and will see if I could do something in the debugger, and considering to keep your advise. I have a spare 20MHz crystal at home and a MAX232 so may be I will put that debug circuit together this weekend. Thanks, Tamas On 01/09/06, Maarten Hofman wrote: > > > > > USART is great, great when you have time for do something else than the > > real > > thing. But the whole thing depends on timing, number of instructions etc > > which is not very nice I know -- sometimes modifing only one instruction > > takes as long as an hour. But that's my problem, I wanted to put it into > > the > > smallest PIC :-) -- 10F2xx, no interrupts, only 1 8bit timer without > > knowing > > that is overflowed etc. > > > I would be a bit scared doing a serial interface on a PIC using its > internal > oscillator. In the past I've had issues of drift (not sure where the drift > came from, but i guess it could be temperature or just the phase of the > moon) where I had to readjust the speed of USART to compensate for a > change > in the oscillator frequency. Of course, you can calibrate the 10F200, and > its oscillator might be more accurate than the one in the 16F628A and the > 16F688, so it might be less of an issue. Also, you are coding it yourself, > so your base accuracy could be higher. > > Greetings, > Maarten Hofman. > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > -- unPIC -- The PIC Disassembler http://unpic.sourceforge.net -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist