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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
11/14/06 16:52
Read: times


 
#127974 - Formatted Code
Responding to: ???'s previous message
	ORG	0023h
	LJMP	CARDswipe

	MOV	TMOD,#021h	;sets T1 as 8-bit reload/T0 as 16 bit
	mov	IE,#94h
	MOV	TCON,#14H
	MOV	SCON,#050h	;Sets serial port to mode 1
	MOV	A,PCON
	SETB	ACC.7		;Set Bit 7 SMOD
	MOV	PCON,A
	MOV	TH1,#0F2H	;sets reload value for baud rate
	SETB	TR1		;starts timer

LOOP:	SJMP	$		;Wait here

CARDswipe:
	JNB	RI,CARDswipe	; checek for interupt flag
	MOV	A,SBUF		; move serial data into Acc
	MOV	R0,#01h		;clear the LCD screen
	LCALL	wrLCDcom	; send clear command
	MOV	R0,A		; move ACC data to R0
	LCALL	wrLCDdata	; Write to screen from R0
	lcall	delay_1s	; wait a little
	RETI


The link to the noob guide is http://www.8052.com/users/jonled/noob.pdf

What oscillator frequency?

Jon

List of 23 messages in thread
TopicAuthorDate
Serial interface- Displaying SBUF data on LCD.            01/01/70 00:00      
   what device?            01/01/70 00:00      
      Just the 'integral part' Part of code            01/01/70 00:00      
         you still did not tell the derivative            01/01/70 00:00      
   Formatted Code            01/01/70 00:00      
      Missing code            01/01/70 00:00      
   Delay            01/01/70 00:00      
      Delay, Baudrate, Freq, etc.            01/01/70 00:00      
         Missing Code            01/01/70 00:00      
            Here's the wrLCDcom SR            01/01/70 00:00      
               is DELAY_5_1MS timer based?            01/01/70 00:00      
                  Yes DELAY_5_1MS is timer based            01/01/70 00:00      
                     so, you call one device generating an interrupt fr            01/01/70 00:00      
                        Already tried that            01/01/70 00:00      
                           then keep it that way            01/01/70 00:00      
                  Here's the entire code....            01/01/70 00:00      
                     I quick look, not an analysis            01/01/70 00:00      
   Have a look at this            01/01/70 00:00      
      Deriviative???            01/01/70 00:00      
         Derivative            01/01/70 00:00      
            Oops... Derivative..gotcha            01/01/70 00:00      
               OK            01/01/70 00:00      
                  TI & RI            01/01/70 00:00      

Back to Subject List