Beginer problems


Results 1 to 8 of 8

Threaded View

  1. #3
    Join Date
    Jan 2010
    Posts
    37


    Did you find this post helpful? Yes | No

    Default This is my code and schematics

    '************************************************* ********
    '
    ' LED FLASHING PROGRAM
    ' ======================
    '
    ' This program flashes an LED connected to port RB0 of PORTB. The
    ' LED is flashed with 1 second intervals.
    '************************************************* ************
    '
    LED VAR PORTB.0 ' Define RB0 as LED
    '
    ' START OF MAIN PROGRAM
    '
    TRISB = 0 ' Set PORTB pins as outputs
    AGAIN:
    LED = 1 ' Turn ON LED
    PAUSE 1000 ' Wait 1 second
    LED = 0 ' Turn OFF LED
    PAUSE 1000 ' Wait 1 second
    GOTO AGAIN ' Repeat forever
    END ' End of program
    Attached Images Attached Images  

Similar Threads

  1. Problems with U2 programmer C30 compiled code
    By minimii in forum Off Topic
    Replies: 0
    Last Post: - 5th November 2009, 10:43
  2. Problems programming
    By Lionheart in forum General
    Replies: 4
    Last Post: - 7th December 2008, 17:51
  3. 2 PWM in 16F690 problems
    By ciendavila in forum mel PIC BASIC
    Replies: 9
    Last Post: - 27th April 2008, 10:03
  4. HSEROUT Problems
    By SergioRM in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 8th April 2005, 00:17
  5. USART problems
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 47
    Last Post: - 6th March 2005, 22:45

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