16F628A UART & B Ports Use


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2012
    Posts
    2

    Default 16F628A UART & B Ports Use

    First of all I'm relatively new to PIC programming but do have some circuits working.
    I'm using the X3 experimenter board to set this project up.

    I'm doing a project that requires 8 inputs and 8 outputs and am attempting to use the 16F628A for this.
    I'm using Portb.2 USART to output commands to a device and that's working great.... but if I attempt to raise or lower the port nothing happens.
    Do I need to temporarily enable/disable the USART?

    In addition... is it possible to use all 8 of the A pins for input and all 8 of the B pins for output?
    Let me know if you need more info. to reply... Thank you... Dave

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: 16F628A UART & B Ports Use

    Why are you using PORTB.2

    but if I attempt to raise or lower the port
    What do you mean?

    And of course your code will help someone figure out what you are doing wrong

    And

    DATA sheets are your friend.
    Please read the chips DATA sheet and make it happy
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Jan 2012
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: 16F628A UART & B Ports Use

    Doesn't portb.2 share the same pin with the USART transmit?

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: 16F628A UART & B Ports Use

    Quote Originally Posted by DJDave View Post
    Doesn't portb.2 share the same pin with the USART transmit?
    Yes it does.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: 16F628A UART & B Ports Use

    That is why it can not be
    raise or lower
    if I understand what you mean by that.
    Dave
    Always wear safety glasses while programming.

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