Skip to main content
SMars.8
Associate
August 14, 2018
Question

Is SYSCFG_VREFBUF_HIGH_IMPEDANCE_ENABLE (HIZ) also set by the LSB of the RCC_APB2ENR register being set?

  • August 14, 2018
  • 3 replies
  • 776 views

In the STM32l476, I have found that the VREFBUF_CSR

register 'HIZ' bit is being set from default 0 to 1 when SET_BIT(RCC->APB2ENR, RCC_APB2ENR_SYSCFGEN) is executed.  RCC_APB2ENR_SYSCFGEN is the LSB.

    This topic has been closed for replies.

    3 replies

    waclawek.jan
    Super User
    August 14, 2018

    VREFBUF_CSR.HIZ is by default 1:

    0690X000006BtWdQAK.png

    However, reading VREFBUF registers returns all 0 until VREFBUF clock is not enabled in RCC.

    And it so happens, that VREFBUF shares its clock-enable bit with SYSCFG (and also COMP):

    0690X000006BtWiQAK.png

    JW

    SMars.8
    SMars.8Author
    Associate
    August 15, 2018

    Thank you https://community.st.com/s/profile/0050X000007vqmpQAA, I hadn't noticed the default setting of HIZ being 1 according to RM0351.  Yes the value of VREFBUF_CSR is all zero at startup, and remains so until RCC_APB2ENR bit 0 is set.

    waclawek.jan
    Super User
    August 15, 2018

    So if this has been answered, please mark so. Thanks.

    JW