16f84A to 16f628A


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2009
    Posts
    40


    Did you find this post helpful? Yes | No

    Default Re: 16f84A to 16f628A

    You have not added Cmcon=7. Put it at the start of the program

  2. #2
    Join Date
    Sep 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default Re: 16f84A to 16f628A

    grahamg Yes I added cmcon = 7

    *******************************
    @ device PIC16F628A, HS_OSC, WDT_OFF, PWRT_ON, PROTECT_OFF
    TrisA = %00000000
    PortA = %00000000
    TrisB = %00000001
    PortB = %00000000

    cmcon = 7
    Digit Var Byte
    Time Var Word
    Tcon Con 245
    Time = Tcon
    Imp Var Word
    Imp = 0
    RPM Var Word
    RPM = 0
    OPTION_REG = %10000011
    TMR0=5
    INTCON = %10110000
    Pause 1000

    EEPROM 80,[83,46,84,32,69,108,101,99,116,114,111,110,105,99,1 15]
    ' ------------------------- [ ---------- ] -------------------------


    Last edited by dovegroup; - 27th June 2012 at 16:53.

  3. #3
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: 16f84A to 16f628A

    RA4 is an open collector pin so it will not turn from zero to 5 volts as all the digital pins.

    If all you need is to turn your led on & off, then connect your 330 ohms resistor to 5 volts and RA4 pin to junction from led and 330 ohms resistor.

    Remember then when pin is on your led will be off.

    Cheers

    Al.
    Last edited by aratti; - 27th June 2012 at 17:06.
    All progress began with an idea

  4. #4
    Join Date
    Sep 2009
    Posts
    23


    Did you find this post helpful? Yes | No

    Default Re: 16f84A to 16f628A

    Friend aratti yes you have absolute right
    Now works also the PortA.4 yessssssssssssssssssss

    Thank you very much

    Last edited by dovegroup; - 27th June 2012 at 18: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