#134283 - mk2007 - Thu Jul 12, 2007 8:14 am
Hi friends,
in my program i have been using general purpose io to communicate one switch..
so i initialise so(register) is output ..
i mean my register for generla io is REG_R = 0x8088;
after that whenever i prees switch i display 1 and then i count everytime i press ..once the count comes to 5 , i need to send send the output thru so..
(i already configured this one.)
while(1)
{
if(!(REG_R & 1))
while (!(REG_R & 1));
total = total + 1;
if (total >= 5 )
{
???????????????????????
}
so how to write for sendback the output.. (i put the question mark in the above code)..
i couldn't catch the exact one..
if u have idea or information please pass to me..
waiting for your valuable reply..
with regards,
mk...
in my program i have been using general purpose io to communicate one switch..
so i initialise so(register) is output ..
i mean my register for generla io is REG_R = 0x8088;
after that whenever i prees switch i display 1 and then i count everytime i press ..once the count comes to 5 , i need to send send the output thru so..
(i already configured this one.)
while(1)
{
if(!(REG_R & 1))
while (!(REG_R & 1));
total = total + 1;
if (total >= 5 )
{
???????????????????????
}
so how to write for sendback the output.. (i put the question mark in the above code)..
i couldn't catch the exact one..
if u have idea or information please pass to me..
waiting for your valuable reply..
with regards,
mk...