Quote Originally Posted by mbox View Post
I'm trying to turn On Led1,Led2,Led3 with the Hyperterminal, using pic16F628a. I have this initial code that simply blinks 3 leds. Please guide me on how to configure the bits that enable RX in Rb1 using 4 Mhz internal clock. Please check my initial code below...
Or...you could read the datasheet for the PIC16F628A and pick out the registers you need to set up and try to write some code...
Or...you could use the SERIN/SERIN2 commands built into PBP and not really have to worry about setting up any USART bits...AND, you wouldn't have to use a level converter (such as a MAX232) to get the right signal levels, since SERIN/SERIN2 can receive 'inverted' RS232 whereas the hardware unit can not...
Then, after you've written some code, and it does not work, or work in ways you did not anticipate, you post that code here. When that is done, I'm sure a lot of people will jump right in and help you troubleshoot it.