CY7C64113C-PVXC Cypress Semiconductor Corp, CY7C64113C-PVXC Datasheet - Page 13

no-image

CY7C64113C-PVXC

Manufacturer Part Number
CY7C64113C-PVXC
Description
IC MCU 8K FULL SPEED USB 48-SSOP
Manufacturer
Cypress Semiconductor Corp
Series
M8™r
Datasheet

Specifications of CY7C64113C-PVXC

Applications
USB Microcontroller
Core Processor
M8C
Program Memory Type
OTP (8 kB)
Controller Series
CY7C641xx
Ram Size
256 x 8
Interface
I²C, USB, HAPI
Number Of I /o
36
Voltage - Supply
4 V ~ 5.25 V
Operating Temperature
0°C ~ 70°C
Mounting Type
Surface Mount
Package / Case
48-SSOP
For Use With
428-1339 - KIT LOW SPEED PERSONALITY BOARD
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
8-Bit Data Stack Pointer (DSP)
The data stack pointer (DSP) supports PUSH and POP
instructions that use the data stack for temporary storage. A
PUSH instruction pre-decrements the DSP, then writes data to
the memory location addressed by the DSP. A POP instruction
reads data from the memory location addressed by the DSP,
then post-increments the DSP.
During a reset, the DSP is reset to 0x00. A PUSH instruction
when DSP equals 0x00 writes data at the top of the data RAM
(address 0xFF). This writes data to the memory area reserved
for USB endpoint FIFOs. Therefore, the DSP should be indexed
at an appropriate memory location that does not compromise the
Program Stack, user-defined memory (variables), or the USB
endpoint FIFOs.
For USB applications, the firmware should set the DSP to an
appropriate location to avoid a memory conflict with RAM
dedicated to USB FIFOs. The memory requirements for the USB
endpoints are described in
Example assembly instructions to do this with two device
addresses (FIFOs begin at 0xD8) are shown below:
Address Modes
The CY7C64013C and CY7C64113C microcontrollers support
three addressing modes for instructions that require data
operands: data, direct, and indexed.
Data (Immediate)
“Data” address mode refers to a data operand that is actually a
constant encoded in the instruction. As an example, consider the
instruction that loads A with the constant 0xD8:
This instruction requires two bytes of code where the first byte
identifies the “MOV A” instruction with a data operand as the
second byte. The second byte of the instruction is the constant
Clocking
The XTALIN and XTALOUT are the clock pins to the
microcontroller. The user can connect an external oscillator or a
crystal to these pins. When using an external crystal, keep PCB
traces between the chip leads and crystal as short as possible
(less than 2 cm). A 6-MHz fundamental frequency parallel
Document Number: 38-08001 Rev. *D
MOV A,0D8h
MOV A,20h
or less)
SWAP A,DSP ; swap accumulator value into DSP register
; Move 20 hex into Accumulator (must be D8h
USB Device Endpoints on page
XTALOUT
(pin 1)
XTALIN
(pin 2)
Figure 1. Clock Oscillator On-Chip Circuit
30 pF
32.
“0xD8.” A constant may be referred to by name if a prior “EQU”
statement assigns the constant value to the name. For example,
the following code is equivalent to the example shown above:
Direct
“Direct” address mode is used when the data operand is a
variable stored in SRAM. In that case, the one byte address of
the variable is encoded in the instruction. As an example,
consider an instruction that loads A with the contents of memory
address location 0x10:
Normally, variable names are assigned to variable addresses
using “EQU” statements to improve the readability of the
assembler source code. As an example, the following code is
equivalent to the example shown above:
Indexed
“Indexed” address mode allows the firmware to manipulate
arrays of data stored in SRAM. The address of the data operand
is the sum of a constant encoded in the instruction and the
contents of the “X” register. Normally, the constant is the “base”
address of an array of data and the X register contains an index
that indicates which element of the array is actually addressed:
This would have the effect of loading A with the fourth element
of the SRAM “array” that begins at address 0x10. The fourth
element would be at address 0x13.
resonant crystal can be connected to these pins to provide a
reference frequency for the internal PLL. The two internal 30-pF
load caps appear in series to the external crystal and would be
equivalent to a 15-pF load. Therefore, the crystal must have a
required load capacitance of about 15–18 pF. A ceramic
30 pF
DSPINIT: EQU 0D8h
MOV A,DSPINIT
MOV A,[10h]
buttons: EQU 10h
MOV A,[buttons]
array: EQU 10h
MOV X,3
MOV A,[X+array]
To Internal PLL
CY7C64013C
CY7C64113C
Page 13 of 53
[+] Feedback

Related parts for CY7C64113C-PVXC