Searching \ for 'MChip ICD, example not working ?' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devprogs.htm?key=icd
Search entire site for: 'MChip ICD, example not working ?'.

Truncated match.
PICList Thread
'MChip ICD, example not working ?'
2000\03\24@142112 by KŸbek Tony

flavicon
face
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            
ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ
E-mail: spam_OUTtony.kubekTakeThisOuTspamflintab.com
ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ

2000\03\24@152856 by Dave Mumert

flavicon
face
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
.....daveKILLspamspam@spam@mumert.com
{Original Message removed}

2000\03\24@173728 by andy howard

flavicon
face
They've just released a bugfix of that, according to a mail I got this
evening.




----- Original Message -----
From: "K|bek Tony" <tony.kubekspamKILLspamFLINTAB.COM>
To: <.....PICLISTKILLspamspam.....MITVMA.MIT.EDU>
Sent: Friday, March 24, 2000 04:05
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: EraseMEtony.kubekspam_OUTspamTakeThisOuTflintab.com
222222222222222222222222222222222222222222222222222222222222

2000\03\26@153257 by KŸbek Tony

flavicon
face
Hi,

Andy Howard wrote:

>They've just released a bugfix of that, according to a mail I got this
>evening.

And I'm just wondering what is the 'bugfix', in the ICD ? the example ?
or something else ?

There nothing to be found on the Mchip's website.

/Tony



Tony KŸbek, Flintab AB            
ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ
E-mail: tony.kubekspamspam_OUTflintab.com
ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ

2000\03\26@164830 by andy howard
flavicon
face
The updated code is at:

www.microchip.com/10/Tools/PICmicro/ICDS/MPLABICD/51197CA/index.h
tm




{Original Message removed}

2000\03\26@223337 by M. Adam Davis

flavicon
face
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:
{Quote hidden}

2000\03\26@230902 by John A. Craft

flavicon
face
<x-flowed>Where can I get the latest firmware for the ICD?  Is it included with the
MPLAB 5.0 distribution?

John C.

At 10:32 PM 3/26/00 -0500, you wrote:
{Quote hidden}

John A. Craft                                   (601)689-8100 Voice
Lead Analyst                                    (601)689-8130 Fax
Diamond Data Systems of MS, Inc.                http://www.diamonddata.com
MSAAP Bldg 9110                                 RemoveMEjcraftTakeThisOuTspamdiamonddata.com
Stennis Space Center, MS  39529

</x-flowed>

2000\03\27@112111 by KŸbek Tony

flavicon
face
Hi,

Adam wrote:
>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.

Hmm, that doesn't seem to be correct, my package consisted in:

MPLAB-ICD module+comms cable
ICD-Header ( with an 16F877 )+cable
MPLAB-ICD demo board
MPLAB-User guide
MPASM-User guide
MPLAB-ICD-User guide
Mchip CD

If I'm guessing correct You must mean the MPLAB-ICD User guide ?.
Anyway in this one they have devoted an entire :-) chapter to the
demo board ( chapter 5 ). Which consists of the following:

Introduction = bla bla
Highlights = even more bla bla
A/D example overview = Program does A/D conversion, how to setup demo
board. (+image of demo board)
Example main routine = program flow, configures ports, wait timer
overflow, do A/D conv,output result on portC. ( then a flow chart of the
same thing )
A/D example source code = source code :-)

So what do you mean ? is there some other tutorial which I haven't
recevied ?
There is no mentioning of any errors in the code or intentional 'bugs' ?
Neither are there any guides how to use the ICD in this example.

What am I missing here ?

/Tony



Tony KŸbek, Flintab AB            
ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ
E-mail: spamBeGonetony.kubekspamBeGonespamflintab.com
ÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓÓ

More... (looser matching)
- Last day of these posts
- In 2000 , 2001 only
- Today
- New search...