PSoC® Creator™ ᳳΟƝ ᔧᵅᠺᓹͭ (PGA_Inv) 1.60 Ⴈ • ᓹℲ -1 -49 • 㤇ⷂ㑪 • ⨲Ṇ⧭ᶝ ⸟ޱ ᔧᵅᠺᓹͭ (PGA_Inv) ᳳᇟፗᵅᠺᓹᒳⷿᧆͭᒳᔧͭ ֔ಿ SC/CT ࡐ ᔧᓹᒳℲ -1.0 (0 dB) • -49.0 (+33.8 dB)⹉ⷶ⽼ᶝ⸸Ęᓹፗǿᒳ API ⷿ ♻Хԣᓹⷿᧆͭᒳᓹ㑿ԯᓹХԯ PGA_Inv ᒳⷂ•⸊♻ўԯⷂɵVin Vref 㐣ᒳ㑿 Vdda / ᓹPGA_Inv ᒳⷂ A ᳖⯢㤇ᒳ⭎ⶬ፤㑪ḻ⠯•⸊♻ PGA_Inv ፗⷂᒳŞ⯢㟅⸸ᒳⷂְⷂְᔧPGA_Inv ᶝ ਃⶲࡐΟƑద㛀Şᓹ PGA_Inv ፗᓹ᳖ᵂ ፎⷂ ⷂ/ⷂ⸍ǔ ⷂ ⷂ⸍ǔ ՛ᤏ₱ PGA_Inv ᒳⷂⷂ⸍ǔI/O ⚗ᒳю (*) ⚗ᝩ I/O Ἤ㒿⏾⨔ I/O ⨣ нᒳᒳᥕ Vin – ࡐĎ Vin ⷂ᳷ᤞ Vref – ࡐĎ Vref ḲᒳⷂᤞḲⷂԸ㤇㑪⸍ǔ•Ḳ Vdda/2VDAC ⷂⰞ፠•Ὁ Cypress Semiconductor Corporation • 198 Champion Court • San Jose, CA 95134-1709 • 408-943-2600 ɤўᵅ☷001-68767 ⧑ਦ** ⧑Х㐣⇥20114Է4Д ᔧᵅᠺᓹͭ (PGA_Inv) PSoC® Creator™ ᳳΟƝ Vout – ࡐĎ Vout ⷂ፤᳷ᤞVout (Vin - Vref) ᓹᒳΟ Vout = Vref + (Vin-Vref) * ᓹ ᓹ⭎ Ο⧭ᶝ PGA_Inv ᳳąͭᒳ⧭⧐“⽼ᶝ”⨌ٵ Figure 1“⽼ᶝ ⽼ᶝ PGA_Inv”⨌ٵ ⨌ٵ Inverting_Gain ⨔Οፗ⧭ᶝͭᒳ㴇⧓ᓹǿᒳ⧧ᔧᓹ-1㴇⧓-3-7-15-22 -24-31-47 -49 Ṇ ፗ⧭ᶝ PGA_Inv ᒳ㢠Ṇ“Ṇ Ṇ”⧭ᶝ PGA_Inv ⷂᒳ⹎ Ṇ Ṇ⧭ᶝԸԯ㴇⧓㤇“”Ṇ⧭ᶝ‣ԯ㎮Х㐣“㤇”Ṇ⧭ᶝ ‣ԯᘜХ㐣ፗ PGA_Inv_SetPower() API ⷿ♻Х⧭ᶝ“Ṇ Ṇ” Ṇ ᥛ 2 㚤 12 㚤 ʋᵅ⇥001-68767 ⧑ࠂ** PSoC® Creator™ ᳳΟƝ ᔧᵅᠺᓹͭ (PGA_Inv) ͭᶝ ૐԸႨͭᶝᒳ⸸㚨 ⭳ಿ PGA_Inv ፗ SC/CT ࡐԸ⨔ࡐᒳ⨕ᳵ⨦Ḳ⸱ፗᒳΟƝ⚗՞ Ḳ(TRM)⸈ζ⮊ҝϞᶀᤈǿ API ₱ ₱ Οࡐ ࡐĎࡐ ΟƝⰞ ქ ǖ ⧐Ο 7 㐙 RAM Ὁ ৾ Ὁ ⼗ I/O 1 SC/CT ࡐ ፗ ፗ ፗ ፗ ፗ 356 20 3 ፗᠺᵅᠺǔ ፗᠺᵅᠺǔ (API) ᠺፗ֔⽼ᶝᳳ ⚗Ǿ⸟৾Οᒳǔ 㖑ᒳᤏ₱ԣ⨕ᳵ৾Ο 㴇⧓PSoC Creator “PGA_Inv_1”⽼ᴈĶ⧭⧐ᳳᒳᥛ ⨔ᥕ⧵ضᥕ⨜⟳ᒳ⨔৾Ο ᥕᒳᴯ⨪Ḳ⒀⚗ፗᒳ“PGA_Inv” Ο ⨣н void PGA_Inv_Start(void) PGA_Inv void PGA_Inv_Stop(void) 㐜 PGA_Inv ፤ಿ void PGA_Inv_SetGain(uint8 gain) 㚳ᒳ⧭ᶝᓹ void PGA_Inv_SetPower(uint8 power) ⧭ᶝ⧭ᶝ㢠Ṇ void PGA_Inv_Sleep(void) ፗ⽼ᶝ void PGA_Inv_Wakeup(void) ፗፗ⽼ᶝ void PGA_Inv_SaveConfig(void) ᢩΟ֔ፗ void PGA_Inv_RestoreConfig(void) ᢩΟ֔ፗ ʋᵅ⇥001-68767 ⧑ࠂ** ᥛ 3 㚤 12 㚤 ᔧᵅᠺᓹͭ (PGA_Inv) PSoC® Creator™ ᳳΟƝ Ο ⨣н void PGA_Inv_Init(void) 㴇⧓ PGA_Inv ⽼ᶝ void PGA_Inv_Enable(void) ፗ PGA_Inv PGA_Inv_initVar ⨣н ⚗ᝩ PGA_Inv ў 0ᥛॐ⨲ፗ PGA_Inv_Start() Х⧭ᶝ 1⸈٦ᥛॐ⨲ፗ PGA_Inv_Start() ᠺᳳፗϟ 㔯ϟᳳ PGA_Inv_Start() or PGA_Inv_Enable() Ο⨲ፗ PGA_Inv_Init() Ο void PGA_Inv_Inv_Start(void) ⨣н ⨣н PGA_Inv ⧭ᶝṆ᳖ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ void PGA_Inv_Stop(void) ⨣н ⨣н 㐜 PGA_Inv ፗԯᒳṆქ ଗ⧝ PSoC 3 ES2 PSoC 5 ES1 ⃞ၶፗ⨔ API⸈ᵩ㒦‣ ΟࡐĎ⭳ಿᒳ⸍ǔՙ፤Х㖏㖏ᇟᳳፗᒳ⭳ಿХ Џ⹉ᘔᒳ⭔ࡐĎᳳ⹏ᒳᴂ⧝⹉ⷶ⨲ፗ PGA_Inv_Start() Ο⨔ᳳ᳷፤ქ⨦⨲ፗ PGA_Inv_Stop() Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ ЏṆᓹ⧭ᶝ ᥛ 4 㚤 12 㚤 ʋᵅ⇥001-68767 ⧑ࠂ** PSoC® Creator™ ᳳΟƝ ᔧᵅᠺᓹͭ (PGA_Inv) void PGA_Inv_SetGain(uint8 gain) ⨣н ⨣н ͭᓹ⧭ᶝ -1 • -49⚗ѭᝩԸͷᓹ⧭ᶝ Ο Ο Uint8 gainᓹ⧭ᶝႨԸԸͷᓹ⧭ᶝ⨦⟰⚗ ᓹ⧭ᶝ ଗ PGA_Inv_GAIN_01 ᓹ = -1 PGA_Inv_GAIN_03 ᓹ = -3 PGA_Inv_GAIN_07 ᓹ = -7 PGA_Inv_GAIN_15 ᓹ = -15 PGA_Inv_GAIN_22 ᓹ = -22 PGA_Inv_GAIN_24 ᓹ = -24 PGA_Inv_GAIN_31 ᓹ = -31 PGA_Inv_GAIN_47 ᓹ = -47 PGA_Inv_GAIN_49 ᓹ = -49 ⸃ ⸃ Џ ፗ ፗ Џ void PGA_Inv_SetPower(uint8 power) ⨣н ⨣н 㢠Ṇ⧭ᶝ⧭ᶝԯ㤇 Ο Ο (uint8) powerṆ᳖⧭ᶝ⧭ᶝ㤇 Ṇ⧭ᶝ ଗ PGA_Inv_MINPOWER ԸͷṆԯХ㐣ԯ㎮ PGA_Inv_LOWPOWER Ṇ⹎ PGA_Inv_MEDPOWER Ṇ⹎ PGA_Inv_HIGHPOWER ԸͷṆԯ㤇Х㐣ԯᘜ ⸃ ⸃ Џ ፗ ፗ Џ ʋᵅ⇥001-68767 ⧑ࠂ** ᥛ 5 㚤 12 㚤 ᔧᵅᠺᓹͭ (PGA_Inv) PSoC® Creator™ ᳳΟƝ void PGA_Inv_Sleep(void) ⨣н ⨣н ⸈ўᳳᖐᕏᒳ㟅⸸ᠺPGA_Inv_Sleep() Οᳳᒳქཥ⨔Ο⨲ ፗ PGA_Inv_Stop() Ο PGA_Inv_SaveConfig() ֔᚛⽼ᶝ ⨲ፗ CyPmSleep() CyPmHibernate() Ο⨲ፗ PGA_Inv_Sleep() ΟԸ፤ಿ᧐ ስΟᒳԣ⨦Ḳ PSoC Creator System Reference GuideᬪᴎḲĶ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ void PGA_Inv_Wakeup(void) ⨣н ⨣н ⸈ўᳳ⨲ፗ PGA_Inv_Sleep() Хქᒳ㟅⸸ᠺPGA_Inv_Wakeup() Ο⨲ ፗ PGA_Inv_RestoreConfig() Ο⽼ᶝᳳᬪᴎ⨲ፗ PGA_Inv_Sleep() Ο ፗ PGA_Inv _Wakeup() Οϟፗᳳ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ ⨲ፗ PGA_Inv_Wakeup() Οՙ⨲ፗ PGA_Inv_Sleep() PGA_Inv_SaveConfig() Ο Ἤፎ♻ void PGA_Inv_SaveConfig(void) ⨣н ⨣н ᢩΟ֔ፗ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ void PGA_Inv_RestoreConfig(void) ⨣н ⨣н ᢩΟ֔ፗ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ ᥛ 6 㚤 12 㚤 ʋᵅ⇥001-68767 ⧑ࠂ** PSoC® Creator™ ᳳΟƝ ᔧᵅᠺᓹͭ (PGA_Inv) void PGA_Inv_Init(void) ⨣н ⨣н ٨Ɲ’ᠺᒳ“⽼ᶝ”⨌⧭ٵᶝᳳЏ㔯⨲ፗ PGA_Inv_Init() PGA_Inv_Start() ᠺ⨲ፗ⨔Ο⸈ўᳳ˼ᒳ㟅⸸Ϩ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Ը٨Ɲ’ᠺ“⽼ᶝ”⨌⧭ٵᶝᔧᒳ void PGA_Inv_Enable(void) ⨣н ⨣н ෯୪᚛ᳳ˼Џ㔯⨲ፗ PGA_Inv_Enable() PGA_Inv_Start() ᠺ⨲ ፗ⨔Ο⸈ўᳳ˼ᒳ㟅⸸Ϩ Ο Ο Џ ⸃ ⸃ Џ ፗ ፗ Џ ಿᘰᝩ ಿᘰᝩ PSoC Creator “ؔᝩ㚨ᔝ”⨌ٵǿᝩ㚨ᔝěᝩᝩᘰ℔➰⇦ Ⴈᳳᒳᝩ⨦“ᳳᔝ”ᝩᳳ⨔⨌ٵ℔➰⇦⁛ᝩ⨦ 㚤ζ ζ∋⨔⨌ٵ٨Ɲ㔯➰⨌ٵፗᦊ⸸⸸㚨 ᦊ⸸⸸㚨ᵘፗ⸸Ęᒳ㚨ᔝ ζ ᦊ⸸⸸㚨 ⚗ᒳℲ Ըԣ⨦Ḳ PSoC Creator ᒳ“ؔᝩ㚨ᔝ”㛇 ἬǾ⸟ PGA_Inv ў፠ҝ⹉ SC/CT ࡐֳᒳ⹉ⷶ⨲Σ Ra Rb ፤㑪֔⸸Ęᓹ⨦⟰ ٨Ɲ⸸ĘᒳᓹRa ⧭ᶝ 20K 40K ॖRb ⧭ᶝ 20K • 1000K ॖፎ “⽼ᶝ”⨌ٵ SetGain Ο⸸ᒳᓹ 2 PGA_Inv ስ Rb Vin Ra Vout Vref ʋᵅ⇥001-68767 ⧑ࠂ** ᥛ 7 㚤 12 㚤 ᔧᵅᠺᓹͭ (PGA_Inv) PSoC® Creator™ ᳳΟƝ ⨔ࡐԸ㞷፤㑪 Rb ♻ᒳᵅᠺ፤፤㊷৾ॐᓹ⸸Ę⸊♻⽼ᶝⷭ⧰ᒳᡢ ϟ⽼ Rb ૐԸ⸸Ęᔧᒳ㞷፤Ἤ‣ PGA_Inv ᡢ⧝ ᓹፗǿᒳ API PGA_Inv ᒳⷂ፤㑪ўԸ㑿ᒳᓹಿ Vin ⷂ㐣ᒳⰞ፠፤㑪ᓹ⟳Ⅎ٨ƝⰞ ፠፤㑪ᒳض⸊♻⨲Σ PGA_Inv ᳳ⽼ᶝ SC[0..3]_CR0SC[0..3]_CR1 SC[0..3]_CR2 ᇟ⸈ ⹉ⷶḲᒳᳳ PGA_Inv_1_CR0_REGፗᘰ⸊♻⧮㐝 PSoC Creator ᳳ⨲⨄ᣆؔᔺԸᒳ⨕ᳵ⨣н⨦Ḳ⮊ҝϞᶀᤈ⸱ፗ ᒳ TRMPGA ᳳ⨲⨄ᣆѭᝩ PGA_Inv_1_CR0_REG ፤ǖ 0 ⨣н ⨣н 3:1 ⽼ᶝ፤ࡐࡐ PGA ᳳ⨔⧭ᶝ 110b PGA_Inv_1_CR1_REG ፤ǖ 1 ⨣н ⨣н ⽼ᶝ፤ࡐᒳ㢠ࡐ⚔፤ᓹ⧭ᶝ PGA_Inv_1_CR2_REG ፤ǖ 2 ⨣н ⨣н ⽼ᶝ፤ࡐᒳⷂ㑪㞷㑪Ḳǔ⸸Ę PGA_Inv_1_PM_ACT_CFG_REG ԸͷṆࡐ⽼ᶝ 9 ⨣н ⨣н 3:0 ፗ፤ࡐᒳ፤ಿ ᥛ 8 㚤 12 㚤 ʋᵅ⇥001-68767 ⧑ࠂ** PSoC® Creator™ ᳳΟƝ ᔧᵅᠺᓹͭ (PGA_Inv) ᔣ୰፤୰፤፤Ⴈ ⚗ᝩ㚳⧐ᒳἬႨΟƝ㒓㖍⚗Ķ TA = 25° CVdd = 5.0 VṆ = 㤇ⷿᧆͭ = ࡐĎǔ፤Ḳᒳⷂ ፤ = Vssa 5.0V/3.3V ᔣ୰፤Ⴈ ͥ㓵ΟƝ⨔⚗ᒳၷ՛ԣϟ Ο ⨣н ԯ ԯ Vin ⷂ፤Ⅎ Ṇࡐ = ԯ Vssa – Vdda V Vos ⷂᠪ፤ Ṇࡐ = 㤇 ᓹ = 1Vdda = 5 V – 10 mV TCVos ⷂᠪ፤ౘറᠪ Ṇࡐ = 㤇 ᓹ = 1Vdda = 5 V – ±30 µV/°C Ge1 ᓹ⨞ᓹ = 1 Vdda = 5 V – ± ±0.15 % Ge16 ᓹ⨞ᓹ = 16 Vdda = 5 V – ± ±2.5 % Ge50 ᓹ⨞ᓹ = 50 Vdda = 5 V – ± ±5 % Gd1 ᓹറᠪᓹ = 1 – ± ± ppm/°C Gd16 ᓹറᠪᓹ = 16 – ± ± ppm/°C Gd50 ᓹറᠪᓹ = 50 – ± ± ppm/°C Vonl ᔣ୰ⷂ㖍ᳮ – – ±0.01 FSR ᒳ % Rin ⷂ፤㑪 35 – – M Cin ⷂ፤ – – pF VohVol ⷂ፤ɵ Ṇࡐ = 㤇 ᓹ = 1Rload = 100 k • VDDA / 2 VDDA – 0.15 VSSA + 0.15 V Iout ⷂ፤୰ಿ፤୰ ፤୰ VSSA + 500 mV = Vout = VDDA – 500 mV – µA Idd ፤୰ Ṇࡐ = 㤇 – 1.5 1.65 mA PSRR ፤ಿਃ 69 – dB ʋᵅ⇥001-68767 ⧑ࠂ** ᓹ = 1 ᥛ 9 㚤 12 㚤 ᔧᵅᠺᓹͭ (PGA_Inv) PSoC® Creator™ ᳳΟƝ ፤୰ౘṆ = ԯ ؠქⷂᠪ፤ 18 16 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 ፤୰ౘṆ = 5.5V 3.3V 2.7V 1.71V 0 50 deg C 100 150 ፤୰ౘṆ = 㤇 1200 1200 1100 1100 Idda uA 1000 1000 900 900 5.5V 3.3V 2.7V 1.71V 800 700 5.5V 3.3V 2.7V 1.71V 800 Idda uA 700 600 600 500 -50 0 50 deg C 100 150 500 -50 0 50 deg C 100 150 5.0V/3.3V ୰፤Ⴈ Ο ⨣н ԯ ԯ BW1 –3 dB Ṇࡐ = 㤇 ᓹ = 1Vdda = 5 V 7 – MHz SR1 ϋᆶ Ṇࡐ = 㤇 ᓹ = 120% • 80% 3 – V/µs en ⷂ Ṇࡐ = 㤇 Vdda = 5 V100 kHz – 43 – nV/sqrtHz ᥛ 10 㚤 12 㚤 ʋᵅ⇥001-68767 ⧑ࠂ** PSoC® Creator™ ᳳΟƝ ᔧᵅᠺᓹͭ (PGA_Inv) ᓹ㛀ᆶᓹ⧭ᶝVdda = 3.3 VṆࡐ =㤇 ፤Vdda = 5.0VṆ = 㤇 1000 nV/rtHz ͥ㓵ΟƝ 100 10 0.01 0.1 1 kHz 10 100 1000 ᓹ⧭ᶝᒳౘṆ = 㤇 ͥ㓵ΟƝ ᳳԣͨ ՛₱ᳳၷ՛ᔧਃᒳ➰ԣͨ ၷ՛ 1.60 ԣͨ⨣н ԣͨ/ ԣͨ ᳳ’ᠺ㒓 VDDA ᳳᒳ VDDA ⧭ᶝᳳḻ⠯ૐԸ➰ওΟ Ο 㒓ᳳؔ⨑ DWR ԯ VDDA ᒳ⧭ᶝ➰Х ’ፗତ ě㛀ᆶ⚗ᒳ⽼ᶝᣆ ԣፗ GUI ᒳ⽼ᶝᣆૐԸǿ⯢ᒳፗ ԣζᒳ SetGain ǿᴈ SetGain API ᒳ⸈⛚ԣ ʋᵅ⇥001-68767 ⧑ࠂ** ᥛ 11 㚤 12 㚤 ᔧᵅᠺᓹͭ (PGA_Inv) ၷ՛ PSoC® Creator™ ᳳΟƝ ԣͨ⨣н ԣͨ/ ԣͨ ΟƝపႨΟƝ ΟƝ⸊♻ᵅⷀԣϟ 1.50 పᖐᕏ/⿁/Ἤ API ᔝᒳў͞İṆࡐǿ⹉ፗǔǖΟᳳ ᒳἬ 㒓ᓹ⧭ᶝ 23 ᓹ 23 ǔ⸀ 22 24ওǿ ԣϟᥕ“⽼ᶝ”⨌ٵ ԣϟᥕض © ⮊ҝϞ2011ওᒳἬ㒾Хԣͨ♻⹉ᘔ㒓⮊ҝϞᒳ፤Ⱎ⮊ҝϞ፤Ⱎᒳፗ⭒٨Ɲ ղнᝩӆᝩᒳϨƷ⧧㒓㖍⮊ҝϞ⧑нᒳ㖑⧝⮊ҝϞ⧰Ἤፗ⸱ፗᏆፎ͞İፎ㍝ǖፗ㚵ও Ἤፎⷿʹ㓋ፗ⹏ᒳፎ͞İᬪᴎ⮊ҝϞƷղፗও᪪ᬪᴎᒳ㍝ᳳ℔⮊ҝϞፗፎ͞İᬪᴎ⚗ᝩ⹏ও᪪ፗḻ Ċ‣ᒳԸ㛽㒘⮊ҝϞওḻĶǖ PSoC® ў⮊ҝϞᒳଗضPSoC Creator™ Programmable System-on-Chip™ ў⮊ҝϞᒳضওፗᒳԸضଗض’ԸḴԸ Ըಿᘰ/⮊ҝϞ⮊ҝϞԸሲ⟳ᶽᶽᒳ⟳ᶽၷղ㑴᳕⟳ᒳ᳕֎⮊ҝϞƝও⇦⧧ ḴƷ⸱ፗᒳ㖍ᄛ⧘ᒳ⧧ፗፗͨ⮊ҝϞಿᘰᒳ୭ፎᵅ⨀⮊ҝϞಿᘰ୭ፎᔝᒳἬў’/ ͞İ⇦⧧Ḵ⇦ᒳྖ⸱ፗ⧝⟳ᒳϨ⮊ҝϞ㓵፤Ⱎ⽼ፗ㒓⸟Ķᒳፗ⹃ՙ⮊ҝϞᒳн㖑⧧ও᪪ಿᘰ⸊♻ͨ Ƒᵅ⨀ൃᝩ ⭒н⮊ҝϞ㊷ওտψǿ᪪ᒳнᝩӆᝩ⧰ě㑿㊷Ⴈፗ⹃ᒳ⸱㌯⸱ፗᒳӆᝩ⧰⮊ҝϞᎈ⹉ᘔᒳও⸟տψ⸊♻ԣ ͨᒳղ⮊ҝϞও⸟፤Ⱎᒳፗፗ⭒Ἤፎⷿʹ㓋ፗ⹏ᒳፎ͞İᬪᴎ⮊ҝϞƷղፗও᪪ᬪᴎᒳ ㍝ᳳ℔⮊ҝϞፗፎ͞İᬪᴎፗ⚗ᝩ⹏ও᪪ፗḻĊ‣ᒳԸ㛽㒘⮊ҝϞওḻĶǖ ፗἬ⸱ፗᒳ⮊ҝϞ⧧⧝㑿 ᥛ 12 㚤 12 㚤 ʋᵅ⇥001-68767 ⧑ࠂ**