16f628 / 16f628a


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    49

    Default 16f628 / 16f628a

    Hi all,

    Just to ask is this two the same. I try to get the datasheet for 16f628 but all the link direct me to the 16f628a/ 16f627a datasheet. May be I am asking stupid question but I need the answer.

    Thanks.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Yes they are pretty much the same.

    You can use the HEX for one and load it into another.

    There may be some differences in programming alogrythms, so use the correct selection for the PIC you are using in your programmer.

  3. #3
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    49


    Did you find this post helpful? Yes | No

    Default

    Thanks Mel.

    I need to use the analog pin for Sharp distance sensor. eggman (in other thread) told me that I cant do that with 16f628 but looking at the 16f628a datasheet there's 4 analog I/O trough RA0 - RA3.

    Is it possible for me to do that?

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    The 16F628 has Analog COMPARATORS not A-D Convertors.

    You can use those Comparators for Voltage Measurement, and there are a number of ways to do that, but none are really for the inexperienced and the very easy solutions give poor results.

    For better results, try the Sigma-Delta method.... here is a paper describing it...

    http://www.numerix-dsp.com/appsnotes...igma-delta.pdf

    ...if you can understand it, then you can move forward. If you can't then you have a choice...

    (a) Use the Comparators with the Internal Voltage Reference which will give you roughly 16 steps over a very small voltage range - always assuming your input signal is reasonably unchanging over a rather long sampling period (say about 180mS).

    (b) Add an external programmable voltage reference your PIC can control.

    (c) Use an external A-D Convertor as a 'front-end' input to your PIC.

    (d) Chose a PIC which has internal AD convertors - the PIC16F628 doesn't.

  5. #5
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    In case you want to use the Delta-Sigma way

    From microchip
    http://ww1.microchip.com/downloads/e...tes/00700a.pdf

    And someone here used it
    http://www.picbasic.co.uk/forum/show...ht=delta+sigma
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  6. #6
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    49


    Did you find this post helpful? Yes | No

    Default

    Thanks Mel & Mister_e.

    For the time being I am not going to dive into the 70 pages guide of the delta sigma.

    I will choose option C. why? because I already have experience using ADC 0831 with Basic Stamp2. I will try it today.

    For the past three weeks I have learn how to blink Led, servo and serial LCD with PIC. All with the help of forum members and by reading post in this forum.
    You guys and gurl (Mel Of course) are superb.

    Thanks for the time and effort.

Similar Threads

  1. Are 16f628 and 16f628A difference each other?
    By elektrodam in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 15th July 2006, 06:20
  2. Migrate from 16F628 to 16F628A
    By cooksydesign in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 1st June 2006, 18:31
  3. SERIN2 not working with 16F628
    By d1camero in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 6th May 2004, 20:37
  4. HSEROUT and 16F628A
    By fredblah in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 6th May 2004, 00:07
  5. 16F628 on-chip eeprom problem
    By atomski in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 4th March 2004, 07:43

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts