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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/20/02 11:05
Read: times


 
#29434 - RE: 4 bit LCD initialisation / Peter
Is your uC an 8051 compatible type?

If the answer is yes, I think your code is very strange, at least in the reset vector entry:

ORG 00h ;Reset
ACALL MAIN ; Starts program

Why a sobroutine call where a ljmp is the commonly used option?.

What will happen when your uC executes the RET instruction in the following lines? :

MAIN: ACALL LCD_iNIT
RET

I think it will execute the lines:

Dly1ms: PUSH ACC MOV ACC,R0 ; R0 use as a counter
MOV R0,#0
(...)

Is this what you really want?.


Regards,
Alfredo.


List of 17 messages in thread
TopicAuthorDate
4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation / Peter            01/01/70 00:00      
RE: 4 bit LCD initialisation / Peter            01/01/70 00:00      
RE: 4 bit LCD initialisation / Peter            01/01/70 00:00      
RE: 4 bit LCD initialisation / Peter            01/01/70 00:00      
RE: 4 bit LCD initialisation / Peter            01/01/70 00:00      
   RE: 4 bit LCD initialisation / Peter            01/01/70 00:00      
RE: 4 bit LCD initialisation            01/01/70 00:00      
RE: 4 bit LCD initialisation : My C code            01/01/70 00:00      

Back to Subject List