UPSD3234AV-24U1T STMicroelectronics, UPSD3234AV-24U1T Datasheet - Page 22

no-image

UPSD3234AV-24U1T

Manufacturer Part Number
UPSD3234AV-24U1T
Description
Flash Programmable System Devices with 8032 Microcontroller Core and 64Kbit SRAM
Manufacturer
STMicroelectronics
Datasheet
www.DataSheet4U.com
uPSD3234A, uPSD3234BV, uPSD3233B, uPSD3233BV
External RAM. Table
Transfer instructions that access external Data
Memory. Only indirect addressing can be used.
The choice is whether to use a one-byte address,
@Ri, where Ri can be either R0 or R1 of the se-
lected
address, @DTPR.
Note: In all external Data RAM accesses, the Ac-
cumulator is always either the destination or
source of the data.
Lookup Tables. Table
tions that are available for reading lookup tables in
Program Memory. Since these instructions access
only Program Memory, the lookup tables can only
be read, not updated.
The mnemonic is MOVC for “move constant.” The
first MOVC instruction in Table
date a table of up to 256 entries numbered 0
through 255. The number of the desired entry is
loaded into the Accumulator, and the Data Pointer
is set up to point to the beginning of the table.
Then:
copies the desired table entry into the Accumula-
tor.
Table 10. Data Transfer Instruction that Access External Data Memory Space
Table 11. Lookup Table READ Instruction
22/170
Address Width
MOVC A, @A+DPTR
16 bits
16 bits
8 bits
8 bits
register
MOVC A,@A+DPTR
MOVC A,@A+PC
Mnemonic
bank,
10
MOVX A,@DPTR
MOVX @DPTR,a
11
MOVX A,@Ri
MOVX @Ri,A
shows a list of the Data
Mnemonic
shows the two instruc-
or
11
can accommo-
a
two-byte
The other MOVC instruction works the same way,
except the Program Counter (PC) is used as the
table base, and the table is accessed through a
subroutine. First the number of the desired en-try
is loaded into the Accumulator, and the subroutine
is called:
The subroutine “TABLE” would look like this:
The table itself immediately follows the RET (re-
turn) instruction is Program Memory. This type of
table can have up to 255 entries, numbered 1
through 255. Number 0 cannot be used, because
at the time the MOVC instruction is executed, the
PC contains the address of the RET instruction.
An entry numbered 0 would be the RET opcode it-
self.
READ program memory at (A+DPTR)
READ program memory at (A+PC)
MOV A , ENTRY NUMBER
CALL TABLE
TABLE: MOVC A , @A+PC
RET
WRITE external RAM @DPTR
READ external RAM @DPTR
WRITE external RAM @Ri
READ external RAM @Ri
Operation
Operation

Related parts for UPSD3234AV-24U1T