| 
Tutorial
AVR
Best Seller Kits and Trainer
Programmer and
Target 89s51
Simple
Mikrokontroller 89s51 Trainer
Standart
Mikrokontroller 89s51 Trainer
Super
Mikrokontroller Trainer 89S52
Dot
matrix Trainer
ATMEGA8
Programmer
ISP USB
|
|
Interfacing microcontroller MCS51 with Dot Matrix
Display
Listing Program Assembly MCS51
RST bit P2.0
SHcp bit P2.1
STcp bit P2.2
DataDS bit P2.3
Row equ P0
;
mov P0,#11111111b
mov dptr,#text1
call _reset
start:
clr DataDS
call control
mov R1,#42
mov DPTR,#text1
loop:
setb DataDS
clr A
MOVC A,@A+DPTR
CPL A
mov P0,A
call control
call delay
mov Row,#11111111b
inc DPTR
djnz R1,loop
sjmp start
;
_reset:
setb RST
clr RST
setb RST
ret
;
control:
clr SHcp
setb SHcp
clr STcp
setb STcp
ret
;
delay: mov R0,#10
delay1: mov R2,#10
djnz R2,$
djnz R0,delay1
ret
;
Text1:
db 07Fh,40h,40h,40h,40h,80h ; L
db 07Ch,012h,011h,012h,07Ch,080h ; A
db 07Fh,049h,049h,049h,036h,080h ; B
db 000h,030h,030h,000h,000h,000h ; .
db 03Fh,040h,040h,040h,03Fh,080h ; U
db 03Eh,041h,041h,041h,022h,080h ; C
end
|
|
Free
Download |