I can't even make an LED flash!


Results 1 to 13 of 13

Threaded View

  1. #10
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Code:
    @ DEVICE  PIC16F628, XT_OSC, MCLR_OFF, PROTECT_OFF, BOD_ON, CPD_OFF, WDT_ON
    
    DEFINE OSC 4
    
    TRISA = 000011
    TRISB = 000000
    
    T1CON = 000011
    VRCON = 0                           ' A/D Voltage reference disabled
    CMCON = 7                            'Disable comparitor
    OPTION_REG = 010111
    
    PortA = 0
    PortB = 0
    
    start:
    
        portb.2 = 1
        pause 100
        portb.2 = 0
        pause 100
        goto start
    Glad you got it working, might be BOD on causing it.
    Last edited by Archangel; - 2nd May 2012 at 01:40. Reason: remove html
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 07:14
  2. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 03:30
  3. elapsed time between two led flash...
    By dario in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 5th February 2006, 17:09
  4. switches & LEDs ... my first attempt
    By yankee in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 28th January 2006, 13:51
  5. can't even flash an LED
    By bruno333 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 28th April 2005, 14:27

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