dumb question


Closed Thread
Results 1 to 40 of 94

Thread: dumb question

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Using PM.
    Did you change the code to work with PM. The way I have it posted it is for MPASM.
    Maybe I confused things the way I did it. I was wanting to show both ways.
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Aug 2009
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Yes,I change code,but would be easy for start with using just 1 tipe of code.Thank you

  3. #3
    Join Date
    Aug 2009
    Posts
    56


    Did you find this post helpful? Yes | No

    Default bread

    Whats next ?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by osceola View Post
    Whats next ?
    So you got the LEDs blinking? Did you get a button working to change the way the LEDs blink?

    Post your code so we can take a look.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2009
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    I have compiled and anssemblex and importing hex file in pickit2 and write to PIC.with this code only the second Led from the board is blinking and when press buttonthe Led is not blink.
    [code]
    '16F690 DEMO
    ' DEFINE OSC 8 'Comment the 4Mhz and uncomment these for 8Mhz
    ' OSCCON=%01110000

    DEFINE OSC 4 'This is the default setting
    OSCCON=%01100000


    ' @ device pic16F690, intrc_osc_noclkout, wdt_on, mclr_on, protect_off

    'VARS
    LED1 VAR PORTC.0
    LED2 VAR PORTC.1

    START:
    HIGH LED1
    LOW LED2
    PAUSE 250
    LOW LED1
    HIGH LED2
    PAUSE 250
    GOTO START
    [code]

    The 2 code dont work
    [code]
    '16F690 DEMO_2
    ' DEFINE OSC 8 'Comment the 4Mhz and uncomment these for 8Mhz
    ' OSCCON=%01110000

    DEFINE OSC 4 'This is the default setting
    OSCCON=%01100000

    'The first line is if you are using PM, the second if you are using MPASAM
    ' @ device pic16F690, intrc_osc_noclkout, wdt_on, mclr_on, protect_off


    TRISC = %00000000 '0 will make the pins an output, 1 will make them inputs

    START:
    PORTC = %00000001
    PAUSE 250
    PORTC = %00000010
    GOTO START
    [code]
    I get this errors:
    Error LED2.ASM 45 : [225] undefined symbol 'osccon'
    ---------------46-------------------------'trisc'
    ---------------49-------------------------'portc'
    Fatal----------49 : [300] too many errors
    Last edited by osceola; - 23rd August 2009 at 16:43.

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Did you comment the lines in the 16F690.inc file that is in the PBP directory? Like the config thread pointed out.

    In MCS do you have the box checked to use MPASM?
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Aug 2009
    Posts
    56


    Did you find this post helpful? Yes | No

    Angry

    Quote Originally Posted by mackrackit View Post
    Did you comment the lines in the 16F690.inc file that is in the PBP directory? Like the config thread pointed out.

    In MCS do you have the box checked to use MPASM?
    In MCS box in unchecked,and where do I find the .inc file of PIC16F690?


Similar Threads

  1. AN Question for "word" variable read The serial port
    By redfoen in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 14th December 2007, 17:39
  2. really simple, dumb question
    By picster in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd March 2007, 22:02
  3. Question for a math guru
    By Christopher4187 in forum General
    Replies: 3
    Last Post: - 22nd November 2006, 09:45
  4. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 06:49
  5. Dumb question
    By Christopher4187 in forum General
    Replies: 0
    Last Post: - 20th June 2006, 12:02

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