Page 1 of 1

Does pyboard use RTC pin as GPIO

Posted: Tue Sep 10, 2019 4:59 am
by shaoziyang
Does pyboard use RTC pin as general GPIO? I have try to turn off RTC in mpconfigboard.h, but when I set PC14/PC15 to OUT mode and set 1, it always get 0.

Re: Does pyboard use RTC pin as GPIO

Posted: Tue Sep 10, 2019 3:31 pm
by jimmo
Can you explain in more detail. PC14/15 are the oscillator pins, and on the pyboard they aren't accessible on the headers.

PC13 is the RTC output on the STM32F405, which is available as X18 on the pyboard v1.1.

Re: Does pyboard use RTC pin as GPIO

Posted: Wed Sep 11, 2019 3:23 am
by shaoziyang
I need more GPIOs, and not use RTC. So I turn off RTC by set

#define MICROPY_HW_ENABLE_RTC (0)

but PC14/PC15 out value is not change.

Re: Does pyboard use RTC pin as GPIO

Posted: Wed Sep 11, 2019 4:01 am
by jimmo
Right but I'm confused because PC14/15 aren't actually accessible on the pyboard headers (so how are you accessing them?), and furthermore, they are unrelated to the RTC.

Re: Does pyboard use RTC pin as GPIO

Posted: Wed Sep 11, 2019 1:06 pm
by shaoziyang
I use a multimeter to measure voltage on capacitor, it is not change.

Or read the pin value, it always zero.

Code: Select all

PC14=Pin('PC14', Pin.OUT)
PC14(1)
PC14()

Re: Does pyboard use RTC pin as GPIO

Posted: Wed Sep 11, 2019 2:01 pm
by jimmo
Are you using HSI or HSE?

Also, which pyboard do you have? I'm guessing that because Pin('PC14') worked, you have PYBLITE1.0?