Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

HMS91C8032 Datasheet(PDF) 14 Page - Hynix Semiconductor

Part # HMS91C8032
Description  HYNIX SEMICONDUCTOR INC. 8-BIT SINGLE-CHIP MICROCONTROLLERS
PDF  157 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  HYNIX [Hynix Semiconductor]
Direct Link  http://www.skhynix.com/kor/main.do
Logo HYNIX - Hynix Semiconductor

HMS91C8032 Datasheet(HTML) 14 Page - Hynix Semiconductor

Back Button HMS91C8032 Datasheet HTML 10Page - Hynix Semiconductor HMS91C8032 Datasheet HTML 11Page - Hynix Semiconductor HMS91C8032 Datasheet HTML 12Page - Hynix Semiconductor HMS91C8032 Datasheet HTML 13Page - Hynix Semiconductor HMS91C8032 Datasheet HTML 14Page - Hynix Semiconductor HMS91C8032 Datasheet HTML 15Page - Hynix Semiconductor HMS91C8032 Datasheet HTML 16Page - Hynix Semiconductor HMS91C8032 Datasheet HTML 17Page - Hynix Semiconductor HMS91C8032 Datasheet HTML 18Page - Hynix Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 14 / 157 page
background image
HMS91C8032/97C8032
NOV., 2001 Ver 1.02
11
MOVE
B,#10
DIV
AB
SWAP
A
ADD
A,B
Dividing the number by 10 leaves the tens digit in the low nibble
of the Accumulator, and the ones digit in the B register. The
SWAP and ADD instructions move the tens digit to the high nib-
ble of the Accumulator, and the ones digit to the low nibble.
3.5 Data Transfers
Internal RAM
Table 3-3 shows the menu of instructions that are available for
moving data around within the internal memory spaces, and the
addressing modes that can be used with each one.
The MOV <dest>, <src> instruction allows data to be transferred
between any two internal RAM or SFR locations without going
through the Accumulator. Remember, the Upper 128 bytes of
data RAM can be accessed only by indirect addressing, and SFR
space only by direct addressing.
Note that in HMS9XC8032 devices, the stack resides in on-chip
RAM, and grows upwards. The PUSH instruction first incre-
ments the Stack Pointer (SP), then copies the byte into the stack.
PUSH and POP use only direct addressing to identify the byte be-
ing saved or restored, but the stack itself is accessed by indirect
addressing using the SP register. This means the stack can go into
the Upper 128 bytes of RAM, if they are implemented, but not
into SFR space.
The Data Transfer instructions include a 16-bit MOV that can be
used to initialize the Data Pointer (DPTR) for look-up tables in
Program Memory.
The XCH A, <byte> instruction causes the Accumulator and ad-
dressed byte to exchange data. The XCHD A, @Ri instruction is
similar, but only the low nibbles are involved in the exchange.
To see how XCH and XCHD can be used to facilitate data manip-
ulations, consider first the problem of shifting and 8-digit BCD
number two digits to the right. Figure 3-2 shows how this can be
done using XCH instructions. To aid in understanding how the
code works, the contents of the registers that are holding the BCD
number and the content of the Accumulator are shown alongside
each instruction to indicate their status after the instruction has
been executed.
After the routine has been executed, the Accumulator contains
the two digits that were shifted out on the right. Doing the routine
with direct MOVs uses 14 code bytes. The same operation with
XCHs uses only 9 bytes and executes almost twice as fast.
To right-shift by an odd number of digits, a one-digit must be ex-
ecuted.
Figure 3-3 shows a sample of code that will right-shift a BCD
number one digit, using the XCHD instruction. Again, the con-
tents of the registers holding the number and of the accumulator
are shown alongside each instruction.
MNEMONIC
OPERATION
ADDRESSING MODES
Dir
Ind
Reg
Imm
MOV A,<src>
A = <src>
XXX
X
MOV <dest>,A
<dest> = A
XXX
MOV <dest>,<src>
<dest> = <src>
XXX
X
MOV DPTR,#data16
DPTR = 16-bit immediate constant
X
PUSH <src>
INC SP:MOV “@SP”, <src>
X
POP <dest>
MOV <dest>, “@SP”:DEC SP
X
XCH A,<byte>
ACC and <byte> exchange data
X
X
X
XCHD A,@Ri
ACC and @Ri exchange low nibbles
X
Table 3-3 Data Transfer Instruction that Access Internal Data Memory Space



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com