|
|
Número de pieza | 68HCS12 | |
Descripción | Address Space | |
Fabricantes | ETC | |
Logotipo | ||
Hay una vista previa y un enlace de descarga de 68HCS12 (archivo pdf) en la parte inferior de esta página. Total 11 Páginas | ||
No Preview Available ! EE 308
Spring 2003
68HCS12 Address Space
68HCS12 has 16 address lines
¡£¢¥¤
68HCS12 can address
distinct locations
For 68HCS12, each location holds one byte (eight bits)
68HCS12 can address ¡£¢¥¤ bytes
¡ ¢¦¤¨§ ©©
¡¢¦¤ §
¡¤
¡¢¦ §
©
!#"$¡ %§
©&
KB
!('
(
§
¡ ¢¦¨§
!#"¡ 0)
68HCS12 can address 64 KB
www.DataSheet4U.com
1
1 page EE 308
Spring 2003
68HCS12 ALU
Arithmetic Logic Unit (ALU) is where instructions are executed.
Examples of instructions are arithmetic (add, subtract), logical
(bitwise AND, bitwise OR), and comparison.
68HCS12 has two 8-bit registers for executing instructions. These
registers are called A and B.
For example, the HCS12 can add the 8-bit number stored in B to
the eight-bit number stored in A using the instruction ABA (add
B to A):
AB
COMBINATIONAL
BLOCK
(ADD B TO A)
CONTROL
(0x1806 = ABA)
CLOCK
When the control unit sees the sixteen-bit number 0x1806, it tells
the ALU to add B to A, and store the result into A.
www.DataSheet4U.com
5
5 Page EE 308
Spring 2003
Assembling an Assembly Language Program
A computer program called an assembler can convert an assem-
bly language program into machine code.
The assembler we use in class is from a company called Cosmic.
To assemble the above program using the Cosmic assembler, we
must first create a file called test.lkf which tells the assem-
bler where to put things in memory. Our test.lkf file would
look like this:
# Link file for test program
+seg .text -b 0x1000 -n .text # program start address
+seg .data -b 0x1100 -n .data # data start address
test.o
# application program
To assemble the program, use the following commands:
ca6812 -a -l -xx -pl test.s
clnk -o test.h12 -m test.map test.lkf
chex -o test.s19 test.h12
This will produce a file called test.s19 which we can load
into the 68HCS12.
www.DataSheet4U.com
11
11 Page |
Páginas | Total 11 Páginas | |
PDF Descargar | [ Datasheet 68HCS12.PDF ] |
Número de pieza | Descripción | Fabricantes |
68HCS12 | Address Space | ETC |
Número de pieza | Descripción | Fabricantes |
SLA6805M | High Voltage 3 phase Motor Driver IC. |
Sanken |
SDC1742 | 12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters. |
Analog Devices |
DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares, |
DataSheet.es | 2020 | Privacy Policy | Contacto | Buscar |