Z8F041APH020SG2156 ZiLOG, Z8F041APH020SG2156 Datasheet - Page 222

no-image

Z8F041APH020SG2156

Manufacturer Part Number
Z8F041APH020SG2156
Description
8-bit Microcontrollers - MCU 4K FLASH 1K RAM 128B NVDS
Manufacturer
ZiLOG
Datasheet

Specifications of Z8F041APH020SG2156

Rohs
yes
Core
eZ8
Processor Series
Z8F041xx
Data Bus Width
8 bit
Maximum Clock Frequency
20 MHz
Program Memory Size
4 KB
Data Ram Size
1 KB
On-chip Adc
Yes
Operating Supply Voltage
2.7 V to 3.6 V
Operating Temperature Range
- 40 C to + 105 C
Package / Case
PDIP-20
Mounting Style
Through Hole
A/d Bit Size
10 bit
A/d Channels Available
8
Interface Type
UART
Maximum Operating Temperature
+ 105 C
Minimum Operating Temperature
- 40 C
Number Of Programmable I/os
17
Number Of Timers
2
Program Memory Type
Flash
Supply Voltage - Max
3.6 V
Supply Voltage - Min
2.7 V
PS022827-1212
Assembly Language Syntax
Assembly Language Source Program Example
For proper instruction execution, eZ8 CPU assembly language syntax requires that the
operands be written as ‘destination, source’. After assembly, the object code usually has
the operands in the order ‘source, destination’, but ordering is opcode-dependent. The fol-
lowing instruction examples illustrate the format of some basic assembly instructions and
the resulting object code produced by the assembler. This binary format must be followed
if manual program coding is preferred or if you intend to implement your own assembler.
Example 1.
43H
Example 2.
address can specify any register location in the range 0–255 or, using Escaped Mode
Addressing, a Working Register R0–R15. If the contents of Register 43H and Working
Register R8 are added and the result is stored in
object code is:
JP START
START:
LD R4, R7
LD 234H, #%01
Assembly Language Code
Object Code
Assembly Language Code
Object Code
, the assembly syntax and resulting object code is:
Table 116. Assembly Language Syntax Example 1
Table 117. Assembly Language Syntax Example 2
If the contents of registers
In general, when an instruction format requires an 8-bit register address, that
; Everything after the semicolon is a comment.
; A label called ‘START’. The first instruction (JP START) in this
; example causes program execution to jump to the point within the
; program where the START label occurs.
; A Load (LD) instruction with two operands. The first operand,
; Working Register R4, is the destination. The second operand,
; Working Register R7, is the source. The contents of R7 is
; written into R4.
; Another Load (LD) instruction with two operands.
; The first operand, Extended Mode Register Address 234H,
; identifies the destination. The second operand, Immediate Data
; value 01H, is the source. The value 01H is written into the
; Register at address 234H.
P R E L I M I N A R Y
ADD
04
ADD
04
43H
43H,
08
43H,
E8
and
08H
43H
08H
43
R8
43
, the assembly syntax and resulting
are added and the result is stored in
Z8 Encore! XP
(ADD dst, src)
(OPC src, dst)
(ADD dst, src)
(OPC src, dst)
Assembly Language Syntax
Product Specification
®
F082A Series
205

Related parts for Z8F041APH020SG2156