>You might be interested to know that the tutorial program has an
>intentional error, to help you understand the capabilities of the ICD.
>Read the manual, they have a whole section on the tutorial, and the ICD
>functions they use to 'trouble-shoot' the error. Then they list the
>'fixed' tutorial program in the manual at the end of the section.
>
>-Adam
>
>K|bek Tony wrote:
> >
> > 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:
KILLspamtony.kubekKILLspam
flintab.com
> > 222222222222222222222222222222222222222222222222222222222222