dumb question


Closed Thread
Results 1 to 40 of 94

Thread: dumb question

Hybrid View

  1. #1
    Join Date
    Aug 2009
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Did it again.I opened from the open file-16F690.INC and paste your code plus another file where past your code
    Code:
    ;****************************************************************
    ;*  16F690.INC                                                  *
    ;*                                                              *
    ;*  Notice    : Copyright (c) 2006 microEngineering Labs, Inc.  *
    ;*              All Rights Reserved                             *
    ;*  Date      : 05/23/06                                        *
    ;*  Version   : Demo                                            *
    ;*  Notes     :                                                 *
    ;****************************************************************
            NOLIST
                  
    __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
            NOLIST
        endif
            LIST
            '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
          
            @ __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLR_ON & _CPD_OFF
        
        TRISC = %00000000   '0 will make the pins an output, 1 will make them inputs
        
        START:
        PORTC = %00000001
        PAUSE 250
        PORTC = %00000010
        GOTO START
    First is 16F690.INC second is the code I paste it from you
    Code:
    '****************************************************************
    '*  Name    : UNTITLED.BAS                                      *
    '*  Author  : [select VIEW...EDITOR OPTIONS]                    *
    '*  Notice  : Copyright (c) 2009 [select VIEW...EDITOR OPTIONS] *
    '*          : All Rights Reserved                               *
    '*  Date    : 23/08/2009                                        *
    '*  Version : 1.0                                               *
    '*  Notes   :                                                   *
    '*          :                                                   *
    '****************************************************************
    '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
        __config _INTRC_OSC_NOCLKOUT & _WDT_ON & _MCLRE_ON & _CP_OFF
        
        TRISC = %00000000   '0 will make the pins an output, 1 will make them inputs
        
        START:
        PORTC = %00000001
        PAUSE 250
        PORTC = %00000010
        GOTO START
    Results:
    ERROR Line 17 : Syntax error.(led.pbp)
    I dont understand nothing,so hard is it to create a code?!?...or I am really dumb?

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


    Did you find this post helpful? Yes | No

    Default

    You are not following the directions. Go back and read all of the links and post.

    Why do you need the card reader in the first place? Seems like a lot of work.
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2009
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Maybe you are right that Im not folowing the corect line of instructions,but my english is not so good and were are many explanation I dont get it.Would be easy if somebody could tell me in little words what to folow,I know how stressfull can be when you explain to somebody something and dont get it and you have to explain again and again....Honestly I really dont know were to start from

  4. #4
    Join Date
    Aug 2009
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Anyway...I want to learn and will do that again,thank you for helping me

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


    Did you find this post helpful? Yes | No

    Default

    Keep reading and trying. The LEDs will blink. But I would put the card reader on the back shelf for awhile.
    Dave
    Always wear safety glasses while programming.

  6. #6
    Join Date
    Aug 2009
    Posts
    56


    Did you find this post helpful? Yes | No

    Default

    Thanks for being patience,at the end I did it!But with this code one led stay on,and wit other code I will post one led is blinking.whats next?
    Code:
    '****************************************************************
    '*  Name    : P16F690.INC                                       *
    '*  Author  : [select VIEW...EDITOR OPTIONS]                    *
    '*  Notice  : Copyright (c) 2009 [select VIEW...EDITOR OPTIONS] *
    '*          : All Rights Reserved                               *
    '*  Date    : 24/08/2009                                        *
    '*  Version : 1.0                                               *
    '*  Notes   :                                                   *
    '*          :                                                   *
    '****************************************************************
         '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
      
         TRISC = %00000000   '0 will make the pins an output, 1 will make them inputs
        
        START:
        PORTC = %00000001
        PAUSE 250
        PORTC = %00000010
        GOTO START
    Last edited by osceola; - 24th August 2009 at 23:09.

  7. #7
    Join Date
    Aug 2009
    Posts
    56


    Did you find this post helpful? Yes | No

    Thumbs up

    With this code one led is blinking.By the way,I had no succes compiling with MPASM,I use PM for both.
    Code:
    '****************************************************************
    '*  Name    : P16F690.INC                                       *
    '*  Author  : [select VIEW...EDITOR OPTIONS]                    *
    '*  Notice  : Copyright (c) 2009 [select VIEW...EDITOR OPTIONS] *
    '*          : All Rights Reserved                               *
    '*  Date    : 24/08/2009                                        *
    '*  Version : 1.0                                               *
    '*  Notes   :                                                   *
    '*          :                                                   *
    '****************************************************************
         '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
    I have now a breadboard,rezistors,leds and PIC16F628.Can we go on with it?
    THANK YOU!!!

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, 18:39
  2. really simple, dumb question
    By picster in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 3rd March 2007, 23:02
  3. Question for a math guru
    By Christopher4187 in forum General
    Replies: 3
    Last Post: - 22nd November 2006, 10:45
  4. Please answer my first question
    By John_001 in forum Off Topic
    Replies: 1
    Last Post: - 15th September 2006, 07:49
  5. Dumb question
    By Christopher4187 in forum General
    Replies: 0
    Last Post: - 20th June 2006, 13: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