Announcement

Collapse
No announcement yet.

DSPIC30F4012 v230 Source Code

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ApBerg
    replied
    Cool circuits, tips, techniques, PCB methods, test equipment, etc.


    best regards.

    Ap

    Leave a comment:


  • moodz
    replied
    Originally posted by mickstv View Post
    I've been looking at that ebay site and the pictures of the PICkit 3 and the PICkit 2 are identical I wonder whether it's a PICkit 2 in disguise. Have you tried MPlab and running it as PICkit 2 ?




    Mick

    Also try connecting via a powered USB hub ... not direct to PC ... some PK3s need more juice.

    moodz

    Leave a comment:


  • mickstv
    replied
    Originally posted by 6666 View Post
    Thank you moodz
    I have tried the first two ideas no joy
    so downloading ver 8.3
    and will give that a try
    much appreciated
    6666

    I've been looking at that ebay site and the pictures of the PICkit 3 and the PICkit 2 are identical I wonder whether it's a PICkit 2 in disguise. Have you tried MPlab and running it as PICkit 2 ?




    Mick

    Leave a comment:


  • 6666
    replied
    Thank you moodz
    I have tried the first two ideas no joy
    so downloading ver 8.3
    and will give that a try
    much appreciated
    6666

    Leave a comment:


  • moodz
    replied
    Originally posted by moodz
    Try connecting the PICkit 3 to a board with a chip to be programmed on it.
    OR
    You could try the following procedure ...
    Run MPLAB then hold the button on the unit, and while holding, plug into the USB. This will reload the firmware however I am not sure it will work for clones.

    regards,

    moodz.
    OR try this .... from a Microchip thread...

    1 - Open MPLAB 8.3 or 8.36 - I'm not really sure why, but it is this one that has PK3FW_012505.jam firmware and select PK3 programmer (Programmer -> Select Programmer);
    2 - Connect PICkit3, you'll get the error 38 or so, stating that PIC is not connected;
    3 - Press the button on PK3, until the blue Active light starts blinking;
    4 - Go to Programmer -> Settings -> Configuration and press the Manual Download button;
    5 - Choose PK3FW_012505.jam firmware and press Open;

    moodz.

    Leave a comment:


  • moodz
    replied
    Originally posted by 6666 View Post
    Sorry to hijack your thread
    been trying to get the pc to talk to the pickit 3
    with mplab.

    Seems to be a plug and play setup
    plug in the pickit3 to usb port
    start up mplab and select programmer or debugger (pickit3)
    but keep getting this error message

    PICkit 3 detected
    Connecting to PICkit 3...
    PK3Err0038: Failed to initialize PICkit 3.

    Has anybody else got one of these pickit3 clones to work ?
    there does not seem to be any other settings to pick from
    thanks
    Try connecting the PICkit 3 to a board with a chip to be programmed on it.
    OR
    You could try the following procedure ...
    Run MPLAB then hold the button on the unit, and while holding, plug into the USB. This will reload the firmware however I am not sure it will work for clones.

    regards,

    moodz.

    Leave a comment:


  • 6666
    replied
    Sorry to hijack your thread
    been trying to get the pc to talk to the pickit 3
    with mplab.

    Seems to be a plug and play setup
    plug in the pickit3 to usb port
    start up mplab and select programmer or debugger (pickit3)
    but keep getting this error message

    PICkit 3 detected
    Connecting to PICkit 3...
    PK3Err0038: Failed to initialize PICkit 3.

    Has anybody else got one of these pickit3 clones to work ?
    there does not seem to be any other settings to pick from
    thanks

    Leave a comment:


  • 6666
    replied
    Thanks moodz and dave
    mine came with no software
    it is supposed to work with mplab I have version 8.76
    you need a version above 8.2

    the handbook for this pickit 3 is at
    Find information, resources and relevant links for sure-electronics.net. This domain may be for sale.


    just click the word download

    trying to get the pc to talk to it
    cheers

    and the LCD arrived in the mail

    Leave a comment:


  • moodz
    replied
    Originally posted by Vortxrex View Post
    I received my Pickit2 Clone today from Sure Electronics. It did not come w/software. I downloaded the MPLAB C Compiler from here: http://www.microchip.com/stellent/id...cName=en536656

    Dave Frank
    If you are only burning the hex files and want to use the inbuilt UART tool ( serial comms ) to talk to the UNIP chip ( saves wiring up an LCD ) get the pickit software here ....



    Regards moodz.

    Leave a comment:


  • Vortxrex
    replied
    I received my Pickit2 Clone today from Sure Electronics. It did not come w/software. I downloaded the MPLAB C Compiler from here: http://www.microchip.com/stellent/id...cName=en536656

    Dave Frank

    Leave a comment:


  • 6666
    replied
    I am one step closer, pickit3 arrived today, nice little unit
    now for the other goodies.

    Leave a comment:


  • moodz
    replied
    Originally posted by authere View Post
    Hi Moodz,

    You said in your last post" how would you know if the damping is set right, out in the field", from my experimenting the correct damping of a coil gave maximum depth to a test piece.

    Maybe someone could confirm this!!!

    Regards Ron
    Hi Ron ... on most PIs the damping is not really a user control ...its kind of a bench setting ...in this design the damping is a user control and is actually critical for the unicoil design ...as you can't set the descrimination without it. The depth will depend on the damping but also sample timing amp gains and even threshold settings in the audio section.
    Regards moodz.

    Leave a comment:


  • authere
    replied
    Hi Moodz,

    You said in your last post" how would you know if the damping is set right, out in the field", from my experimenting the correct damping of a coil gave maximum depth to a test piece.

    Maybe someone could confirm this!!!

    Regards Ron

    Leave a comment:


  • moodz
    replied
    ....now we move into the overtaking lane.

    A new menu item has been added to the UNIPI chip. User settable damping
    It is usually not practical to set damping in the field ... The UNIPI can do it now ... select from menu and adjust for minimum signal using AIR ( ie coil not near ground ) .... or you could adjust it with the coil near the ground ( AIR + GROUND ) ... who cares ... do whatever you want .... its easy

    Below we see shots of OVER, UNDER and OK damping. Below that is the LCD menu displaying the "goldilocks" setting.

    ... some may ask ... but how will I know if the damping is set right in the field without a CRO ???? ..... well if you look at the pics below and lets say you were sampling at about 7 microseconds ( he he ... oh you noticed my nice coil speed did you ) the output of the preamp will either rail positive or negative depending on over damp or underdamp and this is what indicates by way of a very simple measurement whether you are under or overdamped.

    Anyway ... if anyone is interested I could add some code to "autodamp" the coil which was going to be a feature on the UNIPI PRO but what the heck ... we can do it on this chip also.

    These results were tested on a monocoil front end. This is the descriminating frontend that not only descriminates but also provides faster damping through elimination of parasitic capacitance ( sure to be a future topic of furious debate ). I have the circuit physically laid out for testing .. but I have not drawn it yet. The code on its own wont damp anything ..... so I will release it when the hardware drawings available and maybe a bit more testing on coil speeds etc.


    moodz.

    Click image for larger version

Name:	over.JPG
Views:	1
Size:	138.9 KB
ID:	329640

    Click image for larger version

Name:	under.JPG
Views:	1
Size:	125.6 KB
ID:	329641

    Click image for larger version

Name:	ok.JPG
Views:	1
Size:	117.1 KB
ID:	329642

    Click image for larger version

Name:	ok1.JPG
Views:	1
Size:	51.9 KB
ID:	329643
    Last edited by moodz; 09-25-2011, 04:06 AM. Reason: addition

    Leave a comment:


  • 6666
    replied
    Hi Ap
    thanks thats good to know
    cheers
    6666

    Leave a comment:

Working...
X