information for connect RS232 by PIC16F877A

Status
Not open for further replies.

swtboy

Newbie level 6
Joined
Feb 14, 2012
Messages
14
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Visit site
Activity points
1,367
can anyone tell me why when i connect to PC Serial Port pin2 the voltage lose???
from 4.2V to 0.3V???
 

sorry about that.
i follow this circuit but i using 4 4.7uF connect with max232.
max232 tx output is 4.2V, but when i connect to PC serial pin 2 voltage become 0.3V only.
and PC serial pin 3 voltage actually is how much??
i using multimeter measure is -10V when connect with my max232 become -9V is it correct??
 

i think your multimeter battery is not working properly change it and check the voltage again.......
 

the multimeter can function...
i try 3 PC same voltage also...
 

if the multimeter battery gone weak then it shows higher voltage, so batter you change the battery of the multimeter and see...
 

i use 2 multimeter to measure same value also too...
could the problem is about the capacitor value??
coz i using 4.7uF.
if i change to 10uF will get different result?
 

yup...
because i saw 1 micro controller book circuit is 4.7uF
 

i connect with 10uF gt leaking voltage from max232

- - - Updated - - -

#define switch PORTB.F1
#define pressed 0

int i;
void main()
{
TRISA = 0xF7;
TRISB = 0xFF;
UART1_Init(9600);
Delay_ms(100);
UART1_Data_Ready();

while(1)
{
if(switch==pressed)
{

PORTA = 0xF7;
Delay_ms(100);


}
else
{
for(i=0;i<30;i++)

{
PORTA = 0xF7;
Delay_ms(100);
PORTA = 0xFF;
Delay_ms(100);
UART1_Write_Text(" ALERT!!!! ");
UART1_Write(10);
UART1_Write(13);
Delay_ms(10);
UART1_Write_Text(" HOUSE 1 ");
UART1_Write(10);
UART1_Write(13);
Delay_ms(10);
UART1_Write_Text(" THIEF BREAK IN!!!! ");
UART1_Write(10);
UART1_Write(13);
Delay_ms(100);

}
}
}
}

this is my code.
 

Sometimes when I make a mistake of the polarity of the Tan capacitor, the volatge drops.
 

i see display some computer language...
and my code set as (alert, house1, thief break in)
but cant display...
last time i using pic board connect can function...

- - - Updated - - -

i see display some computer language...
and my code set as (alert, house1, thief break in)
but cant display...
last time i using pic board connect can function...
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…