Pic 16 F628A not working


Closed Thread
Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27

    Default Pic 16 F628A not working

    Hi.Frends.

    I want to use F84 but in my Country ı can not find F84 SMD. So I decide F28 to use becouse ı can find F628 SMD easly.
    But ı have a problem with f628 as follows:

    I wrote the for F84 and I did necessery changing for F628 but code not working on F628.

    Code sample for F628:

    ....
    ....
    ....
    CMCON=7
    VRCON=0

    ......
    ......
    But it is not vorking. then:

    CMCON =7

    .....
    .....

    Not working.


    Is there another way to need chamge or what Iam doing wronge.

    If anybody helpme thanks alot!....
    Birbirimize yardım için buradayız.
    We are here to help each other....

  2. #2
    Join Date
    Aug 2008
    Posts
    66


    Did you find this post helpful? Yes | No

    Default

    Can you explain what you meant by not working? is it cannot read the input, set the output, compilation error etc?

  3. #3
    Join Date
    Feb 2008
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    merhaba. Do you have a pullup resistor on pin a5/mclr?

    That was often the reason why my progs didn't seem to work.

    But beware: If you use ICSP you have to combine the resistor with a diode to prevent your circuits from the +12V of the programmer!
    Last edited by helloo; - 13th March 2009 at 23:24.

  4. #4
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27


    Did you find this post helpful? Yes | No

    Default F628

    Thanks for your interest.
    F628 REALLY not working .
    I use f84 on same board but when ı put F628 NOTTİNG HAPPEN. I can not see any charecter on LCD. or any output from pic.
    I think pic not recoc. Oscilator. Maybe ı do same mistake when ı write the code. Is there a way that ı declare to pic that use external xtal oscilator 20 MHz.
    Thanks.
    Birbirimize yardım için buradayız.
    We are here to help each other....

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Wink One good reason ...

    Hi, Turkouaz

    there's a major difference in the PortA inputs ...

    TTL for 16F84a ...

    Schmitt Trigger for 16F628a ...

    soooo, I'd recommend you to check your input levels on PortA

    THE solution for this problem is to use a 16F87/88 ...

    Alain

    PS: code lines are never too much to show : anything you have to hide ???
    Last edited by Acetronics2; - 16th March 2009 at 14:44.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  6. #6
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27


    Did you find this post helpful? Yes | No

    Default F628

    Thanks ACTRONICS.
    But I do not use any A port.
    But I want to use F628 because ı can use SMD F628 in my board.
    Thanks
    Birbirimize yardım için buradayız.
    We are here to help each other....

  7. #7
    Join Date
    Mar 2006
    Location
    Ankara -Turkey
    Posts
    27


    Did you find this post helpful? Yes | No

    Default F628

    I fond the problem myself.
    In defoult in f628 .inc files osc is XT osc. I changed it to HS_OSC the problem has gone.
    Thanks everyone.
    Birbirimize yardım için buradayız.
    We are here to help each other....

Similar Threads

  1. Pic 16 F628A pulsein Problem
    By turkuaz in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 27th February 2009, 10:46
  2. Replies: 16
    Last Post: - 3rd November 2008, 19:58
  3. Midi, Interrupts and Pic better than SX28?
    By Lajko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th September 2008, 00:26
  4. Stop the pic working
    By sgufa in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 9th July 2007, 00:38
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

Members who have read this thread : 1

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