Does pyboard use RTC pin as GPIO
-
- Posts: 363
- Joined: Sun Apr 17, 2016 1:55 pm
Does pyboard use RTC pin as GPIO
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
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.
PC13 is the RTC output on the STM32F405, which is available as X18 on the pyboard v1.1.
-
- Posts: 363
- Joined: Sun Apr 17, 2016 1:55 pm
Re: Does pyboard use RTC pin as GPIO
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.
#define MICROPY_HW_ENABLE_RTC (0)
but PC14/PC15 out value is not change.
Re: Does pyboard use RTC pin as GPIO
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.
-
- Posts: 363
- Joined: Sun Apr 17, 2016 1:55 pm
Re: Does pyboard use RTC pin as GPIO
I use a multimeter to measure voltage on capacitor, it is not change.
Or read the pin value, it always zero.
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
Are you using HSI or HSE?
Also, which pyboard do you have? I'm guessing that because Pin('PC14') worked, you have PYBLITE1.0?
Also, which pyboard do you have? I'm guessing that because Pin('PC14') worked, you have PYBLITE1.0?