+-----------------------------------------------------------------------+ | The information transmitted is intended only for the person or entity | | to which it is addressed and may contain confidential and/or | | privileged material. Any review, retransmission, dissemination or | | other use of, or taking of any action in reliance upon, this | | information by persons or entities other than the intended recipient | | is prohibited. If you received this in error, please contact the | | sender and delete the material from any computer. | +-----------------------------------------------------------------------+ On Wed, 19 Dec 2001, Salah wrote: > Hi List, > Any person can help in the following C problem please. > I am using PICC with MPLAB to program the PIC16f84A ...the problem is : > > > +-----------------------------------------------------------------------+ | The information transmitted is intended only for the person or entity | | to which it is addressed and may contain confidential and/or | | privileged material. Any review, retransmission, dissemination or | | other use of, or taking of any action in reliance upon, this | | information by persons or entities other than the intended recipient | | is prohibited. If you received this in error, please contact the | | sender and delete the material from any computer. | +-----------------------------------------------------------------------+ On Wed, 19 Dec 2001, Salah wrote: > Hi List, > Any person can help in the following C problem please. > I am using PICC with MPLAB to program the PIC16f84A ...the problem is : > > > +-----------------------------------------------------------------------+ | The information transmitted is intended only for the person or entity | | to which it is addressed and may contain confidential and/or | | privileged material. Any review, retransmission, dissemination or | | other use of, or taking of any action in reliance upon, this | | information by persons or entities other than the intended recipient | | is prohibited. If you received this in error, please contact the | | sender and delete the material from any computer. | +-----------------------------------------------------------------------+ On Wed, 19 Dec 2001, Salah wrote: > Hi List, > Any person can help in the following C problem please. > I am using PICC with MPLAB to program the PIC16f84A ...the problem is : > > > +-----------------------------------------------------------------------+ | The information transmitted is intended only for the person or entity | | to which it is addressed and may contain confidential and/or | | privileged material. Any review, retransmission, dissemination or | | other use of, or taking of any action in reliance upon, this | | information by persons or entities other than the intended recipient | | is prohibited. If you received this in error, please contact the | | sender and delete the material from any computer. | +-----------------------------------------------------------------------+ On Wed, 19 Dec 2001, Salah wrote: > Hi List, > Any person can help in the following C problem please. > I am using PICC with MPLAB to program the PIC16f84A ...the problem is : > > > +-----------------------------------------------------------------------+ | The information transmitted is intended only for the person or entity | | to which it is addressed and may contain confidential and/or | | privileged material. Any review, retransmission, dissemination or | | other use of, or taking of any action in reliance upon, this | | information by persons or entities other than the intended recipient | | is prohibited. If you received this in error, please contact the | | sender and delete the material from any computer. | +-----------------------------------------------------------------------+ On Wed, 19 Dec 2001, Salah wrote: > > while(RA4) { PORTA = Key1(); } // S1 > > PORTA = 0xff; // S2 > > while(1) > { > do{ > Receive(); > temp = rData; > temp &= 0xE0; > temp = Device - temp; > }while(temp); > > keySelector = rData & keyMask; > > switch(keySelector) > { > case 0x00 : PORTA = Key7();break; > case 0x01 : PORTA = Key6();break; > case 0x02 : PORTA = Key5();break; > case 0x03 : PORTA = Key4();break; > case 0x04 : PORTA = Key3();break; > case 0x05 : PORTA = Key2();break; > case 0x06 : PORTA = Key1();break; > case 0x07 : PORTA = Key0();break; > } > } > }/* End main*/ > > Dose S1 go to infinite loop as long as RA4 = 1 Yes. This is exactly what the WHILE loop does (or maybe until watchdog resets...) > or it will be excuted for > one time and go to S2 ? Nope. If RA4 == 0 then it won't be executed at all. I hope this helps. Imre > > thanx in advance. > Regards > Salah. > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics