pause puts me in sleep mode


Results 1 to 21 of 21

Threaded View

  1. #14
    EDWARD's Avatar
    EDWARD Guest


    Did you find this post helpful? Yes | No

    Default

    yes, it is going to be difficult, thats why im in here

    i have decided to make a schemtic of the whole board. ill might even desolder one of my boards so i can see the layout better.

    what are the basic priciples on uing an input control a trans?

    It sounds like your saying i need portc.2 as an input throughout the whole process.

    i can trisc more then once, right?

    i already tried a code like this with no success: 'some things are wrong for simplicity.

    '-----------------------------------------
    main:

    trisc=%11111011 'portc.2 as output

    if portb.0 = 1 then 'if i press a button
    gosub fire
    endif

    goto main

    fire:
    portc.2 = 1 'make transistor active
    pause 500
    trisc=%11111111 'portc.2 as input
    pause 500
    RETURN
    '--------------------------------------------
    Last edited by EDWARD; - 8th May 2005 at 20:30.

Similar Threads

  1. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  2. Replies: 11
    Last Post: - 12th July 2008, 02:36
  3. Pic to LanC
    By grounded in forum Off Topic
    Replies: 9
    Last Post: - 24th June 2008, 00:12
  4. Fade out LEDs question
    By Sam in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 22nd June 2008, 10:50
  5. Help Quick Need to make code smaller
    By Programmednew in forum mel PIC BASIC Pro
    Replies: 41
    Last Post: - 25th January 2005, 03:46

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