STM32F7 4 Power controller (PWR)

Started by tha, October 14, 2022, 06:47:32 AM

Previous topic - Next topic

tha

4 Power controller (PWR)

4.1 Power supplies

The device ต้องการ a 1.8 ถึง 3.6 V operating voltage supply (VDD). An embedded linear voltage regulator ถูกใช้ในการจ่าย the internal 1.2 V digital power.

The real-time clock (RTC), the RTC backup registers, and the backup SRAM (BKP SRAM) สามารถถูกให้กำลังจาก the VBAT voltage เมื่อ the main VDD supply ถูกปิด.

Note: ขึ้นอยู่กับ the operating power supply range, บาง peripheral อาจถูกใช้ด้วย functionality and performance ที่จำกัด.
          สำหับรายละเอียดที่มากขึ้นอ้างอิงถึง section "General operating conditions" ใน STM32F75xxx and STM32F74xxx
          datasheets.

tha


tha

4.1.1 Independent A/D converter supply and reference voltage

เพื่อปรับปรุง conversion accuracy, the ADC มี an independent power supply ซึ่งสมารถแยกถูกกรองและป้องกันจาก noise บน the PCB.
•   The ADC voltage supply input มีให้ใช้งานบน a separate VDDA pin.
•   An isolated supply ground connection ถูกจัดให้มีบน pin VSSA.

เพื่อให้แน่ใจว่าความเที่ยงตรงที่ดีขึ้นของ low voltage inputs, ผู้ใช้สามารถต่อ a separate external reference voltage ADC input บน VREF. The voltage บน VREF ช่วงจาก 1.8 V ถึง VDDA.


tha

4.1.2 Independent USB transceivers supply

The VDDUSB คือ an independent USB power supply สำหรับ full speed transceivers (USB OTG FS และ USB OTG HS ใน FS mode). มันสามาถถูกต่ออย่างใดอย่างหนึ่งถึง VDD หรือ an external independent power supply (3.0 ถึง 3.6V) สำหรับ USB transceivers (ดูที่ Figure 6 แะ Figure 7). ตัวอย่างเช่น, เมื่อ the device ถุกให้กำลังที่ 1.8V, an independent power supply 3.3V สามารถถูกต่อกับ VDDUSB. เมื่อ the VDDUSB ถูกต่อกับ a separated power supply, มันเป็นอิสระจาก VDD หรือ VDDA แต่มมันต้องเป็น the last supply ที่จะถูกจัดให้มีและก่อนอื่นไม่ปรากฎ. เงื่อนไขต่อไปนี้ VDDUSB ต้องถูกปฏิบัติตาม:
•   ในระหว่าง power-on phase (VDD < VDD_MIN), VDDUSB ควรต่ำกว่า VDD เสมอ
•   ในระหว่าง power-down phase (VDD < VDD_MIN), VDDUSB ควรต่ำกว่า VDD เสมอ
•   VDDUSB rising and falling time rate specifications ต้องถูกปฏิบัติตาม
•   ใน operating mode phase, VDDUSB อาจต่ำกว่าหรือสูงกว่า VDD:
     –   ถ้า USB (USB OTG_HS/OTG_FS) ถูกใช้, the associated GPIOs ที่จ่ายไฟโดย VDDUSB กำลังทำงานระหว่าง
          VDDUSB_MIN and VDDUSB_MAX.
     –   The VDDUSB จะจ่ายไฟทั้ง USB transceiver (USB OTG_HS and USB OTG_FS). ถ้าเฉพาะ one USB transceiver ถูก
          ใช้ใน the application, the GPIOs ที่เกี่ยวข้องกับ the other USB transceiver ยังคงถูกจ่ายไฟที่โดย VDDUSB.
     –   ถ้า USB (USB OTG_HS/OTG_FS) ไม่ได้ถูกใช้, the associated GPIOs ที่จ่ายไฟโดย VDDUSB กำลังทำงานระหว่าง
          VDD_MIN and VDD_MAX.




tha

4.1.3 Battery backup domain

Backup domain description

เพื่อรักษาสิ่งที่บรรจุอยู่ภายในของ the RTC backup registers, backup SRAM, และจ่ายไฟ the RTC เมื่อ VDD ถูกปิด, VBAT pin สามารถถูกต่อกับ an optional standby voltage ที่จ่ายไฟโดย a battery หรือโดยแหล่งจ่ายอื่น.

เพื่อยอมให้ the RTC ทำงานถึงแม้เมื่อ the main digital supply (VDD) ถูกปิด, the VBAT pin จ่ายกำลังให้ the following blocks:
•   The RTC
•   The LSE oscillator
•   The backup SRAM เมื่อ the low-power backup regulator ถูกเปิดใช้งาน
•   PC13 ถึง PC15 I/Os, รวมถึง PI8 I/O (เมื่อมีให้ใช้งาน)

การสวิทช์ไปยัง the VBAT supply ถูกควบคุมโดย the power-down reset ที่ฝังใน the Reset block.

     คำเตือน: ในระหว่าง tRSTTEMPO (การปรับให้เหมาะสมเมื่อ VDD startup) หรือหลังจาก a PDR ถูกตรวจพบ, the power
                      switch ระหว่าง VBAT and VDD ยังคงต่ออยู่กับ VBAT.
                      ในระหว่าง the startup phase, ถ้า VDD ถูกสร้างขึ้นน้อยกว่า tRSTTEMPO (ดูที่ the datasheet สำหรับค่าของ
                      tRSTTEMPO) และ VDD > VBAT + 0.6 V, a current อาจถูกฉีดลงใน VBAT ผ่านทาง an internal diode ที่ต่อ
                      ระหว่าง VDD และ the power switch (VBAT).
                      ถ้า the power supply/battery ที่ต่อกับ the VBAT pin ไม่สามารถรองรับ current injection นี้, ขอแนะนำอย่างยิ่ง
                      ให้ต่อ an external low-drop diode ระหว่าง power supply นี้และ the VBAT pin.

tha

ถ้าไม่มี external battery ถูกใช้ใน the application, ขอแนะนำให้ต่อ the VBAT pin เข้ากับ VDD โดยมี a 100 nF external decoupling ceramic capacitor ต่อขนานด้วย.

เมื่อ the backup domain ถูกจ่ายไฟโดย VDD (analog switch ถูกต่อกับ VDD), ฟังชั่นต่อไปนี้มีให้ใช้งาน:
•   PC14 and PC15 สามารถถูกใช้เป็น GPIO หรือ LSE pins อย่างใดอย่างหนึ่ง
•   PC13 and PI8 สามารถถูกใช้เป็น a GPIO pin (ดูที่ Table 147: RTC pin PC13 configuration และ Table 148: RTC pin PI8
     configuration สำหรับายละเอียดที่มากขึ้นเกี่ยวกับ pins configuration เหล่านี้)

Note: เนื่องจากความจริงที่ว่า the switch รับกระแสไฟในปริมาณที่จำกัด (3 mA) เท่านั้น, การใช้ของ GPIOs PI8 และ PC13 ถึง PC15
          ถูกจำกัด: the speed ต้องถูกจำกัดไว้ที่ 2 MHz ด้วย a maximum load of 30 pF และ I/Os เหล่านี้ต้องไม่ถูกใช้เป็น a
          current source (ตัวอย่างเช่น เพื่อขับ an LED)


เมื่อ the backup domain ถูกจ่ายไฟโดย VBAT (analog switch ถูกต่อกับ VBAT เนื่องจาก VDD ไม่ปรากฎ), ฟังชั่นต่อไปนี้มีให้ใช้งาน:
•   PC14 and PC15 สามารถถูกใช้เป็น LSE pins เท่านั้น
•   PC13 สามารถถูกใช้เป็น tamper pin (TAMP1)
•   PI8 สามารถถูกใช้เป็น tamper pin (TAMP2)

tha

Backup domain access

หลังจาก reset, the backup domain (RTC registers, RTC backup register and backup SRAM) จะถูกป้องกันต้าน possible unwanted write accesses. เพื่อเปิดใช้งานการเข้าถึงไปยัง the backup domain, มีขั้นตอนดังต่อไปนี้:

•   เข้าถึงไปยัง the RTC and RTC backup registers
1.   เปิดใช้งาน the power interface clock โดยการเซ็ต the PWREN bits ใน the RCC_APB1ENR register (ดู Section 5.3.13)
2.   เซ็ต the DBP bit ใน the PWR power control register (PWR_CR1) เพื่อเปิดใช้งานการเข้าถึงไปยัง the backup domain
3.   เลือก the RTC clock source: ดู Section 5.2.8: RTC/AWU clock
4.   เปิดใช้งาน the RTC clock โดยการโปรแกรม the RTCEN [15] bit ใน the RCC backup domain control register
      (RCC_BDCR)

•   เข้าถึงไปยัง the backup SRAM
1.   เปิดใช้งาน the power interface clock โดยการเซ็ต the PWREN bits ใน the RCC_APB1ENR register (ดู Section 5.3.13)
2.   เซ็ต the DBP bit ใน the PWR power control register (PWR_CR1) เพื่อเปิดใช้งานการเข้าถึงไปยัง the backup domain
3.   เปิดใช้งาน the backup SRAM clock โดยการเซ็ต BKPSRAMEN bit ใน the RCC AHB1 peripheral clock register
      (RCC_AHB1ENR).

tha

RTC and RTC backup registers

The real-time clock (RTC) เป็น an independent BCD timer/counter. The RTC จัดให้มี a time-of-day clock/calendar, two programmable alarm interrupts, และ a periodic programmable wakeup flag ที่มีความสามารถในการอินเตอร์รัพท์. The RTC บรรจุ 32 backup data registers (128 bytes) ซึ่งถูกรีเซ็ตเมื่อ a tamper detection event เกิดขึ้น. สำหรับรายละเอียดที่มากขึ้นดูที่ Section 29: Real-time clock (RTC).