Hi I've ran into a strange issue.
When wanting to read an analogue value from PB0 or PB1. I've had to use the defines PB0/1 but PB_0 and PB_1 will always return 0...
While PA_4 and PA_5 will return analogue values.
I'm trying to understand why that's the case, and if that could be a bug?
I had ...
Search found 124 matches
- Wed Dec 18, 2024 1:40 pm
- Forum: General discussion
- Topic: Difference in pin defines?
- Replies: 1
- Views: 606
- Mon Sep 02, 2024 4:08 pm
- Forum: General discussion
- Topic: Problems with WS2812 on our F0 varient. (clock issue)
- Replies: 2
- Views: 1728
Re: Problems with WS2812 on our F0 varient. (clock issue)
It looks like adafruits library uses system tick delays, but FastLED uses SPI. Going to move this to an SPI pin in a later revision.
the 3.3V signal "Should" work... By that I mean I think I read it needs to be above 0.7V to read as high...
But even if the logic level is an issue... It wouldnt ...
the 3.3V signal "Should" work... By that I mean I think I read it needs to be above 0.7V to read as high...
But even if the logic level is an issue... It wouldnt ...
- Mon Sep 02, 2024 1:22 pm
- Forum: General discussion
- Topic: Problems with WS2812 on our F0 varient. (clock issue)
- Replies: 2
- Views: 1728
Problems with WS2812 on our F0 varient. (clock issue)
Im having a real PITA problem with one of our projects.
We have a string of ws2812's in our project and I just cant get them to display anything correctly. (they just go white)
I've pretty much found why, but No idea how to fix it.
Basically the datarate is only going out at 250khz. Way too slow ...
We have a string of ws2812's in our project and I just cant get them to display anything correctly. (they just go white)
I've pretty much found why, but No idea how to fix it.
Basically the datarate is only going out at 250khz. Way too slow ...
- Fri Aug 02, 2024 9:51 am
- Forum: General discussion
- Topic: Is ADC 10 or 12bit???
- Replies: 1
- Views: 3346
Is ADC 10 or 12bit???
Having a really strange issue at the moment reading some voltage values.
I've designed my code to read 12bit values (as per mcus spec) but my expected values are a quarter what they should be. Setting my function to run as 10bit mode shows the correct value (though off by 100mV)
Is stm32duino ...
I've designed my code to read 12bit values (as per mcus spec) but my expected values are a quarter what they should be. Setting my function to run as 10bit mode shows the correct value (though off by 100mV)
Is stm32duino ...
- Wed Jul 31, 2024 1:39 pm
- Forum: General discussion
- Topic: STM32F030RCT high power consumption in sleep modes?
- Replies: 21
- Views: 14530
Re: STM32F030RCT high power consumption in sleep modes?
With basic shutdown I got it to 0.14mA on my 3.3V rail which is good... But while I might be able to come up with a way to work with shutdown. Its going to be a pain... If could get around 0.5mA in a sleep state that can be woken up... I think that would satisfy everyone.
One interesting note I've ...
One interesting note I've ...
- Wed Jul 31, 2024 1:12 pm
- Forum: General discussion
- Topic: STM32F030RCT high power consumption in sleep modes?
- Replies: 21
- Views: 14530
Re: STM32F030RCT high power consumption in sleep modes?
It is called like this, but it's a "normal" sleep mode. Barely any reduction in power as everything stays powered on.
If you want it to go down to uA range, you need to put MCU into standby mode - use shutdown().
f030cb_power.png
Yeah shutdown might be an option... but it also adds some ...
- Wed Jul 31, 2024 1:11 pm
- Forum: General discussion
- Topic: STM32F030RCT high power consumption in sleep modes?
- Replies: 21
- Views: 14530
Re: STM32F030RCT high power consumption in sleep modes?
Hmm good point, I've already tried shutting clocks down, but it seems deepsleep is already doing that anyway so it didnt make any difference.
Most of the pins are floating in this test code.
When you say shut down the GPIOs, what way do you mean? Setting to OUTPUT (non sinking mode) and pulling ...
- Wed Jul 31, 2024 10:52 am
- Forum: General discussion
- Topic: STM32F030RCT high power consumption in sleep modes?
- Replies: 21
- Views: 14530
Re: STM32F030RCT high power consumption in sleep modes?
So yeah I should be able to hit sub 1mA
- Wed Jul 31, 2024 10:46 am
- Forum: General discussion
- Topic: STM32F030RCT high power consumption in sleep modes?
- Replies: 21
- Views: 14530
Re: STM32F030RCT high power consumption in sleep modes?
What kind of help do you expect, if you tell nothing about your project???
You know you really could do with being a little less antagonistic.
I'm not new here, and I'm not new to stm32 development.
I cant go into more details about the board because its a prototype for a mass production ...
- Wed Jul 31, 2024 9:23 am
- Forum: General discussion
- Topic: STM32F030RCT high power consumption in sleep modes?
- Replies: 21
- Views: 14530
Re: STM32F030RCT high power consumption in sleep modes?
I think power consumption varies between soc, if the 4mA isn't consumed by any other thing than the SOC itself, try a different board.
Maybe that alone would make a difference.
Oh yes, there is one more thing, unclock *all* the peripherals, practically shutdown everything gpio/adc/timers/spi/i2c ...