Problem with 16F648A


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Red face

    I do not manage to fix my problem.I add the CMCON = 7 to disable comparators...BUT NOTHING.

    But I found something strange and I would like your advice.
    I use Microcode Studio Plus 3.0.0.5, compiler PBP 2.47, programmer Pickit2.
    I compile my code and I program my pic with the .hex generated file.After that I read the pic and the .hex file is not the same(same changes).

    LOOK the attaches file
    Attached Files Attached Files

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Since you are running at 3V you may have an input level problem. If the IF PORTA.1 = 1 never goes true, the hardware just may not be seeing the proper level. If the input pin is "TTL" level then it needs a voltage level of (.25 VDD + 0.8V) for a '1'. If it is a schmitt trigger then it needs at least 0.8VDD for a '1'. Sometimes it is the simple stuff you need to check.

  3. #3
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Cool

    falingtrea,

    The condition IF PORTA.1 = 1 never goes true either using 5vdc.I do not think that is level "1" the problem.

    I will try to de-install the Microcode Studio Plus + pICKIT2 because it seems to me that the problem is from the pc.

    If someboby have any other idea please advice

    Regards
    Nikos

  4. #4


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ngeronikolos View Post
    falingtrea,

    The condition IF PORTA.1 = 1 never goes true either using 5vdc.I do not think that is level "1" the problem.

    I will try to de-install the Microcode Studio Plus + pICKIT2 because it seems to me that the problem is from the pc.

    If someboby have any other idea please advice

    Regards
    Nikos
    This may be a stupid question but have you verified that the signal on PortA.1 is working the way you expect it? What is driving this pin? If it is some kind of open-collector output, for instance, it needs a pullup in order to generate a '1'. I always check the hardware before I assume there is a problem with the software. I can't remember how many times I have put the wrong kind of signal on a pin and wondered why the software did not work.

  5. #5
    Join Date
    Feb 2005
    Location
    GREECE
    Posts
    120


    Did you find this post helpful? Yes | No

    Default

    Finally falingtrea show me the way to solve my <<stupid>> problem.
    I add pull down resistor to PORTA.1...and that's it.ok

    HARDWARE
    Thanks boys
    Nikos

  6. #6


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ngeronikolos View Post
    I do not manage to fix my problem.I add the CMCON = 7 to disable comparators...BUT NOTHING.

    But I found something strange and I would like your advice.
    I use Microcode Studio Plus 3.0.0.5, compiler PBP 2.47, programmer Pickit2.
    I compile my code and I program my pic with the .hex generated file.After that I read the pic and the .hex file is not the same(same changes).

    LOOK the attaches file
    If you look closely you will see that from address 0 to 2FF the data is the same. After that the difference between the files is that the read is showing all the blank locations of the total memory for the PIC device. This is normal.

Similar Threads

  1. Code doesn't work on 16F648A
    By Mr_Joe in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 1st September 2018, 22:09
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. Hardware problem or what ?
    By Steve S. in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 4th March 2007, 21:39
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. weird 12F629/675 problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th October 2004, 01:08

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