RB0 interrupt and toggle issue


Results 1 to 36 of 36

Threaded View

  1. #36
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    <table><tr><td></td><td>
    PortA.4 is not responding though....it stays low
    for PORTA.4... well... it's an open-collector output type on this one. So you may need to slightly modify your hardware and software.

    http://www.picbasic.co.uk/forum/showthread.php?t=11116

    In brief, connect your LED between Vdd and PORTA.4, and change those
    Code:
    PORTA = 0
    to
    Code:
    PORTA = %00010000
    That should work for LEDs. If you drive a transistor but then it's easier... not software modification are needed, just hardware.
    </td></tr></table>
    Last edited by mister_e; - 5th May 2009 at 20:10.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. Instant Interrupts - Revisited
    By Darrel Taylor in forum Code Examples
    Replies: 772
    Last Post: - 17th February 2016, 22:14
  2. TMR0 interrupt and HSERIN
    By boban in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd September 2008, 11:48
  3. I have problem with interrupt RB0
    By chai98a in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 5th July 2008, 09:55
  4. tmr2 interrupt problem
    By ADCON in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 2nd January 2008, 18:49
  5. USART interrupt not interrupting right
    By Morpheus in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 6th March 2005, 01:07

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