PIC16F887 cant handle HIGH and LOW?


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Oops..!

    Looks like this one has A/D on PORTB, so you'll also want to disable that. ANSELH=0 should
    do the trick.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Jul 2007
    Posts
    48


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Bruce View Post
    Oops..!

    Looks like this one has A/D on PORTB, so you'll also want to disable that. ANSELH=0 should
    do the trick.
    Thanks, now does this code work too!


    Code:
    loop:
    
    HIGH PORTB.0
    HIGH PORTB.1
    HIGH PORTB.2
    PAUSE 250
    LOW PORTB.0
    LOW PORTB.1
    LOW PORTB.2
    PAUSE 250
    
    goto loop
    
    END

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Most of the time this approach works fine, but it can cause read-modify-write problems
    depending on the oscillator speed, and external capacitance present on each pin.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. SERIN MIDI out of Synch?
    By jncortes in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th June 2009, 20:08
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. Pic16f84 and RC5 kode
    By terminator in forum Bluetooth
    Replies: 5
    Last Post: - 18th June 2007, 21:40
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. sample code for M25P32
    By Pedro Santos in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th January 2007, 02:37

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