Vous êtes sur la page 1sur 172
MICROPOWER-i User Manual Version - 20 Technical Clarification / Suggestion : A/e Technical Support Division, ‘Vi Microsystems Pvt ltd. Mi ‘Chennai - 600 096, WM stems Dt Ltd, Ph: 044-2496 3142, 044-5201 5899 Chennai - 96 | PREFACE The "Mpi (85) User Manual/Workbeok" has been devised for INTEL 8085A CPU on Micropower-i. It shall serve as an indispensable adid in the programming aspects based in software, hardware and system oriented functions. The Manual has been formulated withmneye to the requirement of the beginner and hence has a whole complement of easily comprebendable examples which are supplemented by challenging exercises for you to enhance your ingemuity. Chapter 1 provides an introduction to the Addresing Modes of8085. Chapter 2 is a discussion on the Software programming features with a glimpse into all the arithmetic, logical primitigves offered by the 8085 Chapter 3 is a window into the field of interfacing or hardware programming with many of the peripherals of the INTEL family. Here the focus is on the programming aspect of the peripherals. Chapter 4 is the further step towards transforming you into a seasoned programmer. Herein you find typical application examples which employ more than a single peripheral Chapter 5 is the final contribution and this introduces you to the facilities offered by the trainer for system programming. The Appendices provide the 8085 Instruction Set, ASCII and Hex Conversion Tables. We are rightly confident that working through this manual in all sincerity you will become well versed wioth 8085. In case of any difficulty, you are requested to consult our Manual "CAT #MPI-85/80-001". Suggestions are welcome for further improvement on this Manual. Write to: The Customer-Support Division, Vi Microsystems Dvt. ltd. Plot No.75, Electronics Estate, Perungudi, Chennai - 600 096. Phone: (044) 496 1842, 496 1852. (044) 496 1536. imicro@vsnl.com CONTENTS CHAPTER 1, 8085- A PROFRAMMING OVERVIEW 1.1 Addressing Modes 1 2. SOFTWARE EXAMPLES 2.1 Introduction 21 2.2 Using line assembler 22 2.3. Experiment 1 - One's complement 2-5 2.4 Experiment 2. - Mask off Most Significant Four Bits 27 2.5 Experiment 3 - Set Individual Bits 2-9 2.6 Experiment 4 - Packed to Unpacked 2-10 2.7 Experiment 5 - Logical Operations 213 2.8 Experiment 6 - Addition of Two Hex Numbers 215 2.9 Experiment 7 - Substraction of Two Hex Numbers 2-18 2.10 Experiment 8 - 8-bit by 8-it Multiplication 2.20 2.11 Experiment 9 - 8-bit by 8-bit Division 2.23 2.12 Experiment 10- Multiprecision Addition (24-Bit) 227 2.13 Experiment 11- Biggest numbers in an Array 231 2-14 Experiment 12- Arrange in Descending Order 235 2-15 Experiment 13- BCD To Hex Conversion 2-40 2-16 Experiment 14- Hex to Decimal conversion 2-42 2.17 Experiment 15- ASCII to Decimal Conversion 247 2.18 Experiment 16- Delay Loops 251 2.19 Experiment 17- Sum of "N" Elements 253 2.20 Experiment 18- Subroutines 2-57 2.21 Experiment 19- Testing Flags 2-59 3. | HARDWARE EXAMPLES 3.1 Introduction 3-1 3.2 The Programmable Interval Timer (8253) 3-1 Example 1 - Square wave generation using 8253 3-6 3.3 Usart (8251) 3-7 Example 2 - Transmitting and Receiving a Character 3:16 3.4 Programmable Peripheral Unterface (8255) 3417 Example 3 - Square Wave Generation 323 3.5 Programmable Interrupt Controller 3-24 Example 4 - Interrupt Generation 3-33 3.6 Liquid crystal alphanumeric diaplay interface 334 Example 5 - Display A string in LCD 32

Vous aimerez peut-être aussi