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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/14/10 08:19
Read: times


 
#173149 - PROBLEM FIXED - Working now
Responding to: ???'s previous message
the following code did it .


$MOD51
;
; The processor clock speed is 11.059MHz
; Cycle time is 1.1ms

	input_port  equ p2.7
	output_port equ p2.0

	org	00
	ljmp	main

	org 100h
main:

	setb	input_port		;prepare p2.7 for input
        setb    output_port
loop:	mov   	c,input_port		;read the state of p2.7 and
					;store in the carry flag
	cpl	c			;compliment the input
	mov	output_port, c		;transfer p2.7 status to p2.0
	sjmp 	loop

 	end 
 



List of 5 messages in thread
TopicAuthorDate
problems programming the P89V51            01/01/70 00:00      
   here is the schematic I am following            01/01/70 00:00      
      EA            01/01/70 00:00      
         tied EA high still no luck            01/01/70 00:00      
   PROBLEM FIXED - Working now            01/01/70 00:00      

Back to Subject List