Help Pic16f628a


Results 1 to 7 of 7

Thread: Help Pic16f628a

Threaded View

  1. #1
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240

    Default Help Pic16f628a

    Hi everyone;

    I'm trying to program a PIC16F628A with internal oscilator and no MCLR Resistor, however, it does not Work, and i donīt know what i'm doing wrong; can you help me ?

    Here goes the code;

    @ DEVICE pic16F628A, INTRC_OSC_NOCLKOUT
    @ DEVICE pic16F628A, WDT_ON
    @ DEVICE pic16F628A, PWRT_ON
    @ DEVICE pic16F628A, MCLR_OFF
    @ DEVICE pic16F628A, BOD_OFF
    @ DEVICE pic16F628A, LVP_OFF
    @ DEVICE pic16F628A, CPD_OFF
    @ DEVICE pic16F628A, PROTECT_OFF


    '76543210
    TRISA = %00000000
    TRISB = %00001110
    CMCON = 7
    VRCON = 0



    Led1 VAR TRISB.6
    Led2 VAR TRISB.5
    Led3 VAR TRISB.4


    Main:
    HIGH Led1
    PAUSE 2000
    LOW Led1
    HIGH Led2
    PAUSE 2000
    LOW Led2
    HIGH Led3
    PAUSE 2000
    LOW Led3
    Goto Main


    END


    Regards
    Gadelhas
    Last edited by gadelhas; - 26th August 2008 at 21:28.

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  2. Do I need a pause?
    By tazntex in forum Serial
    Replies: 21
    Last Post: - 29th August 2008, 04:32
  3. Changing bits in a byte for multiple output
    By tazntex in forum Serial
    Replies: 3
    Last Post: - 11th August 2008, 19:10
  4. Replies: 8
    Last Post: - 22nd July 2008, 20:31
  5. Interrupt & device setup for a PIC16F628A in Microcode Studio Plus
    By wildpikachu in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 3rd May 2008, 16:28

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