URL
https://opencores.org/ocsvn/8051/8051/trunk
[/] [8051/] [trunk/] [asm/] [serial_test.asm] - Diff between revs 131 and 155
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 131 |
Rev 155 |
Line 98... |
Line 98... |
mov a, #000h ;
|
mov a, #000h ;
|
movx @r0,a ;
|
movx @r0,a ;
|
mov 7fh, #001h ; error 1
|
mov 7fh, #001h ; error 1
|
nop ;
|
nop ;
|
nop ;
|
nop ;
|
|
nop ;
|
|
nop ;
|
mov c, p3.0 ;
|
mov c, p3.0 ;
|
jc error ;
|
jc error ;
|
mov 7fh, #002h ; error 2
|
mov 7fh, #002h ; error 2
|
mov b,#000h ;
|
mov b,#000h ;
|
mov a, #0d3h ;
|
mov a, #0d3h ;
|
Line 336... |
Line 338... |
mov c, scon.2 ;
|
mov c, scon.2 ;
|
jc error1 ;
|
jc error1 ;
|
;
|
;
|
; transmit / receive
|
; transmit / receive
|
;
|
;
|
|
mov scon, #0d8h ;
|
mov b,#000h ;
|
mov b,#000h ;
|
mov ie, #082h ;
|
mov ie, #082h ;
|
mov 7fh, #012h ; error 12
|
mov 7fh, #012h ; error 12
|
mov a, #0d0h ; external mode 3 receive
|
mov a, #0d0h ; external mode 3 receive
|
movx @r0, a ;
|
movx @r0, a ;
|
mov scon, #0d8h ;
|
|
mov r2, #097h ;
|
mov r2, #097h ;
|
setb tcon.4 ;
|
setb tcon.4 ;
|
setb tcon.6 ;
|
setb tcon.6 ;
|
mov sbuf, r2 ; start transmition
|
mov sbuf, r2 ; start transmition
|
mov a, #0d5h ;
|
mov a, #0d5h ;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.