Jul 10, 2010 #1 M 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
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
Jul 10, 2010 #2 Tahmid Advanced Member level 6 Joined Jun 17, 2008 Messages 4,756 Helped 1,798 Reputation 3,588 Reaction score 1,656 Trophy points 1,413 Location Berkeley, California Activity points 30,584 Hi, Where exactly is your problem?