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
Re: 16F628A UART & B Ports Use
Why are you using PORTB.2
Quote:
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 :)
Re: 16F628A UART & B Ports Use
Doesn't portb.2 share the same pin with the USART transmit?
Re: 16F628A UART & B Ports Use
Quote:
Originally Posted by
DJDave
Doesn't portb.2 share the same pin with the USART transmit?
Yes it does.
Re: 16F628A UART & B Ports Use
That is why it can not be
if I understand what you mean by that.