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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
08/08/00 04:31
Read: times


 
#4225 - RE: Serial Init
Thanks for all the help! I used all the input and got it to work, but this is what Intel suggested. Note: the caod has been run through an asm program so code errors could be found, and this is a called function, this explains ret.


46 ;Serial Port
47 ;Mode = 1 /8-bit UART
48 ;Serial Port Interrupt = Disabled
49 ;Receive = Enabled
50 ;Auto Addressing = Disabled
8030 51 init_serial:
8030 759850 52 mov SCON, #050h
53 ;Timer 1 is being used to generate baud rates.
8033 758920 54 mov TMOD, #020h
8036 758DFD 55 mov TH1, #0FDh
8039 D28E 56 setb TR1 ;TCON.6
803B C298 57 clr RI ;SCON.0
803D 22 58 ret


List of 5 messages in thread
TopicAuthorDate
Serial Init            01/01/70 00:00      
RE: Serial Init            01/01/70 00:00      
RE: Serial Init            01/01/70 00:00      
RE: Serial Init            01/01/70 00:00      
RE: Serial Init            01/01/70 00:00      

Back to Subject List