66528

Реализация функций времени

Лабораторная работа

Информатика, кибернетика и программирование

Карта распределения ресурсов R0 – количество отрезков времени R1 - текущее значение адреса ячейки РПД Ячейки РПД 20h – 29h – ячейки для записи результата

Русский

2014-08-22

200.77 KB

0 чел.

Быков В.О.,  группа 822 М

Лабораторная работа № 3

Реализация функций времени. Часть 1

Задание 1

 mov tmod,#01000000b

 setb tr1

 m1:

 mov a,tl1

 CJNE a,#6,m1

 clr tr1

 mov r7,a  

           m0: jmp m0

Блок – схема алгоритма программы

Задание 2

 mov tmod,#00000010b

 mov tl0,#155

 mov th0,#155

 setb tr0

 m2:

 JNB tf0,m2

 CPL p3.4

 CLR tf0

 jmp m2

Блок – схема алгоритма программы

Задание 3

 

mov r1,#20h

 mov r0,#10

 mov tl1,#160

 mov th1,#160

 mov tmod,#00100110b

 mov tcon,#01011100b

 m:

 JNB tf1,m

 mov tcon,#00001100b

 mov @r1,tl0

 mov tl0,#0

 inc r1

 mov tcon,#01011100b

 DJNZ r0,m

           m1: jmp m1

Карта распределения ресурсов

R0 – количество отрезков времени

R1 - текущее значение адреса ячейки РПД

Ячейки РПД

20h – 29h – ячейки для записи результата

Блок – схема алгоритма программы

 


 

А также другие работы, которые могут Вас заинтересовать

84394. Zahiriddin Muhammad Bobur (1483-1530) 282.75 KB
  In 1494 when Bobur was only 12 years old, he became a ruler. In 1503–1504 he conquered Afghanistan. During 1519 – 1525s he tried to conquer India five times. He became the founder of Bobur’s Empire which lasted more than three centuries (1526-1858).
84395. Mirzo Ulugh Beg (1394-1449) 437.58 KB
  Ulugh Beg 1394-1449 Tartar Astronomer and Mathematician Ulugh Beg made Samarkand one of the leading cultural and intellectual centers of the world. In that city he established a madrasa (Islamic institution of higher learning) that emphasized astronomical studies.
84397. Abu Ali Ibn Sino (Avicenna) (980-1037) 819.35 KB
  Abu Ali Ibn Sino is the pride of Central Asia and one of the greatest scientists. Besides medicine he was occupied with mathematics, logic and philosophy. He was born in Bukhara in the village of Afshana in 980 and got his education in Bukhara.
84398. Abu Ali Ibn Sino 28.98 KB
  Abu Ali Ibn Sino is well-known in Europe by the name of “Avicenna” the naturalist Karl Linney named a type of plant “Avicenna” in honour of him. To sum up we can say that Abu Ali Ibn Sino was an encyclopaedic school whose contribution to world civilization was incomparable.
84399. Kamoliddin Behzod (1455-1537) 30.91 KB
  The member of Renaissance and Alisher Navoi’s apprentice, the great artist and miniaturist Kamoliddin Behzod was born in 1455 in poor family in Heart. He lost his parents as a child and was brought up by the famous painter Mirak Nakkosh. He learned from him the secrets of carving.
84400. Outstanding people of Uzbekistan Abu-Rayhon Beruniy 117.38 KB
  Abu-Rayhon Beruniy – a remarkable scientist, amazing with variety of his scientific interests, boldness of idea, the author of more than 150 works devoted to actual issues of natural sciences, philosophy, history, philology, great encyclopaedist – the thinker, the humanist of the Middle Ages epoch.
84401. Muhammad ibn Muso al-Khorazmiy 164.28 KB
  Muhammad ibn Muso al-Khorazmiy (783 - 850) Nickname Al – Khorezmi specifies his native land – the Central Asian state Khoresm (nowadays territory of Uzbekistan), Bin Mussa – son of Mussa, and one of nicknames of the scientist – Al – Madjusi– speaks about his origin from a sort of magicians...
84402. Alisher Navoi (1441-1501) 163.92 KB
  An ingenious poet and the thinker, the musician and the artist, the teacher and the scientist, a great statesman and one of the most cultural persons of his time. Alisher Navoi was the conventional head of the cultural life of Herat, the patron of numerous representatives of sciences, arts and cultures.