cs5954am Cypress Semiconductor Corporation., cs5954am Datasheet - Page 29

no-image

cs5954am

Manufacturer Part Number
cs5954am
Description
Usb Controller For Nand Flash
Manufacturer
Cypress Semiconductor Corporation.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
CS5954AM
Manufacturer:
CY
Quantity:
4 853
8.4
The general-purpose registers can be used to store intermediate results, and to pass parameters to and return them from
subroutine calls.
8.5
In addition to acting as general-purpose registers, registers R8-R14 can also serve as pointer registers. Instructions can access
RAM locations by referring to any of these registers. In normal operation, register R15 is reserved for use as a stack pointer.
8.6
Registers R0..R15 are mapped into RAM via the REGBANK register. The REGBANK register is loaded with a base address, of
which the 11 Most Significant Bits (MSBs) are used. A Read from or Write to one of the registers will generate a RAM address by:
For example, if the REGBANK register is left at its default value of 100 hex, a read of register R14 would read address 11C hex.
8.7
The CS5954AM Processor uses these flags.
8.8
To understand addressing modes supported by the CS5954AM Processor, one must know how the instruction format is defined.
In general, the instructions include four bits for the instruction opcode, six bits for the source operand, and six bits for the
destination operand.
Some instructions, especially single operand-operator and program control instructions, will not adhere strictly to this format. They
will be discussed in detail in turn.
Notes:
Document #: 38-08025 Rev. **
26. Regardless of the value loaded into the REGBANK register, bits 0..4 will be ignored.
27. Flag behavior for each instruction will be described in the following section.
Register
REGBANK
R14
RAM Location
Instr
bit:
FLAG
bit:
• Shifting the four Least Significant Bits (LSBs) of the register number left by 1.
• OR-ing the shifted bits of the register number with the upper 11 bits of the REGBANK register.
• Forcing the LSB to 0.
Z
C
O
S
I
General-purpose Registers
General-purpose/Address Registers
REGBANK Register (0xC002: R/W)
Flags Register (0xC000: Read-only)
Instruction Format
15
15
0
Hex Value
0100
000E << 1 = 001C
011C
14
14
0
Zero: instruction execution resulted in a result of 0.
Carry/Borrow: Arithmetic instruction resulted in a carry (for addition) or a borrow (for subtraction).
Overflow: Arithmetic result was either larger than the destination operand size (for addition) or smaller
than the destination operand should allow for subtraction.
Sign: Set if MS result bit is “1.”
Global Interrupts: Enabled if “1.”
opcode
13
13
0
12
12
0
Binary Value
0
x
0
11
11
[27]
0
0
x
0
ADVANCE
INFORMATION
10
10
0
0
x
0
0
x
0
9
9
0
source
0
x
0
8
8
0
0
x
0
7
7
0
0
x
0
1
x
1
6
6
0
0
x
0
5
5
0
0
x
0
4
4
I
0
0
0
destination
x
1
1
S
3
3
x
1
1
O
CS5954AM
2
2
x
1
1
Page 29 of 44
C
1
1
x
0
0
x
0
0
0
Z
0
[26]

Related parts for cs5954am