PSoC® Creator ᳳΟƝ ᵅᠺᓹͭ (PGA) 1.60 Ⴈ • ᓹℲ 1 50 • 㤇ⷂ㑪 • ⸸ⷂḲ • ⨲Ṇ⧭ᶝ ⸟ޱ PGA ᇟፗᵅᠺᓹᒳⷿᧆᒳᔧͭওͭԸ㤇ⷂ㑪ⶲᒳ ⸸ⷂ፤Ḳ֔ಿ SC/CT ࡐ ᓹἬ 1 (0 dB) 50 (+34 dB) 㐣⹉ⷶ⽼ᶝ⸸Ęᓹፗǿᒳ API ⷿ♻Хԣ ᓹԯⷿᧆͭᒳᓹᒳ㑿㒾ᓹḻPGA ᒳⷂ• ⸊♻ўԯⷂɵVin Vref 㐣ᒳ㑿 Vdda/ᓹPGA ᒳⷂ A ᳖ ⯢㤇ᒳ⭎ⶬ፤㑪ḻ⠯•⸊♻ ⷂᒳŞ⯢Хፗ PGAPGA ᶝਃⶲࡐΟƑద㛀⸈ ŞPGA ፗᓹͭᵂⶲ㑪ࡐⷂěద㛀ᔧ PGA ᓹ PGA ፗᵂ VDAC Ḳⷂ ⷂ/ⷂ⸍ǔ ⷂ ⷂ⸍ǔ ՛ᤏ₱ PGA ᒳⷂⷂ⸍ǔI/O ⚗ᒳю (*) ⚗ᝩ I/O Ἤ㒿⏾⨔ I/O ⨣н ᒳᒳᥕ Vin ࡐĎ Vin ⷂ᳷ᤞ Vref ࡐĎ * Vref Ḳᒳⷂ᳷ᤞ Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600 ζڒᵅ001-68765 ⧑ၷ** ⧑Х㐣⇥ 2011 4 Է 4 Д ᵅᠺᓹͭ (PGA) PSoC® Creator ᳳΟƝ Ḳⷂ⸍ǔᒳ⼗Ḳᒳ⼗ VssǔḲ⼗⸍ǔ ХⰞ፠፤㑪ప⼗፤㑪᎔㑼ᓹᓹ Vout ࡐĎ Vout ⷂ፤᳷ᤞVout (Vin - Vref) ĶᓹᒳΟ Vout = Vref + (Vin - Vref) * ᓹ Ο⧭ᶝ PGA ąͭᒳ⧭⧐⽼ᶝ⨌ٵ ᓹ ⧭ᶝ PGA ᒳᓹ⧧ᳳ⸸Ęᓹ1㴇⧓24816243248 50 ᥛ 2 㚤 13 㚤 ζڒᵅ001-68765 ⧑ၷ** PSoC® Creator ᳳΟƝ ᵅᠺᓹͭ (PGA) Ṇ ⧭ᶝ PGA ᒳ㢠ṆṆ PGA ⷂᒳ⹎Ṇ⧭ᶝԸԯ 㴇⧓㤇ԯṆ⧭ᶝ‣ԯ㎮Х㐣㤇Ṇ⧭ᶝ‣ԯᘜ Х㐣 Vref_Input ওΟፗ⸸Ęⷂ፤Ḳ⸸㚨ě • ⼗ Vss ፗ⼗ǔ • ⼗㴇⧓ Vref ᳷ᤞᒳǿͭḲ PSoC Creator ѭᝩᒳᥕ⸸ᒳḲⷂͨ 1 PGA ⽼ᶝ ͭᶝ ૐԸႨͭᶝᒳ⸸㚨 ⭳ಿ PGA ፗ SC/CT ࡐ⸱ፗ⧭ΟƝ՞Ḳ (TRM) ؔᔺওࡐᒳ ⨕⸈ζ⮊ҝϞᶀᤈǿ API ₱ ₱ Οࡐ ࡐĎࡐ ΟƝⰞ ქ ǖ ⧐Ο 7 㐙 RAM Ὁ ৾ Ὁ ⼗ I/O 1 SC/CT ᒳ ࡐ ፗ ፗ ፗ ፗ ፗ 381 20 3 ζڒᵅ001-68765 ⧑ၷ** ᥛ 3 㚤 13 㚤 ᵅᠺᓹͭ (PGA) PSoC® Creator ᳳΟƝ ፗᠺᵅᠺǔ ፗᠺᵅᠺǔ (API) ᠺፗ֔⽼ᶝᳳ ⚗Ǿ⸟৾Οᒳǔ 㖑ᒳᤏ₱ԣ⨕ᳵ৾Ο 㴇⧓PSoC Creator PGA_1⽼ᴈĶ⧭⧐ᒳᥛ ⺤⧵ضᥕ⨜⟳ᒳ⨔৾Ο ᥕᒳᴯ⨪Ḳ⒀⚗ፗᒳPGA Ο ⨣н void PGA_Start(void) PGA void PGA_Stop(void) Ϝ PGA ፤ಿ void PGA_SetGain(uint8 gain) 㚳ᒳ⧭ᶝᓹ void PGA_SetPower(uint8 power) ⧭ᶝ⧭ᶝ㢠Ṇ void PGA_Sleep(void) ፗ⽼ᶝ void PGA_Wakeup(void) ፗፗ⽼ᶝ void PGA_Init(void) 㴇⧓ PGA ⽼ᶝ void PGA_Enable(void) ፗ PGA void PGA_SaveConfig(void) ᢩΟ֔ፗ void PGA_RestoreConfig(void) ᢩΟ֔ፗ PGA_initVar ᥛ 4 㚤 13 㚤 ⨣н Ķᝩ PGA ў⨔ 0ᥛॐ⨲ፗ PGA_Start() Х⧭ᶝ 1⸈٦ ᥛॐ⨲ፗ PGA_Start() ᠺፗϟ 㔯ϟ PGA_Start() PGA_Enable() Ο⨲ፗ PGA_Init() Ο ζڒᵅ001-68765 ⧑ၷ** PSoC® Creator ᳳΟƝ ᵅᠺᓹͭ (PGA) void PGA_Start(void) ⨣н ⨣н ⸈ў˼ᒳ㟅⸸ϨͭṆᓹ⽼ᶝՎ㐣ᒳ⧭ᶝ⿶ፗ PGA_Stop() ⨲ፗᒳ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ void PGA_Stop(void) ⨣н ⨣н 㐜 PGA ፗԯṆქ ଗ⧝ PSoC 3 ES2 PSoC 5 ES1 ⃞ၶፗ⨔ API⸈ᵩ㒦‣ ΟࡐĎ⭳ಿᒳ⸍ǔՙ፤Х㖏㖏ᇟᳳፗᒳ⭳ಿХ Џ⹉ᘔᒳ⭔ࡐĎᳳ⹏ᒳᴂ⧝⹉ⷶ⨲ፗ PGA_Start() API⧭⧐ᒳԸࡐĎ᳷፤ქ⨦⨲ፗ PGA_Stop() API Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ ЏṆᓹ⧭ᶝ void PGA_SetPower(uint8 power) ⨣н ⨣н 㢠Ṇ⧭ᶝ⧭ᶝԯ㤇 Ο Ο (uint8) powerԸԸͷṆ⧭ᶝ⨦⟰⚗ Ṇ⧭ᶝ ଗ PGA_MINPOWER ԸͷṆԯХ㐣ԯ㎮ PGA_LOWPOWER Ṇ⹎ PGA_MEDPOWER Ṇ⹎ PGA_HIGHPOWER ԸͷṆԯ㤇Х㐣ԯᘜ ⸃ ⸃ Џ ፗ ፗ Џ ζڒᵅ001-68765 ⧑ၷ** ᥛ 5 㚤 13 㚤 ᵅᠺᓹͭ (PGA) PSoC® Creator ᳳΟƝ void PGA_SetGain(uint8 gain) ⨣н ⨣н ͭᓹ⧭ᶝ 1 50 Ο Ο uint8 gainԸԸͷᓹ⧭ᶝ⨦⟰⚗ ᓹ⧭ᶝ ଗ PGA_GAIN_01 ᓹ = 1 PGA_GAIN_02 ᓹ = 2 PGA_GAIN_04 ᓹ = 4 PGA_GAIN_08 ᓹ = 8 PGA_GAIN_16 ᓹ = 16 PGA_GAIN_24 ᓹ = 24 PGA_GAIN_32 ᓹ = 32 PGA_GAIN_48 ᓹ = 48 PGA_GAIN_50 ᓹ = 50 ⸃ ⸃ Џ ፗ ፗ Џ void PGA_Sleep(void) ⨣н ⨣н ⸈ўᳳᖐᕏᒳ㟅⸸ APIPGA_Sleep() API ᳳᒳქཥ⨲ፗ PGA_Stop() Ο⨲ፗ PGA_SaveConfig() ᚛⽼ᶝ ⨲ፗ CyPmSleep() CyPmHibernate() Ο⨲ፗ PGA_Sleep() ΟԸ፤ಿ᧐ስ Οᒳԣ⨦Ḳ PSoC Creator System Reference GuideᬪᴎḲĶ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ ᥛ 6 㚤 13 㚤 ζڒᵅ001-68765 ⧑ၷ** PSoC® Creator ᳳΟƝ ᵅᠺᓹͭ (PGA) void PGA_Wakeup(void) ⨣н ⨣н ⸈ўᳳ⨲ፗ PGA_Sleep() Хქᒳ㟅⸸ APIPGA_Wakeup() Ο⨲ፗ PGA_RestoreConfig() Ο⽼ᶝᳳᬪᴎ⨲ፗ PGA_Sleep() Οፗ PGA_Wakeup() Οϟፗᳳ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ ⨲ፗ PGA_Wakeup() Οՙ⨲ፗ PGA_Sleep() PGA_SaveConfig() ΟἬፎ ♻ void PGA_Init(void) ⨣н ⨣н ٨Ɲ’ᠺᒳ⽼ᶝ⨌⧭ٵᶝᳳЏ㔯⨲ፗ PGA_Init() PGA_Start() API ⨲ፗ⨔Ο⸈ўᳳ˼ᒳ㟅⸸Ϩ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Ը٨Ɲ’ᠺ⽼ᶝ⨌⧭ٵᶝᔧᒳ void PGA_Enable(void) ⨣н ⨣н ෯୪᚛ᳳ˼Џ㔯⨲ፗ PGA_Enable() PGA_Start() API ⨲ፗ⨔Ο ⸈ўᳳ˼ᒳ㟅⸸Ϩ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ void PGA_SaveConfig(void) ⨣н ⨣н ᢩΟ֔ፗ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ ζڒᵅ001-68765 ⧑ၷ** ᥛ 7 㚤 13 㚤 ᵅᠺᓹͭ (PGA) PSoC® Creator ᳳΟƝ void PGA_RestoreConfig(void) ⨣н ⨣н ᢩΟ֔ፗ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ ಿᘰᝩ PSoC Creator ؔᝩ㚨ᔝ⨌ٵǿᝩ㚨ᔝěᝩᝩᘰ℔➰ ⇦Ⴈᳳᒳᝩ⨦ᳳᔝᝩᳳ⨔⨌ٵ℔➰⇦⁛ᝩ ⨦㚤ζ ζ∋⨔⨌ٵ٨Ɲ㔯➰⨌ٵፗᦊ⸸⸸㚨 ᦊ⸸⸸㚨ᵘፗ⸸Ęᒳ ζ ᦊ⸸⸸㚨 㚨ᔝ⚗ᒳℲ Ըԣ⨦Ḳ PSoC Creator ᒳؔᝩ㚨ᔝ㛇 ἬǾ⸟ PGA ў፠ҝ⹉ SC/CT ࡐֳᒳԸ⨔ࡐᒳ⨕ᳵ⮊ҝϞᶀᤈᒳ⸱ፗΟƝ ⚗ TRM ⹉ⷶ⨲Σ Ra Rb ፤㑪֔⸸Ęᓹ⟰ 3 ἬስRa ⧭ᶝ 20K 40K ॖRb ⧭ᶝ 20K • 1000K ॖፎΟ⨌ٵ SetGain Ο⸸ᒳᓹ ⨔ࡐԸ㞷፤㑪 Rb ♻ᒳᵅᠺ፤፤㊷৾ॐᓹ⸸Ę⸊♻⽼ᶝⷭ⧰ᒳᡢ ϟ⽼ Rb ՙ⸸Ęᔧᒳ㞷፤Ἤ‣ PGA ᡢ⧝ፗ ᓹፗǿᒳ API 2 PGA ስ Vin Vout Vref Ra Rb PGA ᒳᓹṆ⧭ᶝ፠⚔፤ᡢᒳ➰ੱᔧⷿᧆͭᒳ ᇞᓹ㚳⧐ᒳᴌԯԸ㑼 ᥛ 8 㚤 13 㚤 ζڒᵅ001-68765 ⧑ၷ** PSoC® Creator ᳳΟƝ ᵅᠺᓹͭ (PGA) PGA ᳳ⽼ᶝ SC[0..3]_CR0SC[0..3]_CR1 SC[0..3]_CR2 ᇟ⸈ ⹉ⷶḲᒳᳳ PGA_1_CR0_REGፗᘰ⸊♻⧮㐝 PSoC Creator ᳳ⨲⨄ᣆؔᔺԸᒳ⨕ᳵ⨣н⨦Ḳ⮊ҝϞᶀᤈ⸱ፗᒳ TRMPGA ᳳ⨲⨄ᣆѭᝩ PGA_1_CR0_REG ፤ǖ 0 ⨣н ⨣н 3:1 ⽼ᶝ፤ࡐࡐ PGA ᳳ⨔⧭ᶝ 110b PGA_1_CR1_REG ፤ǖ 1 ⨣н ⨣н ⽼ᶝ፤ࡐᒳ㢠ࡐ⚔፤ᓹ⧭ᶝ PGA_1_CR2_REG ፤ǖ 2 ⨣н ⨣н ⽼ᶝ፤ࡐᒳⷂ㑪㞷㑪Ḳǔ⸸Ę PGA_1_PM_ACT_CFG_REG ԸͷṆࡐ⽼ᶝ 9 ⨣н ⨣н 3:0 ፗ፤ࡐᒳ፤ಿ ᔣ୰፤୰፤፤Ⴈ ႨΟƝ㒓㖍Ը⨣н⸈⟳Ⅎᒳ⸱ፗў -40C TA 85C TJ 100C㒓㖍⚗ĶԸᒳ⸱ፗў TA = 25CVdda = 5.0 V Ṇ = 㤇ⷂ፤ࡐĎǔ፤ Vssa Ḳ 5.0V/3.3V ᔣ୰፤Ⴈ Ο ⨣н ԯ ԯ ⷂ Vos ⷂᠪ፤ ԸṆࡐ㤇ԯ na 3.5 10 mV TCVos ౘᬪΟⷂ ᠪ፤ ԸṆࡐ㤇ԯ na 6.0 12.3 uV/C ζڒᵅ001-68765 ⧑ၷ** ᥛ 9 㚤 13 㚤 ᵅᠺᓹͭ (PGA) Ο ⨣н PSoC® Creator ᳳΟƝ ԯ ԯ ᴌ Cin 2.0 na pF G=1Vref ⼗⸍ǔ• Vss 0.01 0.15 +/-% G=2Vref ⼗⸍ǔ• Vss 0.1 1.0 Ge4 G=4Vref ⼗⸍ǔ• Vss 0.5 1.35 Ge8 G=8Vref ⼗⸍ǔ• Vss 0.6 1.6 Ge16 G=16Vref ⼗⸍ǔ• Vss 0.7 2.5 Ge32 G=32Vref ⼗⸍ǔ• Vss 0.85 5.0 Ge50 G=50Vref ⼗⸍ǔ• Vss 2.1 5.0 1.2 2.5 G=2Vref ⼗⸍ǔ• Vss 8.6 20 Gd4 G=4Vref ⼗⸍ǔ• Vss 13 29 Gd8 G=8Vref ⼗⸍ǔ• Vss 15 35 Gd16 G=16Vref ⼗⸍ǔ• Vss 18 40 Gd32 G=32Vref ⼗⸍ǔ• Vss 38 75 Gd50 G=50Vref ⼗⸍ǔ• Vss 167 400 Ge1 Ge2 Gd1 Gd2 ⷂ፤ ᓹᔧⷂ ěὉⰞ፠፤ ᓹ㛌 㐣ᒳ ᔧౘᒳᓹ G=1Vref ⼗⸍ǔ• Vss Vout_range ⷂɵ ᓹ = 1Rload = 100k • Vdda/2 Vdda Vssa ᒳ Idda ፤୰ Vdda = 1.71 VṆࡐ = Vdda = 5.0 VṆࡐ = 㤇 na na ppm/C 150 mV 700 1000 uA 1100 1350 uA ؠქⷂᠪ፤ ᥛ 10 㚤 13 㚤 ፤୰ౘṆ = ԯ ζڒᵅ001-68765 ⧑ၷ** PSoC® Creator ᳳΟƝ 18 16 ᵅᠺᓹͭ (PGA) 1200 Occurance 1100 Idda uA 14 12 1000 10 900 8 800 6 4 700 2 600 500 -50 6.0 4.0 2.0 0.0 -2.0 -4.0 -6.0 0 Vos mV 1200 1200 1100 1100 Idda uA 1000 1000 900 900 5.5V 3.3V 2.7V 1.71V 800 700 50 deg C 100 150 800 700 600 500 -50 500 -50 deg C 100 5.5V 3.3V 2.7V 1.71V Idda uA 600 50 0 ፤୰ౘṆ = 㤇 ፤୰ౘṆ = 0 5.5V 3.3V 2.7V 1.71V 150 0 50 deg C 100 150 5.0V/3.3V ୰፤Ⴈ Ο ⨣н ԯ ԯ GBW_H ᓹṆ ࡐ = 㤇 ᓹ = 1Vdda = 5.0 V25 C 7.0 9.0 na MHz SR_G1 ϋᆶ 20 - 80%ᓹ = 1Ṇࡐ = 㤇 3.0 4.8 na V/us SR_G16 20 - 80%ᓹ = 16Ṇࡐ = 㤇 0.5 0.87 na V/us SR_G50 20 - 80%ᓹ = 50Ṇࡐ = 㤇 0.25 0.84 na V/us f = 100 kHz 48 f = 100 kHzṆࡐ = 㤇 na PSRR_AC ፤ಿਃ Vn ζڒᵅ001-68765 ⧑ၷ** dB 42 na nV/rtHz ᥛ 11 㚤 13 㚤 ᵅᠺᓹͭ (PGA) PSoC® Creator ᳳΟƝ ፤Vdda = 5.0VṆ = 㤇 ᓹ㛀ᆶṆ = 㤇 1000 40 20 nV/rtHz G=50 G=32 G=16 G=8 G=4 G=2 G=1 dB 30 100 10 0 -10 1 10 100 kHz 1000 10000 10 0.01 0.1 1 kHz 10 100 1000 ᓹ⧭ᶝᒳౘṆ = 㤇 ͥ㓵ΟƝ ᥛ 12 㚤 13 㚤 ζڒᵅ001-68765 ⧑ၷ** PSoC® Creator ᳳΟƝ ᵅᠺᓹͭ (PGA) ᳳԣͨ ՛₱ᳳၷ՛ᔧਃᒳ➰ԣͨ ၷ՛ 1.60 ԣͨ⨣н ԣͨ/ ԣͨ ᳳ’ᠺ㒓 VDDA Ο ᳳᒳ VDDA ⧭ᶝᳳḻ⠯ૐԸ➰ও Ο㒓ᳳؔ⨑ DWR ԯ VDDA ᒳ⧭ᶝ ➰Х’ፗତ 㛀ᆶ⚗ᒳ⽼ᶝᣆ ԣፗ GUI ᒳ⽼ᶝᣆૐԸǿ⯢ᒳፗ ԣζᒳ SetGain ǿᴈ SetGain API ᒳ⸈⛚ԣ ΟƝపႨΟƝ ΟƝ⸊♻ᵅⷀԣϟ 1.50 పᖐᕏ/⿁/Ἤ API ᔝᒳў͞İṆࡐǿ⹉ፗǔǖΟ ᳳᒳἬ 㒓ᓹ⧭ᶝ 25 ᓹ 25 ǔ⸀ওǿ ԣϟᥕ⽼ᶝ⨌ٵ ԣϟᥕض ⹉ⷶప_REGԣͨᒳ ԣϟᥕᵅᘰ ⟳٫⚗ᥕ Ⴈ㔯➰ǿΟƝ © ⮊ҝϞ2011ওᒳἬ㒾Хԣͨ♻⹉ᘔ㒓⮊ҝϞᒳ፤Ⱎ⮊ҝϞ፤Ⱎᒳፗ⭒٨Ɲ ղнᝩӆᝩᒳϨƷ⧧㒓㖍⮊ҝϞ⧑нᒳ㖑⧝⮊ҝϞ⧰Ἤፗ⸱ፗᏆፎ͞İፎ㍝ǖፗ㚵ও Ἤፎⷿʹ㓋ፗ⹏ᒳፎ͞İᬪᴎ⮊ҝϞƷղፗও᪪ᬪᴎᒳ㍝ᳳ℔⮊ҝϞፗፎ͞İᬪᴎ⚗ᝩ⹏ও᪪ፗḻ Ċ‣ᒳԸ㛽㒘⮊ҝϞওḻĶǖ PSoC® ў⮊ҝϞᒳଗضPSoC Creator Programmable System-on-Chip ў⮊ҝϞᒳضওፗᒳԸضଗض’ԸḴԸ Ըಿᘰ/⮊ҝϞ⮊ҝϞԸሲ⟳ᶽᶽᒳ⟳ᶽၷղ㑴᳕⟳ᒳ᳕֎⮊ҝϞƝও⇦⧧ ḴƷ⸱ፗᒳ㖍ᄛ⧘ᒳ⧧ፗፗͨ⮊ҝϞಿᘰᒳ୭ፎᵅ⨀⮊ҝϞಿᘰ୭ፎᔝᒳἬў’/ ͞İ⇦⧧Ḵ⇦ᒳྖ⸱ፗ⧝⟳ᒳϨ⮊ҝϞ㓵፤Ⱎ⽼ፗ㒓⸟Ķᒳፗ⹃ՙ⮊ҝϞᒳн㖑⧧ও᪪ಿᘰ⸊♻ͨ Ƒᵅ⨀ൃᝩ ⭒н⮊ҝϞ㊷ওտψǿ᪪ᒳнᝩӆᝩ⧰ě㑿㊷Ⴈፗ⹃ᒳ⸱㌯⸱ፗᒳӆᝩ⧰⮊ҝϞᎈ⹉ᘔᒳও⸟տψ⸊♻ԣ ͨᒳղ⮊ҝϞও⸟፤Ⱎᒳፗፗ⭒Ἤፎⷿʹ㓋ፗ⹏ᒳፎ͞İᬪᴎ⮊ҝϞƷղፗও᪪ᬪᴎᒳ ㍝ᳳ℔⮊ҝϞፗፎ͞İᬪᴎፗ⚗ᝩ⹏ও᪪ፗḻĊ‣ᒳԸ㛽㒘⮊ҝϞওḻĶǖ ፗἬ⸱ፗᒳ⮊ҝϞ⧧⧝㑿 ζڒᵅ001-68765 ⧑ၷ** ᥛ 13 㚤 13 㚤