Newbie need Help 16F627a


Results 1 to 15 of 15

Threaded View

  1. #7
    Join Date
    Feb 2007
    Location
    Malaysia
    Posts
    49


    Did you find this post helpful? Yes | No

    Default

    Joe S.
    After editing the INC file in PBP I got this message

    Error [113] c:\pbp\16f628.inc 22 : Symbol not defined (_HC_OSC)

    For your info I'm using 16F628 now cause i broke some of the 16F627a pin while
    remove it from my icsp.

    Theres already a 10k resistor and a diode in series on my icsp module.

    The LED blink when i touch the osc pin.

    here's my code:
    DEFINE OSC 20
    CMCON = 7
    OPTION_REG.7 = 0



    TRISB.0 = 0
    LED VAR PORTB.0 ' alias PORTB.0 to LED

    loop:
    high LED' turn on LED connected to PORTB.0
    Pause 500 ' delay for .5 seconds

    low LED ' turn off LED connected to PORTB.0
    Pause 500 ' delay for .5 seconds

    GoTo loop ' loop and blink LED forever
    Last edited by azmax100; - 18th January 2009 at 13:21.

Similar Threads

  1. Newbie making an ignition timer
    By ChrisHelvey in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 5th August 2012, 17:45
  2. Newbie: Temperature measurements
    By Budda in forum General
    Replies: 10
    Last Post: - 30th March 2007, 09:56
  3. PIC Newbie
    By azmax100 in forum Schematics
    Replies: 7
    Last Post: - 23rd February 2007, 04:52
  4. request for a newbie forum
    By nimonia in forum Forum Requests
    Replies: 1
    Last Post: - 20th May 2006, 09:01
  5. 16F627A portA4 problem?
    By markedwards in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 22nd October 2005, 19:54

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