connect two pics


Results 1 to 29 of 29

Threaded View

  1. #11
    Join Date
    Jun 2006
    Posts
    14


    Did you find this post helpful? Yes | No

    Default

    You guys are great and have humor!

    Thank you for your answers!

    How wrong I can be with that simple program?

    TRISB = 0 ' PORTB is output
    PORTB.0 = 1 'enable1 of L293d is always high so input 1 and input 2 are available
    start:
    PORTB.1 = 1 'input1 of l293d goes high, so output 1 goes high so turns left
    PORTB.2 = 0 'input2 of l293d goes low, so output 2 goes low so turns left
    pause 2000
    PORTB.1 = 0 'the opposite, turns right
    PORTB.2 = 1
    pause 3000
    PORTB.1 = 0 'stop the dc motors
    PORTB.2 = 0
    goto start 'loop
    Last edited by soki; - 19th September 2008 at 16:34.

Similar Threads

  1. Free Project - 245 LED Display
    By T.Jackson in forum Code Examples
    Replies: 221
    Last Post: - 16th August 2009, 04:59
  2. Retrieving infos from multiple PICs on a bus/chain
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 15th October 2007, 04:42
  3. connect 2 PICs
    By drama in forum mel PIC BASIC
    Replies: 1
    Last Post: - 4th October 2007, 16:55
  4. Multiple PIC's with 1 crystal
    By puma in forum Schematics
    Replies: 11
    Last Post: - 20th March 2007, 17:02
  5. Replies: 5
    Last Post: - 20th August 2006, 23:09

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