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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
04/04/05 11:07
Modified:
  04/04/05 11:14

Read: times


 
Msg Score: 0
 -1 Gimmee Code
 +1 Underrated
#90946 - try this
Responding to: ???'s previous message
hello dear

if it is matter of just reading five keys than ladder type keyboard will solve your problem,connect dirctly five keys
one side two five port pins say from port3.0 to port3.4(pin no
10 to 14) connect other side of switch to 5volt ground,now try
following code


port0 data 080h
port1 data 090h
port2 data 0a0h
port3 data 0b0h
sp data 081h
ie data 0a8h
tcon data 088h
psw data 0d0h
b data 0f0h
acc data 0e0h
tmod data 89h
tl1 data 8bh
th1 data 8dh
tl0 data 8ah
th0 data 8ch
dpl data 082h
dph data 083h
org 0000h
ljmp program_start ;bypass interupt table
org 0030h
program_start:
mov port0,#0ffh
mov port3,#0ffh
mov port1,#0ffh
mov port2,#0ffh
main_keypress:
jnb port3.0,keypress1
jnb port3.1,keypress2
jnb port3.2,keypress3
jnb port3.3,keypress4
jnb port3.4,keypress5
jnb port3.5,keypress6
sjmp main_keypress
keypress1:
; your function will go here
sjmp main_keypress
keypress2:
; your function will go here
sjmp main_keypress
keypress3:
; your function will go here
sjmp main_keypress
keypress4:
; your function will go here
sjmp main_keypress
keypress5:
; your function will go here
sjmp main_keypress

the code is according to asm51 if you want to assemle on a51 change accordingly
more over cygnal's c8051f020 is not a better choice for beginners it is very high end derivative of 8051 to start i will
recommend atmels 89c51 or 89s51 mcu.


kuldeep









List of 40 messages in thread
TopicAuthorDate
query regarding 8051            01/01/70 00:00      
   But do you know C?            01/01/70 00:00      
      Know assembly, take up C            01/01/70 00:00      
   help regarding 8051            01/01/70 00:00      
      8052.com is the right place            01/01/70 00:00      
         query regarding 8051            01/01/70 00:00      
            A good book.            01/01/70 00:00      
               query regading 8051            01/01/70 00:00      
                  Insufficient Information.            01/01/70 00:00      
                     keyboard details            01/01/70 00:00      
                        Discussed Earlier Use Search....            01/01/70 00:00      
                  Slow down ...            01/01/70 00:00      
                     the awful part            01/01/70 00:00      
            assembly code refrences            01/01/70 00:00      
               query regarding 8051            01/01/70 00:00      
                  Keil.com is a good resource for Assembly            01/01/70 00:00      
                     Assembler, not Compiler, not IDE            01/01/70 00:00      
                        Yea the KEIL IDE            01/01/70 00:00      
                           Maybe nice, but certainly not NEEDED!            01/01/70 00:00      
                  try this            01/01/70 00:00      
            download the metalink            01/01/70 00:00      
   contradiction            01/01/70 00:00      
   a bit of advice..            01/01/70 00:00      
      understatement of the year            01/01/70 00:00      
         by all probabilities..            01/01/70 00:00      
   got code            01/01/70 00:00      
   details of the application            01/01/70 00:00      
      program i sent            01/01/70 00:00      
      you have it all already            01/01/70 00:00      
         getting started            01/01/70 00:00      
            he is using Keil            01/01/70 00:00      
               Please Be Informed...            01/01/70 00:00      
                  Ok rephrase            01/01/70 00:00      
                     Yes, but...            01/01/70 00:00      
                  Thanks, Michael            01/01/70 00:00      
                     a personal opinion            01/01/70 00:00      
                        Similar Opinion            01/01/70 00:00      
                           re Similar Opinion            01/01/70 00:00      
                              Adding Keil Debug DLL            01/01/70 00:00      
                           Link To SiLabs Keil Debug DLL            01/01/70 00:00      

Back to Subject List