Beginer Help!


Closed Thread
Results 1 to 15 of 15

Thread: Beginer Help!

Hybrid View

  1. #1
    Join Date
    Apr 2008
    Posts
    85

    Default Beginer Help!

    I WROTE A BLINK PROGRAM USING 16F628,

    CMCON = 7 ; turn comparator off

    ; the osc used is INTRCIO in the OSCILATOR SELEC OF MELAB

    LOOP ; this part copy form melab introduction

    HIGH PORTB.7 ; make port B7 high
    PAUSE 500 ; pause for 0.5 sec

    LOW PORTB.7 ; make port B7 low
    PAUSE 500

    GOTO LOOP
    END

    it does not work. the input voltage is 5V ( to the pin 14), the output is 1.0 V for each output pin , no external osc connected; (i HAVE TRIED FOR 3 DIFFERENT IC'S, AND DIFFERENT INTERNAL OSC'S

    ANY HELP I DO APPRE.

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


    Did you find this post helpful? Yes | No

    Default

    And how have you got MCLR connected?

    Redo your program adding these two lines at the top...

    Code:
    	@ DEVICE pic16F628, INTRC_OSC_NOCLKOUT
    	@ DEVICE pic16F628, MCLR_OFF

  3. #3
    Join Date
    Dec 2007
    Location
    Cd. Juarez, Mexico
    Posts
    8


    Did you find this post helpful? Yes | No

    Default

    Just pull up the MCLR pin with a 4.7k resistor. Or change the "MCLR Pin function" to "Input pin" on the meProg Configuration section.

    See you!!!!!!!!!

  4. #4
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default

    Thanks, I Will Try,

  5. #5
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default

    THANKS BOTH OF YOU,

    it still does not work
    I SEE SOME THINGS HERE:

    THERE ARE TWO ILLEGAL OPCODES FOR F16F628 when running the program,

    THE MEPROG CONFIGURATION IS IRRELEVANT TO THE PROGRAM?:

    1- DEVICE .....INTRC_OSC_NOCLKOUT (set up on osc type on the configuration?)
    2- DEVICE.....MCLR_OFF (MCLR_IN set up on the reconfiguration),

    (the PICF628 is selected)

  6. #6
    Join Date
    Apr 2008
    Posts
    85


    Did you find this post helpful? Yes | No

    Default

    I add @ DEVICE PIC16F628, __config 0x3D18 to use internal OSC.

    and remove @ DEVICE PIC16F628, INTRC_OSC_NOCLKOUT,

    it does not work!!

Similar Threads

  1. Beginer problems
    By luxornet in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th February 2010, 04:55

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