dumb question


Results 1 to 40 of 94

Thread: dumb question

Threaded View

  1. #31
    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 22:09.

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