1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

High ADC sampling rate PIC, 18F needed?

Discussion in 'Microcontrollers' started by bananasiong, Sep 29, 2007.

  1. Gordz

    Gordz New Member

    Joined:
    Oct 27, 2007
    Messages:
    234
    Likes:
    0
    Location:
    Sydney - Australia
    The PIC24HJ12GP202 or similar will allow you to sample 10bit AD @ 1.1 msps, it also has the ability to store direct to internal ram. But I am having trouble trying to get any .ASM support for this range.
     
  2. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,331
    Likes:
    653
    Location:
    Derbyshire, UK
    ONLINE
    Presumably, like the 18F series, support is for C programming, with a free compiler available?.
     
  3. Gordz

    Gordz New Member

    Joined:
    Oct 27, 2007
    Messages:
    234
    Likes:
    0
    Location:
    Sydney - Australia
    You got it right there. It's a hassle because I wanted to port my 'scope code from the 18F I'm using to the 24HJ12GP202 to take adavntage of the A/D speed. Microchip have not been able to help and I'm not about to start learning C so I now spend hours searching and trying to get a 'hello world' working.....
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. Nigel Goodwin

    Nigel Goodwin Super Moderator Most Helpful Member

    Joined:
    Nov 17, 2003
    Messages:
    39,331
    Likes:
    653
    Location:
    Derbyshire, UK
    ONLINE

    I'm also 'anti-C' but for the 18F and higher series it's something you really need to learn, because that's what they are intended for, and application notes and examples are in C. Obviously you could use assembler for time critical sections, and presumably all the assembler codes are in the datasheet?.
     
  6. Gordz

    Gordz New Member

    Joined:
    Oct 27, 2007
    Messages:
    234
    Likes:
    0
    Location:
    Sydney - Australia
    The code is there in as much as it is listed, however it is not very clear. There are no code template available and was I have found has been from dsPIC models. From what I have piced to gether there is no reason why my 'hello world' won't work but the PIC does not seem to be running so the clock is probably not configured. That in it's self is more than a little complicated with so many options. Even if I learned C (old dog new tricks etc.) I would still need to port all the .ASM stuff I have.
     

Share This Page