F103C8 does not have DAC (analog output), only PWM so what you get is correct.
If you want analog output you need MCU with DAC or external DAC.
Search found 408 matches
- Mon Sep 21, 2020 1:29 am
- Forum: General discussion
- Topic: analogRead showing a digital behaviour
- Replies: 6
- Views: 4093
- Thu Sep 17, 2020 8:19 pm
- Forum: General discussion
- Topic: No power through usb. STM32F103c8t6
- Replies: 1
- Views: 1477
Re: No power through usb. STM32F103c8t6
Looks like regulator got fried.
- Sat Sep 05, 2020 9:14 am
- Forum: IDE's
- Topic: Clock frequency change
- Replies: 7
- Views: 10247
Re: Clock frequency change
As .rpv wrote, this 60mA current draw has to come from something else than MCU.
I have F401 anf F411 black pills and they draw about 20mA.
And some F103 Bluepills which draw about 30mA.
I have F401 anf F411 black pills and they draw about 20mA.
And some F103 Bluepills which draw about 30mA.
- Wed Aug 26, 2020 9:23 am
- Forum: IDE's
- Topic: I2c with Nucleo L476
- Replies: 10
- Views: 11154
Re: I2c with Nucleo L476
To power RTC connect 3V battery to VBAT and GND. before starting RTC.
To use RTC with VBAT power, you need to set clock source to LSE Code: Select all
rtc.setClockSource(STM32RTC::LSE_CLOCK);
- Tue Aug 25, 2020 5:23 pm
- Forum: IDE's
- Topic: I2c with Nucleo L476
- Replies: 10
- Views: 11154
- Tue Aug 25, 2020 9:37 am
- Forum: IDE's
- Topic: Software Interrupt
- Replies: 2
- Views: 3765
Re: Software Interrupt
You can use Hardware Timer to generate time base interrupts:
https://github.com/stm32duino/wiki/wiki ... er-library
https://github.com/stm32duino/wiki/wiki ... er-library
- Thu Aug 20, 2020 1:46 pm
- Forum: STM32F1 based boards
- Topic: STM32F103C8T6 + neopixels
- Replies: 9
- Views: 17820
Re: STM32F103C8T6 + neopixels
Adafruit library works only with STM32 core.
- Wed Aug 19, 2020 11:14 pm
- Forum: STM32F1 based boards
- Topic: STM32F103C8T6 + neopixels
- Replies: 9
- Views: 17820
Re: STM32F103C8T6 + neopixels
Just change
#define PIN 6
to
#define PIN PA10
But Adafruit library isn't optimized for STMs and on F103 it takes over 1ms to send data for 8 LEDs (about 280-300us on Arduino UNO/nano).
#define PIN 6
to
#define PIN PA10
But Adafruit library isn't optimized for STMs and on F103 it takes over 1ms to send data for 8 LEDs (about 280-300us on Arduino UNO/nano).
- Wed Aug 19, 2020 6:47 pm
- Forum: Libraries & Hardware
- Topic: 8 Bit TFT Library Issue
- Replies: 17
- Views: 16678
Re: 8 Bit TFT Library Issue
Probably you try to access "Serial" in your library which isn't initialized and program hangs. To see if program hangs I use simple test with LED: turn LED on before tft.begin(), turn it off after. If you use Serial to output any data, use it in "if" if(Serial) Serial.print("...
- Wed Aug 19, 2020 12:31 am
- Forum: Let us know a bit about you and your projects
- Topic: STM32F103C8T6 GPIOB_ODR
- Replies: 4
- Views: 3739
Re: STM32F103C8T6 GPIOB_ODR
in STM core:
GPIOB->ODR = x;
GPIOB->ODR = x;