Looks like the problem is in the Warp 13 software. Works good when warp 13 is used with-in MPLAB but the warp 13 driver software is not setting the code protect bits correctly. Well at least I can still develop my code with the driver software and create the finals with-in mplab. (that stinks) ----- Original Message ----- From: "Sean Alcorn (SYD)" To: Sent: Saturday, August 17, 2002 10:26 AM Subject: [PIC]: Real newbie question on ADC > Hi guys, > > As I've stated in what became the much talked about PBK thread, I'm a > relative newbie, however have designed a couple of commercial products and > the list was a big help when I got stuck here and there. > > I've been mainly working on the PIC12C508 with a bit of development on > PIC16F84As, then porting over to the 508s. > > I am having reasonable success, designing products quite quickly, and > working in Assembler - rather that the BASIC which I originally bought. > > However I am totally stuck when it comes to applying the ADC. The PIC12C671 > is a very practical device and I am looking forward to the "Future Product" > - PIC12F675 for the 10-bit ADC - however there are conflicting reports on > the Microchip website as to whether this device will have 8-bit or 10-bit > ADC. > > If you look in all the PIC books on applying the ADC, they basically say; > > Configure ADC > Delay > Turn on ADC > Keep checking > Get result from ADRES > > This is fine if working in perfect conditions on a bench, but in the real > world, my circuits will be subjected to noisy industrial environments. I > have read elsewhere that multiple readings are required - sort of like > debouncing a pushbutton, I guess - but I have also read about 50Hz and 60Hz > hum. > > I did post a question regarding the filtering of hum, and I was simply > pointed to some example code for filters - which was all a little daunting. > > What is the trick? Is it just a matter of taking multiple readings at a > given frequency? I have read something about 40KHz - as it is a multiple of > both 50Hz and 60Hz > > Would love to hear from anybody who can help a newbie get to this next > milestone. > > Regards, > > Sean > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > > > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.