Ditulis Oleh : YK69 Elektro
Judul : Mode Pengalamatan ATMEL AT89S51/AT89S52
Mode Pengalamatan ATMEL AT89S51/AT89S52
All the family members of ATMEL Microcontroller 89S51/52 have the same instruction set. This instruction set has been optimized for 8-bit control applications, and provide a variety of fast addressing modes for accessing the internal RAM and external RAM
Addressing mode 89S51/52 ATMEL Microcontroller family is as follows
Immediate Addressing
Immediate addressing is so-named because the value to be stored in memory immediately follows the operation code in memory. That is to say, the instruction itself dictates what value will be stored in memory.
Example:Immediate addressing is so-named because the value to be stored in memory immediately follows the operation code in memory. That is to say, the instruction itself dictates what value will be stored in memory.
- MOV A, # 1AH ; Fill in the accumulator with data 1AH
- MOV DPTR, # 10H ; Fill in the register DPTR with data 10H
- MOV R1, #30H ; Fill in the register R1 with data 30H
Direct Addressing
Direct addressing is so-named because the value to be stored in memory is obtained by directly retrieving it from another memory location.
Example:- MOV A,15H ; Read the data Internal RAM address 15 H and store it in the Accumulator.
- MOV 90H, A, Read the data Accumulator and store it in the SFR/Port (whose address 90H)
Indirect Addressing
In Indirect Addressing, Operands pointing to a register that contains the memory address location to be used in the operation. To implement the indirect addressing used symbol @. Addressing this type usually used for writing, transfer or reading some data in memory locations. AT89C51 has a 16-bit register (DPTR) which can be used to perform indirect addressing
Example:
- ADD, A, R1 ; Add data internal RAM which is found at the address indicated by R1 into the data accumulator
- DEC @ R1 ; Reduce the contents of RAM address indicated by the register R1
- MOVX, ADPTR, A ; read data Accumulator and store it in the external memory location indicated by DPTR
Bit Addressing
Bit addressing is the appointment of bit locations address both the internal RAM or hardware using the symbol dot (.).
Example:- SETB p1.7; Set port 1.7 bits active
- SETB TR1: Set TR1 (Timer 1 active)
Operator
Operators used to perform action arithmetic, logic shifting bits and others at the Operands. Some operators are available including
Arithmetic operators
- * For multiplication
- / For division
- + For addition
- - For subtraction
Operator Logic
- Poerasi OR to OR
- AND to AND operation
- XOR to XOR operations
- EXOR for EXOR operation
- NOT to invert operation
Special Operations
- Shr 16 ; bit shift to right
- SHL 16 ; bit shift to the left
- HIGH ; bits select the bag
- LOW ; select the lower bit
- EQ = equal to
- NET <> ; is not equal to
- Fl
<= ; less than or equal to · GT> more GE> = ; greater than or equal to
Demikianlah Artikel dari kami yang berjudul Mode Pengalamatan ATMEL AT89S51/AT89S52,apakah anda menyukainya ? mudah-mudahan artikel ini bisa memberi manfaat untuk anda semua.
Anda sedang membaca artikel Mode Pengalamatan ATMEL AT89S51/AT89S52 dan artikel ini url permalinknya adalah https://yk69.blogspot.com/2010/03/mode-pengalamatan-atmel-at89s51at89s52.html Artikel yang anda cari Lainnya bokep, video bokep, streaming bokep, streaming , videos, porn, videos porn, kimcil, bugil, telanjang, abg, mesum, tetek, memek, toket, masturbasi, bmf, download, perkosa, kepergok, mesum, pemerkosaan, kepergok mesum, download video porn, download video bokep, bokep terbaru, streaming bokep terbaru, jilbab, semok, ngentot, indo, janda, asia, orgasme, meki, sex, video sex, spg, streaming mesum, ml, tante, streaming abg, cabe cabean, cantik, manis, bokep indo, bokep cinta, streaming mesum, hot bokep, bokep hot, abg bugil, anak smp, bocah smp, anak sma, bocah sma, indonesia, 3gp'
- 3VDC Stereo Headphone Amplifier by IC LM4910 - New!
- 9 Volt Portable Headphone Amplifier Circuit
- Audio Peak Level Indicator By Op-Amp
- Op-Amp 6-Line Audio Mixer Circuit
- Rangkaian 11-90 hz Subwoofer Filter Using TL072 Op-Amp
- Rangkaian Alat Bantu Pendengaran
- Rangkaian Audio Surround Decoder
- Power Meter Schematic For Audio Amplifier
- Sound Level (Decibel) Meter Circuit
- Ukuran Box Subwoofer 10" - New!
- 9 Second Countdown Power-On Relay With 7 segment Display
- DC Motor Controller Circuit Using 741 Op-Amp
- Darlington Pair to Drive DC motor Circuit
- Simple Switch On Time Delay Circuit
- Stepper Motor Controller using IC 4027 - New!
- 100Watt Inverter Circuit by IRF44 Mosfet
- 12VDC to 220VAC Inverter Circuit Using IC 555
- 12VDC – 220VAC Inverter Using Cmos CD4047
- 500 Watt Inverter 12VDC to 220VAC
- 25V Capacitor Bank for OCL Amplifier
- 30W Mini Mosfet Amplifier
- 35W Audio Amplifier Circuit by STK082
- 4,8W Class-A MOSFET Amplifier - New!
- BA5417 Stereo Power Amplifier Circuit - New!
- LM383 - Car Audio Amplifier Circuit - New!
- Power Meter Schematic For Audio Amplifier
- Rangkaian 400W MOSFET Amplifier
- Rangkaian Power Amplifier Blazer 1000 Watt - New!
- Sound Level (Decibel) Meter Circuit
- 9 Second Countdown Power-On Relay With 7 segment Display
- Driver Relay Menggunkan Transistor
- Light/Dark Switch With Relay
- Simple Switch On Time Delay Circuit
- Simple switch-Off Time Delay Circuit
- Car Parking Sensor circuit Using Infra-Red LED
- Rangkaian Pendeteksi Angin - New!
- Smoke Detector circuit Using LDR
- High Voltage Meter or Probe Design
- Power Meter Schematic For Audio Amplifier
- Rangkaian Ampere Meter Digital
- Rangkaian Transistor Tester
- Sound Level (Decibel) Meter Circuit
0 Response to "Mode Pengalamatan ATMEL AT89S51/AT89S52"
Post a Comment