help in UART Communication

Status
Not open for further replies.

mragab47

Newbie level 4
Joined
Nov 11, 2009
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
egypt
Activity points
1,315
i connect switch at RB1 and i need to send data to pc when switch off

and that my code

void main(){

portb.rb1=0;
trisb.rb1=1;
uart1_Init(9600);

do{
if (portb.rb1==1){
uart1_write("7");}
}while(1);

}


and i sure that all connections are true

i work on MikroC and Proteus
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…