Manju Bhargavi wrote: > Hello Friends, > > I am working with ADC module for PIC24F series . I have used the sample > source code as given in the reference manual for ADC available in PIC > website. Please refer to example 17-6 in the refernce manual. > > I am using the Explorer 16 development board. I tried transmitting the > converted value to the hyperterminal. I am facing two problems with this > > 1. The baud rate i have calulated for serial communication is 19200 but when > i set the same speed in the hyperterminal it doesnt show the data properly. > When i change the baud rate to 9600 in hyperterminal then it receives the > converted data properly. > > 2. The ADC coversion does not take place continuosly. It converts for 1200 > times approximately and then the Micro controller resets . > > I am attaching the code along with this mail. It would be really a great > help if any of you can clarify me why is this happening? I need to fix this > problem to proceed further in my work. You should set your CONFIG parameters in your source code so that they are conspicuous. Read the C compiler manual for information on setting CONFIG bytes. It will be under the "#pragma CONFIG" heading. 1. Your clock frequency may be different than what you think it is. 2. I am going to guess that your WDT may be enabled which is causing the reset. - Martin -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist