PSoC( r u pa ka ns e bu ahI C8 b i t Programmable System on Chip) Chip )me
( I nt egr at edCi r c ui t )k el uar anCy pr es sSemi c onduc t ory angdi t uj uk anunt uk r a nc a ngba ng uns eb ua h“Emb ed de dSy s t e m“ .PSo C me mi mi l i k i f u ng s ik e r j a mi r i ps eper t i s ebuahmi k r ok ont r ol l er ,t et api denganber bagai k el ebi han d ank e k ur an ga n.Pad au mu mu mn mn y aMi k r o k ont r o l l ery a ngs e r i ngd i gu na k andi I n don es i as e pe r t i At me lMCS,At me lAVR,d anPI Cha ny ame memi l i k i f u ng s i t er i nt egr as idi gi t al s aj a.Fungs idi gi t al y angdi mak sudadal ahI / O,PWM,ADC, Ti mer/Count er ,UART ,SPIdanf ungs i f ungs i di gi t al y angl ai n.PSoCmunc ul s e bag ai s e bua hmi mpi y a ngt e r j a wa bb ag ip ar aen gi ne er ,d eng an mun c ul n y ap eng ol ah ana na l o gd and i g i t al d al am s a t uI Cy a ngda pat di pr ogr am f ungs ik er j an y as es uai dengany angdi i ngi nk an. Beberapa ftur yang dimiliki PSoC adalah [9] : 1. MAC nit! hardware hardware "#" "#" multiplication multiplication!! dengan ha$il yang dapat di$impan pada %&'bit Accumulator %&'bit Accumulator.. &. (egangan ker)a yang dapat diganti antara * + dan %.% + %. ,apat beker)a pada tegangan 1 + dengan menggunakan mode SMP -Switch -Switch Mode Pump Pump /. 0rekuen$i yang dapat dipilih $e$uai keinginan kita. *. Programmable Block yang yang dapat dipilih dan diprogram $e$uai kebutuhan. . 1 2B Programmable Memori. 3. &* byte$ 4AM -Random Access Memory ". A,C - Analog Analog to Digital Digital Converter dengan re$olu$i men5apai 1/'bit 9. ,AC -Digital to Analog Converter dengan re$olu$i men5apai 9'bit 16. P7A -Programmable ain Ampli!er 11. 0ilter dan 2omparator yang dapat diprogram 1&. (imer dan Counter "'bit! 1'bit dan %&'bit 1%. P$eudorandom Se8uen5e$ dan dan C4C C4C Code 7enerator 1/. ,ua 0ull 0ull ,uple# A4( 1*. Multiple SP dei5e$ 1. ;p$i untuk konek$i pada $emua pin keluaran 13. ;p$i untuk mengkombina$ikan blok 1". ;p$i untuk pemrograman pada loka$i memori yang $pe$ifk dan "rite Protection 19. ntuk $etiap pin terdapat op$i untuk untuk Pull#$p% Pull#$p% Pull#Down% &igh# '% Strong atau atau (pen (pen pin state.
&6. 2emampuan untuk menggenera$i interup$i $elama ter)adi perubahan kondi$i pin &1. &C Slae atau Ma$ter dan Multi#Master $ampai ke5epatan /66 2<=
Struktur ,a$ar Blok PSoC Bagian'bagian yang ada pada PSoC : Unit CPU merupakan bagian utama dari Mi5ro5ontroller PSoC yang tu)uannya adalah untuk men)alankan perintah program dan mengontrol alur ker)a blok lainnya Generator frekuensi mem>a$ilita$i $inyal yang diperlukan CP untuk beker)a! $erta mengatur >rekuen$i yang digunakan oleh Programmable blok Kontroller RESET memungkinkan Mi5ro5ontroller memulai tindakan dan memba?a $ebuah Mi5ro5ontroller kembali ke keadaan bia$a )ika ter)adi ke)adian luar bia$a. Watch Dog Timer digunakan untuk mendetek$i $o>t?are dead' loop$.
Sleep timer dapat $e5ara berkala membangunkan Mi5ro5ontroller dari power saving mode.
kan komunika$i antara CP unit! blok digital dan analog dan dunia luar. Digital Programmable Block digunakan untuk mengkonfgura$i komponen digital yang dipilih oleh pengguna. Analog Programmable Block digunakan untuk mengkonfgura$ikan analog! $eperti A, dan ,A converter $! !lter ! ,(M0 receivers% Programmable% instrumental% inverting% non# inverting dan operasional ampli!er. I2C controller ber>ung$i untuk mengakti>kan hardware reali$a$i dari $ebuah komunika$i &C. Tegangan referensi dan SMP (Switch Mode Pump) $angat penting dalam peker)aan komponen analog yang berada di dalam analog Programmable block . Unit MC digunakan untuk opera$i yang menandai perangkat kera$ dari perkalian angka "'bit. PSoCDes i gner
Se bu ahI CMi k r o k on t r ol l e rmemer l u k ans e bu ahpr og r am u nt ukbi s ab ek e r j a s e c ar aemb ed de d.Pr o gr a mt e r s e bu tb i a s an y adi b ua tme ng gu na k anPe r s o na l Comput er ,l al udi downl oadk edal am mi k r ok ont r ol l er .J i k apadami k r ok ont r ol l er At melAVRadaAVRSt udi o,CodeVi si on,dl l .MakapadaPSoC di gunakan s o f t wa r ePSo C De s i g ne ru nt u kme nd es a i nf u ng s ik e r j aI CPSo C.T e r ma s ukdi d al a mn y ap r o gr a md ank o nfi g ur as i k o nfi gu r as i k e r j ab l oky a nga dadi da l a m PSoC. Di s i ni ak andi bahasbeber apabl ok bl okdas ardank ar ak t er i s t i kgl obal pada PSoC Desi gner .Ver si yangdi gunakanadal ahPSoCDesi gner5.Sedangkan desai nakandi f okusk anpadaI CPSoCCY8C29466,kar enasampl eyangada unt ukdi pel aj ar i hany aI Cs er i t er s ebut .Padapembahas ank al i i ni ,hany aak an di f ok us k anpadabeber apabl okdi gi t al &anal ogy a ngmer upak anfi t ur u ng gu l a np ad aPSo C,y a i t u: P"M )Pulse "idth Modulator* Block @ " dan 1'bit PM $er Module$ merupakan pembangkit modulator lebar pul$a dengan periode dan lebar pul$a yang dapat
diatur melalui program. Clo5k dan Dnable Signal dapat dipilih dari beberapa $umber. Sinyal keluaran dapat di$ambung dengan $ebuah pin atau ke 7lobal output Bu$! untuk penggunaan internal modul yang lain. Sebuah interup$i dapat deprogram untuk memi5u ketika tebing naik -ri$ing edge atau ketika pen5a5ah -5ounter men5apai kondi$i terminal 5ount. PA )Programmable ain Ampli!er* Block @ P7A $er Module mengimplementa$ikan Penguat Eon'nerting -(ak Membalik dengan 7ain -penguatan yang dapat diatur dengan program. Penguat ini memiliki impedan$i ma$ukan tinggi! band?idth lebar dan re>eren$i yang dapat dipilih. BP+ )Band Pass +ilter* Block @ BP0& $er Module mengimplementa$ikan $ebuah F7eneral' Purpo$e $e5ond order $tate ariableG ! yang bia$a di$ebut )uga $ebuah Fbi8uadG! band pa$$ flter. 0rekuen$i Center dan H -ra$io >rekuen$i 5enter terhadap band?idth merupakan >ung$i'>ung$i dari >rekuen$i 5lo5k dan ra$io dari nilai kapa$itor yang dipilih. 0rekuen$i 5enter dapat di$et $angat akurat atau di$e$uaikan dengan mengendalikan 5lo5k F$ample rateG. SC )Switched Capacitor* Block @ SCBI;C2 $er Module adalah $ebuah Fanalog $?it5hed 5apa5itor PSoC blo5kG yang dapat diatur parameternya $e5ara penuh! $ehingga memungkinkan pembuatan >ung$i F$?it5hed 5apa5itorG $e5ara 5u$tom. ADC )Analog to Digital Conversion* Block @ Blok A,C mengimplementa$ikan 5onerter dari tegangan analog ke dalam bentuk digital dengan akura$i hingga 1/'bit. 4e>eren$i tegangan )uga dapat dipilih dari beberapa op$i yang diberikan. Sample rate$ dapat diatur dari 3." $p$ hingga /"6 $p$ -$p$ @ $ample$ per $e5ond. ,CD ),i-uid Crystal Display* Block @ IC, Module merupakan $atu $et kumpulan rutin yang ber>ung$i untuk mengkoner$i dari tuli$an'tuli$an -$tring yang kita buat ke dalam bentuk & atau / )alur IC, Module. Modul ini dide$ain untuk mendukung penggunaan C <,//3"6 $ebagai drier IC,. Mode inter>a5e yang digunakan adalah /'bit dengan tu)uan untuk mengurangi )umlah pin ; yang diperlukan.
ikipedia PSoC (Programmable System-on-Chip) is a family of microcontroller integrated circuits byCypress Semiconductor . These chips include a CPU core and mixed-signal arrays of configurable integrated analog and digital peripherals.
History [edit !n "##"$ Cypress began shipping commercial %uantities of the PSoC &. [& To promote the PSoC$ Cypress sponsored a 'PSoC esign Challenge' in Circuit Cellar magaine in "##" and "##*.[" !n +pril "#&,$ Cypress released the fourth generation$ PSoC *. The PSoC * features a ,"-bit + Cortex-# CPU$ /ith programmable analog bloc0s ( operational amplifiers and comparators)$ programmable digital bloc0s (P1-based U2s)$ programmable routing and flexible 3P!4 (route any function to any pin)$ a serial communication bloc0 (for SP!$ U+T$ !5C)$ a timer6counter6P7 bloc0 and more.[, PSoC is used in de8ices as simple as Sonicare toothbrushes and +didas snea0ers$ and as complex as the Ti9o set-top box. 4ne PSoC$ using CapSense$ controls the touch-sensiti8e scroll /heel on the +pple iPod clic0 /heel. !n "#&*$ Cypress extended the PSoC * family by integrating a 2luetooth 1o/ :nergy radio along /ith a PSoC * Cortex-#-based SoC in a single$ monolithic die.
Overview [edit + PSoC integrated circuit is composed of a core$ configurable analog and digital bloc0s$ and programmable routing and interconnect. The configurable bloc0s in a PSoC are the biggest difference from other microcontrollers. PSoC has three separate memory spaces; paged S+ for data$ only startup code that is created by Cypress? PSoC Designer (for PSoC &) or PSoC Creator (for PSoC , 6 * 6 @) !:. PSoC resembles an
Creator generate the startup configuration code. 2oth integrate +P!s that initialie the user selected components upon the users needs in a9isual-Studio-li0e 3U!.
Configurable analog and digital blocks [edit
PsoC 2loc0 :xample
Using configurable analog and digital bloc0s$ designers can create and change mixed-signal embedded applications. The digital bloc0s are state machines that are configured using the bloc0s registers. There are t/o types of digital bloc0s$ igital 2uilding 2loc0s (22xx) and igital Communication 2loc0s (C2xx). 4nly the communication bloc0s can contain serial !64 user modules$ such as SP!$ U+T$ etc. :ach digital bloc0 is considered an A-bit resources that designers can configure using pre-built di gital functions or user modules (U)$ or$ by combining bloc0s$ turn them into &B-$ "*-$ or ,"-bit resources. Concatenating Us together is ho/ &B-bit P7s and timers are created. There are t/o types of analog bloc0s. The continuous time (CT) bloc0s are composed of an op-amp circuit and designated as +C2xx /here xx is ##-#,. The other type is the s/itch cap (SC) bloc0s$ /hich allo/ complex analog signal flo/s and are designated by +SCxy /here x is the ro/ and y is the column of the analog bloc0. esigners can modify and personalie each module to any design.
Programmable routing and interconnect [edit PSoC mixed-signal arrays? flexible routing allo/s designers to route signals to and from !64 pins more freely than /ith many competing microcontrollers. 3lobal buses a llo/ for signal multiplexing and for performing logic operations. Cypress suggests that this all o/s designers to configure a design and ma0e impro8ements more easily and faster and /ith fe/er PC2 redesigns than a digital logic gate approach or competing microcontrollers /ith more fixed function pins.
Series[edit PSoC is a soft/are configured$ mixed-signal array /ith a built-in microcontroller core. There are four different families of de8ices$ each based around a different microcontroller core; •
PSoC & - CAC"xxxx series > AC core.
•
PSoC , - CAC,xxxx series - A#@& core.
•
PSoC * - CAC*xxxx series - + Cortex-# core.[*
•
PSoC @ - CAC@xxxx series - + Cortex-, core.
Bluetooth Low Energy Starting in "#&*$ Cypress began offering PSoC * 21: de8ices /ith integrated 2luetooth 1o/ :nergy (2luetooth Smart). This can be used to create connected products le8eraging the analog and digital bloc0s.[@ Users can add and configure the 21: module directly in PSoC creator. Cypress also pro8ides a complete 2luetooth 1o/ :nergy stac0 licensed from indtree /ith both Peripheral and Central functionality.[B
Summary[edit PSoC 1
PSoC 3 A-bit A#@& core (single-
A-bit AC core
cycle)
up to "* D$ * !PS
up to BE D$ ,, !PS
PSoC 4
PSoC 5
,"-bit + Cortex-
,"-bit + Cortex-,
#
up to BE D$
up to *A D$ F !PS
A* !PS
S+; , G2 to A G2
S+; " G2 to * G2
!5C$ SP!$ U+T$
!5C$ SP!$ U+T$ 1!=$
!5C$ SP!$ U+T
!5C$ SP!$ U+T$ 1!=$
.
& elta-Sigma +C (B
& elta-Sigma +C (A
& S+ +C (&"-bit)
& elta-Sigma +C (A
to &*-bit)
to "#-bit)
&,& 0sps H A-bitI
&J" 0sps H &"-bitI
Up to t/o +Cs (B to A-
Up to four +Cs (A-bit)
S+; "@B bytes to " G2
bit)
& sps H &"-bitI Up to t/o +Cs (E to A-bit)
"@B G2 S+; A G2 to B* G2
to "#-bit) &J" 0sps H&"-bitI " S+ +Cs (&"-bit)
& sps H &"-bitI Up to four +Cs (A-bit) Up to B* !64
Up to E" !64
Up to ,B !64
Up to E" !64
4peration; &.E 9 to
4peration; #.@ 9 to
4peration; &.E& 9 to
4peration; ".E 9 to
@."@ 9
@.@ 9
@.@ 9
@.@ 9
+cti8e; " m+$
+cti8e; &." m+$
+cti8e; &.B m+$
+cti8e; " m+$
Sleep; , K+
Sleep; & K+$
Sleep; &., K+$
Sleep; " K+$
Dibernate; F
Dibernate; "## n+
Dibernate; &@# n+
Dibernate; ,## n+ 4n-chip LT+3$ S7$
e%uires !C: Cube and
4n-chip S7$ ebug
S79$ ebug$ Trace
CACG!T-#*# Pioneer CACG!T-##&
Git
CACG!T-##&
CACG!T-##&
e8elopment Git
CACG!T-#*" Pioneer e8elopment Git
e8elopment Git
CACG!T-#,#
Git
CACG!T-#@#
e8elopment Git
CACG!T-#*J
e8elopment Git
Prototype Git
Development tools[edit PSoC esigner [edit This is the first generation soft/are !: to design and debug and program the PSoC & de8ices. !t introduced uni%ue features including a library of pre-characteried analog and digital peripherals in a drag-and-drop design en8ironment /hich could then be customied to specific design needs by le8eraging the dynamically generated +P! libraries of code.
PSoC Creator [edit PSoC Creator is the second generation soft/are !: to design debug and program the PSoC , 6 * 6 @ de8ices. The de8elopment !: is combined /ith an easy to use graphical design editor to form a po/erful hard/are6soft/are co-design en8ironment. PSoC Creator consists of t/o basic building bloc0s. The program that allo/s the user to select$ configure and connect existing circuits on the chip and the components /hich are the e%ui8alent of peripherals on CUs. 7hat ma0es PSoC intriguing is the possibility to create o /n application specific peripherals in hard/are. Cypress publishes component pac0s se8eral times a year. PSoC users get ne/ peripherals for their existing
hard/are /ithout being charged or ha8ing to buy ne/ hard/are. PSoC Creator also all o/s much freedom in assignment of peripherals to !64 pins.
Corte!"#[edit Main article: List of ARM Cortex-M development tools 3eneric + de8elopment tools for PSoC * and PSoC @.
Documentation[edit PSoC 4 $ 5 The amount of documentation for all + chips is daunting$ especially for ne/comers. The documentation for microcontrollers from past decades /ould easily be i nclusi8e in a single document$ but as chips ha8e e8ol8ed so has the documentation gro/n. The total documentation is especially hard to grasp for all + chips since it consists of documents from the !C manufacturer (Cypress Semiconductor ) and documents from CPU core 8endor ( + Doldings). + typical top-do/n documentation tree is; manufacturer /ebsite$ manufacturer mar0eting slides$ manufacturer datasheet for the exact physical chip$ manufacturer detailed reference manual that describes common peripherals and aspects of a physical chip family$ + core generic user guide$ + core technical reference manual$ + architecture reference manual that describes the instruction set(s). PSoC 4 $ 5 documentation tree %to& to bottom' &. PSoC /ebsite. ". PSoC mar0eting slides. ,. PSoC datasheet. *. PSoC reference manuals. @. + core /ebsite. B. + core generic user guide. E. + core technical reference manual. A. + architecture reference manual.
Cypress Semiconductor has additional documents$ such as; e8aluation board user manuals$ application notes$ getting started guides$ soft/are library documents$ errata$ and more. See :xternal 1in0s section for lin0s to official PSoC and + documents.