Jam Digital Simple – Microcontroller AT51

;coding oleh Tommy Agustianto

org    0000h
reset     mov    r0,00h
mov    r1,00h
mov    r2,00h
mov    a,00h
mov    p0,r0
mov    p1,r1
mov    p2,r2
loncat    clr    c
mov    p0,r0
mov    a,r0
inc    a
da    a
mov    r0,a
cjne    r0,#60h,loncat
mov    r0,#00h
mov    a,#00h
clr    c
mov    p1,r1
mov    a,r1
inc    a
da    a
mov    r1,a
cjne    r1,#60h,loncat
mov    r1,#00h
mov    a,#00h
clr    a
mov    p2,r2
mov    a,r2
inc    a
da    a
mov    r2,a
cjne    r2,#24h,loncat
sjmp    reset
end

;lumayan neh….buat yang lagi blajar basic micon

Advertisements
Jam Digital Simple – Microcontroller AT51

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s