Hi Tony The tutorial has an error. When it sets up the A2D converter it has all channels set to Digital inputs. I don't remember what I changed. Check the A2D setup. Dave Mumert dave@mumert.com ----- Original Message ----- From: "K|bek Tony" To: Sent: March 24, 2000 9:05 AM Subject: MChip ICD, example not working ? Hi, bought Mchip's ICD a while back but haven't had time ( our any Pic projects for that matter ) to give it a whirl. Anyway, updated the icd firmware to 2.04 ( and changed to an 876 ) and it seems to work ( no warnings ). Decided to try out the example in the user guide 'tut877.asm' found on the mchip's website. ( actually in the user guide it's called 'demo877.asm' ). I've setup the configuration bits as they should, running on the demo board accompanying the ICD, so RC, LVP-OFF, WDT-OFF etc. Compiles and programs ok Stepping/running works UNTIL the following lines: Wait btfss PIR1,ADIF ;Wait for conversion to complete goto Wait Where it remains, i.e. the A/D conversion is never finished ? ( it loops here forever, if I halt the execution, all registers are updated etc. so it seems that the ICD is running ok ). Why is that ? Glanced through the code and didn't see any obvious misstakes so haven't got a clue to why it doesnt work. Anyone else have any ideas ? /Tony Tony K|bek, Flintab AB 222222222222222222222222222222222222222222222222222222222222 E-mail: tony.kubek@flintab.com 222222222222222222222222222222222222222222222222222222222222