
Part of Content :
The microcontroller programming covers ASSEMBLY LANGUAGE Assembly language is of higher level than machine language and hence easier to use. An assembly language code consists of a) Program statement lines b) Comment lines. The correspond to the microcontroller opcodes. These mnemonics are found in the Motorola MC68HC11 programming reference guide and related literature. The are native to the Assembly language. A list of directives is given in Table 1. The directives that you will use often are shown in bold. The contains a value, an expression, an address, or a label that the opcodes or the directives need. The operand could be up to 4 bytes long, separated by commas. Some opcodes or directives do not require operands (inherent mode). A program written in Assembly language is called source file. Its extension is .ASM. When the source file is assembled, two files are generated: MICROCONTROLLER COMMANDS, The 6811 microcontroller has 145 different commands. These commands can be grouped into several categories. The categories and the commands in those categories are listed below: 1) Arithmetic operations: a) Addition: ABA, ABX, ABY, ADCA, ADCB, ADDA, ADDB, ADDD, INC, INCA, INCB, INS, INX, INY b) Subtraction: SBA, SBCA, SBCB, SUBA, SUBB, SUBD, DEC, DECA, DECB, DES, DEX, DEY c) Multiplication: MUL d) Division: FDIV, IDIV 2) Logical operations: (note: logical operations are carried out on a bit by bit basis) a) Standard logical operations: ANDA, ANDB, EORA, EORB, ORAA, ORAB, COM (Boolean inverse), COMA, COMB. SAMPLE PROGRAM IN ASSEMBLY LANGUAGE WITH MCU COMMANDS. Programming FlowChart.

Sponsored Links
Tags :
If you see unrelated pdf files with the description or copyrighted material published, please report to us, we'll correct/delete it it as soon as possible.NONE OF THOSE MATERIALS ARE HOSTED IN THIS SERVER NOR UPLOADED BY ME IN SOMEONE'S SERVERS.  Read our DISCLAIMER for more detail.
We are neither affiliated with authors and brands nor responsible for its content and change of content.
Information contained herein is provided "as is" without warranty of any kind, either expressed or implied, including any warranty of merchantability or fitness for a particular purpose. In no event shall ANYONE be held liable for any loss of profit, special, incidental, consequential, or other similar claims.