Beruflich Dokumente
Kultur Dokumente
DUSD(Labs)
Outline
uCSA Motivations
uPSoC Background
uOverview
s Hardware and Applications
uSystem Details
uProgramming Model
uCSA Questions
* http://www.ebnonline.com
CSA Motivation
Architecture Type Context Presented
Virtex-
Virtex-II Pro Power PC + FPGA Mixed Version IP Router
u On Chip Memory
s Flash 4k to 16k - SONOS™-
SONOS™-based (Silicon Oxide Nitride Oxide Silicon)
s 256 Bytes SRAM
s EEPROM Emulation in Flash
uDedicated Peripherals
s Watchdog and Sleep Timers
s Low Voltage Detection
s On-Chip voltage references
uCompany Line*
s “PSoC™ Devices Integrate Programmable Analog and Digital
Functions To Simplify Design Of Wireless, Handheld, Data
Communications, and Industrial Systems”
http://www.cypressmicro.com
System Overview
uKeys to note:
s Programmable interconnect
s Digital PSoC Blocks
s Analog PSoC Blocks
s Separate MAC
s Static Peripherals
t LVD, Decimator, etc
uExposed to Programmer
through “Module Placement
view”
uExposed to Programmer
through “Application View”
http://www.cypressmicro.com
*Have in Embedded Systems Lab
Device Family Features
CY8C25122 CY8C26233 CY8C26443* CY8C26643
Operating Frequency 93.7kHz-
93.7kHz-24MHZ 93.7kHz-
93.7kHz-24MHZ 93.7kHz-
93.7kHz-24MHZ 93.7kHz-
93.7kHz-24MHZ
Operating Voltage 3.0-
3.0-5.25V 3.0-
3.0-5.25V 3.0-
3.0-5.25V 3.0-
3.0-5.25V
Program Memory (KB) 4 8 16 16
Data Memory (Bytes) 256 256 256 256
Digital PSOC Blocks 8 8 8 8
Analog PSOC Blocks 12 12 12 12
I/O Pins 6 16 24 40/44
External SMP
No Yes Yes Yes
uDevelopment Software
s Version 3.20 latest; have 3.10
http://www.cypressmicro.com
M8C Addressing Modes
u 10 Addressing Modes
s Source Immediate – ADD A, 7
s Source Direct – ADD A, [7]
s Source Indexed – ADD A, [X+7]
s Destination Direct - ADD [7], A
s Destination Indexed – ADD [X+7], A
s Destination Direct Source Immediate – ADD [7], 5
s Destination Indexed Source Immediate – ADD [X+7], 5
s Destination Direct Source Direct – ADD [7], [5]
s Source Indirect Post Increment – MVI A,[7]
s Destination Indirect Post Increment - MVI [7], A
M8C Instruction Set
uNotable instructions
s System Supervisor Call (SSC), INDEX (Relative Table Read;
Moves ROM into RAM; 13 cycles)
Digital Blocks
uSample Register
http://www.cypressmicro.com
Analog Blocks
http://www.cypressmicro.com
User Modules
PSoC Blocks Memory
uUser modules are what the
(Bytes)
programmer really sees when 12-
12-Bit ADC 2D, 1A 184 Flash
configuring the device. 6 SRAM
Programmable 1A CT 32 Flash
uCould be considered a primitive
Gain Amp
component along with the M8C 8-bit Counter 1D 66 Flash
and static peripherals.
6-Bit DAC 1A SwCp 47 Flash
uCurrent User Modules (sample
in table). 16-
16-bit CRC 2D 56 Flash
uIn the Module Selection view, you can import (or export)
configurations.
uConfigurations consist of user modules, their
interconnections, and their parameters.
uThen at runtime you can swap to another configuration via
call UnloadConfig_newled_proj
call LoadConfig_dynamic_improved
uProgramming Model
s GUI and Automatically generated peripheral routines and
configuration calls.
uProgrammers’ Thought Process
s Application - User Modules – Connection – Application Code –
Test
uExport features either at high level (GUI) or low level (ASM)
uPrimitives
s User modules (perhaps PSoC Blocks), M8C, Memory,
Interconnect
Future Work
Thanks to:
Cypress Semiconductor
DUSD(Labs)