Seven Segment With 89C52

view

menampilkan 4 digit terakhir NPM anda :

  • Buka top simulator
  • Select device 89c52
  • Frequency 12 Mhz —-> OK
  • File –> External module setting –> LED
  • No. Seven Segment

ü  Non Multiplexed

ü  Warna pilih salah satu (color display)

ü  Common cathode (type display)

ü  7 segment

  • Klik selection of part lines and number of digit

Lalu, ketikkan seperti gambar dibawah ini !

No. Of Digit

Control Line

Post Line

 

1

Digit 1 Segment aDigit 1 Segment b

Digit 1 Segment c

Digit 1 Segment d

Digit 1 Segment e

Digit 1 Segment f

Digit 1 Segment g

Digit 1 Segment dp

0.0

0.1

0.2

0.3

0.4

0.5

0.6

0.7

2

Digit 2 Segment aDigit 2 Segment b

Digit 2 Segment c

Digit 2 Segment d

Digit 2 Segment e

Digit 2 Segment f

Digit 2 Segment g

Digit 2 Segment dp

1.0

1.1

1.2

1.3

1.4

1.5

1.6

1.7

3

Digit 3 Segment aDigit 3 Segment b

Digit 3 Segment c

Digit 3 Segment d

Digit 3 Segment e

Digit 3 Segment f

Digit 3 Segment g

Digit 3 Segment dp

2.0

2.1

2.2

2.3

2.4

2.5

2.6

2.7

4

Digit 4 Segment aDigit 4 Segment b

Digit 4 Segment c

Digit 4 Segment d

Digit 4 Segment e

Digit 4 Segment f

Digit 4 Segment g

Digit 4 Segment dp

3.0

3.1

3.2

3.3

3.4

3.5

3.6

3.7

ketikkan pada notepad :

$Mod51
org 1H
start: mov P0,#00000110b
mov P1,#00111111b
mov p2,#01100110b
mov p3,#01011011b
sjmp start
end

kemudian simpan file :

file name : ex.asm

save as type : All Files

view

Terus Melangkah Maju Dan Ciptakan Inovasi Terbaru

Posted in Education

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