Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/15/00 12:03
Read: times


 
#1505 - RE: keypad
> i only can read the entire port and
> not only p10 trought p14
[snip]
> anyone knows how can i read the value
> for only 5 bits occupied for the
> keypad?

It's a plain ANSI C, so your question
in an 8052-dedicated board is quite offtopic.
Anyway, the syntax is simple:

switch (P1 & 0x1F) {
case 0x01:
{...}

--
Tomas

List of 7 messages in thread
TopicAuthorDate
keypad            01/01/70 00:00      
RE: keypad            01/01/70 00:00      
RE: keypad            01/01/70 00:00      
RE: keypad            01/01/70 00:00      
RE: keypad            01/01/70 00:00      
RE: keypad            01/01/70 00:00      
RE: keypad            01/01/70 00:00      

Back to Subject List