really simple, dumb question


Closed Thread
Results 1 to 2 of 2
  1. #1

    Default really simple, dumb question

    Ok this seems pretty rudimentary - I just wanted to get a quick answer and save me testing this in person.

    I'm using a 16F88, and want to use PB2 for hardware UART RX using Darrel's interrupt system to branch when the serial buffer receives a character. The rest of PB I'm using for output. I'll set TRISB=4, and enable the interrupt and all, but my question is, if I later code "PORTB=n", what's the effect on PB2 when this is carried out? Is it ignored for bits that are set as inputs via the TRIS register? Do I have to do a read/modify/write? Will it do anything funky with my RX bit? I didn't want to break it down to bit-by-bit changes, since it's important that the change across the OTHER bits happen synchronously.

    Thanks in advance, and sorry for the simplicity of this question.

    picster

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


    Did you find this post helpful? Yes | No

    Default

    in theory, all bit set to input shouldn't be affected by a PORT write.
    Steve

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

Similar Threads

  1. Stupid simple question.....
    By chien_fu in forum mel PIC BASIC
    Replies: 18
    Last Post: - 23rd February 2010, 13:21
  2. dumb question
    By osceola in forum General
    Replies: 93
    Last Post: - 26th August 2009, 18:39
  3. SIMPLE question
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 5th February 2008, 18:27
  4. really simple adcin question
    By kitcat in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 21st April 2006, 09:06
  5. Simple question, I hope? (Serial control, 16F84A)
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 31st December 2005, 19:47

Members who have read this thread : 1

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