Dumitru, Can you generate an asm output (lst file or whatsoever) so that some of us may could spot something that may not obvious looking at the source code only and/or a compiler problem? Tamas On 12/5/06, Dumitru Stama wrote: > > I tried simulating the same program inside MPLAB's simulator and > capturing RS232 to a file, i initialised the USART and sent some text > to it. As it turned out, it is not happening anymore in MPLAB ! > I have tried the same thing inside Proteus VSM with the virtual terminal > connected to my USART and it was doing the same thing over and > over and over again, restarting without no apparent reason. I will also > try to build a simple circuit to see if it is happening in real life too > and > i will be certain if there is a VSM bug or not (so far it seems there is) > > > On 12/5/06, Xiaofan Chen wrote: > > > > On 12/5/06, Dumitru Stama wrote: > > > Can anyone see if i am doing something wrong with the folowing piece > > > of code ? I have the .lst as well as .hex files if that might help. I > > > have been doing this for the last 10 hours and i feel like i am > > > loosing my mind. > > > > > > > Just throwing one possibility -- which version of C18 are you using? > > Try to update to the latest version and see if the problem goes away. > > > > Another idea, try to simulate in MPSIM and see if it helps to identify > > the problem. > > > > One last suggestion, you can try Microchip Forum for C18 problems > > as there are quite some Microchip C18 experts. You can also try > > Microchip Support. > > > > Regards, > > Xiaofan > > > -- > 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