+ Reply to Thread
Page 3 of 4
First 1 2 3 4 Last
Results 31 to 45 of 47

Thread: Problem with Inchworm ICD

  1. #31
    Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent Mike, K8LH Excellent
    Join Date
    Jan 2005
    Location
    Michigan, USA
    Posts
    2,512

    Default

    Quote Originally Posted by blueroomelectronics
    I was thinking on doing a PCB for the might be popular LC meter. There is a better 16F628A version. I'd like a frequency & duty counter too if I did it. Might base it on a 16F88 instead. Would also like to see if it's possible to get the internal comparator working in the design.
    I got the internal comparator working as an oscillator on a '628A Bill. It ties up the TMR0 T0CKI pin (RA4) though so I had to setup TMR1 as the frequency counter and I fed the comparator output to the T1CKI pin (RB6). Here's how I setup the comparator;

    Code:
    MAIN    movlw   b'00000110'     ;                                 |B0
                                    ; b7 = C2OUT                      |B0
                                    ; b5 = C2INV                      |B0
            movwf   CMCON           ; turn comparator on              |B0
            bsf     STATUS,RP0      ; bank 1                          |B1
            movlw   b'00001111'     ; RA4=output, RA0-RA3=inputs      |B1
            movwf   TRISA           ;                                 |B1
            movlw   b'01000000'     ; RB6 = input (T1CKI)             |B1
            movwf   TRISB           ;                                 |B1
            bcf     STATUS,RP0      ; bank 0                          |B0
    
    Just need to fabricate a new prototype and finish the software. I was using the serial port and Hyperterminal instead of an LCD.
    Attached Images


  2. #32
    Help us help you blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent blueroomelectronics Excellent
    Join Date
    Jan 2007
    Location
    Toronto, Canada
    Posts
    10,672
    Blog Entries
    5

    Default

    That's excellent Mike, Creatron is looking for kits as the DIY kits are old news and the Velleman kits are pricy.

    I'll try to build a 16F88 version, I'd really like to do something along the Mondo superprobe too.
    Bill
    Smart Kits build Smart People

    http://www.blueroomelectronics.com/

  3. #33
    jeg223 Newbie
    Join Date
    May 2007
    Posts
    27

    Default

    Quote Originally Posted by dipmicro

    Actually, there is no .22uF capacitor in the kit at all, I do not even carry such value.
    The .22uF cap is the same color as the 47uF. I'm sure it just slipped through from your supplier.
    I'm getting another crystal tomorrow and I'll let you know if that solves the problem.

  4. #34
    jeg223 Newbie
    Join Date
    May 2007
    Posts
    27

    Default

    I replaced the crystal and the board works great. I wrote a quick program and everything seems to be working.

    Thanks for all your help everyone.

    Jim

  5. #35
    dipmicro Okay
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    68

    Default

    This crystal problem is like a curse, I will never order from that supplier anymore. I have now a batch from different supplier and tested some 50 units and did not locate a bad piece yet.

    Jim, when did you order your Inchworm? Is there anything I can do to make up for the frustration with the crystal?

  6. #36
    jeg223 Newbie
    Join Date
    May 2007
    Posts
    27

    Default

    Quote Originally Posted by dipmicro
    Jim, when did you order your Inchworm? Is there anything I can do to make up for the frustration with the crystal?
    I ordered on April 27.
    I think shipping to the states costs more than the crystal, so maybe if you could end world hunger...
    I'm just happy that everything works now. It's a great little kit.
    Thank you
    Jim

  7. #37
    William At MyBlueRoom Newbie
    Join Date
    Feb 2006
    Location
    Toronto, Canada
    Posts
    721

    Default

    Yes those crystals are a bane, probably not bad but the wrong type.
    Bill
    Home of the
    Firefly PIC Tutor
    Inchworm ICD2

    http://www.blueroomelectronics.com

  8. #38
    dipmicro Okay
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    68

    Default

    The crystal Jim had was physically tested in another Inchworm built from the exactly same parts.

    There is a "right" type for crystals as Microchip allows any crystals and provides ranges of side capacitors. AT cut crystals may require serial resistor (Microchip spec 30292c table 12-2).

    I am just thinking loud if those "bad" crystals would work in Inchworm if the capacitors were removed or if serial resistor was installed.

    This problem will apear again in other microcontroller projects using crystals because some crystal vendors would not provide specifications and even if they did, people may not know.

    In Inchworm case this was my job to make sure that the crystal and C10, C13 were properly selected. I just wonder if anybody has an idea how to verify that crystal is working under optimal conditions (as opposed to marginal ones).

  9. #39
    dipmicro Okay
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    68

    Default

    The previous message came out as a babble because I was typing it while interrupted several times. I actually would like only to get some feedback on this:

    Quote Originally Posted by dipmicro
    I just wonder if anybody has an idea how to verify that crystal is working under optimal conditions (as opposed to marginal ones).

  10. #40
    Leftyretro Excellent Leftyretro Excellent Leftyretro Excellent Leftyretro Excellent
    Join Date
    Mar 2007
    Location
    Hercules, California
    Posts
    1,420

    Default

    Quote Originally Posted by dipmicro
    The previous message came out as a babble because I was typing it while interrupted several times. I actually would like only to get some feedback on this:

    I would think that only direct measurement with a very high impedence, low capacitance probe on the OSC input pin, measuring amplitude and frequency would be the best test. I guess that once one validated a given manufacture's crystal that you shouldn't have to test each one unless you change vendor or crystal part number.

    It's hard to guess if the problem is just poor quality control with that one batch of crystals or if their unpublished specifications were not compatable with the PIC oscillator circuit. Only further testing could determine more.

    Lefty

  11. #41
    dipmicro Okay
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    68

    Default

    After researching this problem little bit, I am starting thinking that the 33pF may load certain types of crystals too much.

    Still need a workaround for people who may have or will run into this problem with Inchworm units already shipped so I can post it on the website.

    I do not currently have "bad" crystals, but can someone who had this problem try to run Inchworm with original non-working crystal and try to remove the 33pF capacitors entirely or replace them with 15pF?

    The first person reporting successfully tested workaround (of previously dysfunctional unit due to crystal) that can be aplied even by the beginner will get free Inchworm from me for his efforts.

  12. #42
    Leftyretro Excellent Leftyretro Excellent Leftyretro Excellent Leftyretro Excellent
    Join Date
    Mar 2007
    Location
    Hercules, California
    Posts
    1,420

    Talking

    Quote Originally Posted by dipmicro
    After researching this problem little bit, I am starting thinking that the 33pF may load certain types of crystals too much.

    Still need a workaround for people who may have or will run into this problem with Inchworm units already shipped so I can post it on the website.

    I do not currently have "bad" crystals, but can someone who had this problem try to run Inchworm with original non-working crystal and try to remove the 33pF capacitors entirely or replace them with 15pF?

    The first person reporting successfully tested workaround (of previously dysfunctional unit due to crystal) that can be aplied even by the beginner will get free Inchworm from me for his efforts.
    Will the free Inchworm come with a good crystal? Just kidding, nice to see you try and get to the root of this problem and sharing your findings. I'm sure we can all learn from the experiance and sharing experiances is what it's all about........

    Lefty

  13. #43
    toodles Newbie
    Join Date
    Apr 2007
    Posts
    80

    Default

    Quote Originally Posted by dipmicro
    After researching this problem little bit, I am starting thinking that the 33pF may load certain types of crystals too much.

    Still need a workaround for people who may have or will run into this problem with Inchworm units already shipped so I can post it on the website.

    I do not currently have "bad" crystals, but can someone who had this problem try to run Inchworm with original non-working crystal and try to remove the 33pF capacitors entirely or replace them with 15pF?

    The first person reporting successfully tested workaround (of previously dysfunctional unit due to crystal) that can be aplied even by the beginner will get free Inchworm from me for his efforts.
    I have 15pF caps here and a working Inchworm. If someone will send me a 'bad' crystal, I'll give you an answer for free.

  14. #44
    dipmicro Okay
    Join Date
    Dec 2006
    Location
    Canada
    Posts
    68

    Default

    Quote Originally Posted by toodles
    I have 15pF caps here and a working Inchworm. If someone will send me a 'bad' crystal, I'll give you an answer for free.
    I also have capacitors and working Inchworm, but not a non-oscillating crystal.

    Quote Originally Posted by Leftyretro
    Will the free Inchworm come with a good crystal? Just kidding, ...
    After successful workaround to make bad crystals oscillate they will no longer be bad. The answer is ... the free Inchworm will of course come with good crystal

  15. #45
    jeg223 Newbie
    Join Date
    May 2007
    Posts
    27

    Default ***Update***

    I changed the 33pf to 15pf and the original crystal works perfectly. That work around did the trick.

    Thanks again to everyone for all your help.

    Jim

+ Reply to Thread
Page 3 of 4
First 1 2 3 4 Last

Similar Threads

  1. Inchworm components
    By gregmcc in forum Micro Controllers
    Replies: 43
    Latest: 18th March 2007, 02:37 PM
  2. Need help badly on Inchworm and MPLAB
    By thushy in forum Micro Controllers
    Replies: 14
    Latest: 11th March 2007, 07:05 PM
  3. Some Question About Inchworm
    By Ayne in forum Micro Controllers
    Replies: 29
    Latest: 7th March 2007, 04:08 AM
  4. Inchworm project started
    By williB in forum Micro Controllers
    Replies: 69
    Latest: 5th March 2007, 07:56 PM

Tags for this Thread