Search found 447 matches

by dannyf
Sat Oct 07, 2023 2:44 pm
Forum: General discussion
Topic: Tone library with no delay
Replies: 2
Views: 1443

Re: Tone library with no delay

my 2 cents:
1. nothing can be of no delay.
2. arrays need to be referenced.
3. may want to code the numbers (20 or 2) as macros or part of a struct so the users can reconfigure the library easily for his/her applications.
4. may want to remove the uart print out of the library.
by dannyf
Mon Oct 02, 2023 10:34 pm
Forum: General discussion
Topic: Writing to GPIOs on two different ports at the same time?
Replies: 12
Views: 3269

Re: Writing to GPIOs on two different ports at the same time?

It is impossible and unnecessary to have your original ask ("changing pin states on different ports at the same time").

It is possible and depending on the spec, to change the pin state on different ports sufficiently fast.

Understanding the timing on the software is key
by dannyf
Mon Oct 02, 2023 10:31 pm
Forum: General discussion
Topic: Genuine stm32f103c8t6 blue pill sources
Replies: 3
Views: 1683

Re: Genuine stm32f103c8t6 blue pill sources

It isn't always worth it to have a genuine chip.
by dannyf
Sat Sep 30, 2023 4:38 pm
Forum: General discussion
Topic: Problem with mils not working with max6675 library.
Replies: 11
Views: 4549

Re: Problem with mils not working with max6675 library.

this is less of an issue on the actual code but the approach to coding. I would suggest that you think about the key building blocks of what you are trying to do, and then figure out how to integrate the code. I would divide the code into 1) read the probe; 2) convert that probe reading into a duty ...
by dannyf
Thu Sep 28, 2023 11:34 am
Forum: General discussion
Topic: Problem with mils not working with max6675 library.
Replies: 11
Views: 4549

Re: Problem with mils not working with max6675 library.

Here's my sketch, maybe I'm missing something? maybe you want to change the way you write your code. I would do something like this. //update the display if (millis() - timer_display > PR_DISPLAY) { timer_display += PR_DISPLAY; //advance to the next update point //update the display update_display(...
by dannyf
Thu Sep 28, 2023 11:25 am
Forum: General discussion
Topic: Problem with mils not working with max6675 library.
Replies: 11
Views: 4549

Re: Problem with mils not working with max6675 library.

as others have mentioned, you need to help others to help you - a difficult spot to be in. short of that, two observations: 1. whether that particular loop works depends on many factors, including the initial value of "timer" and its type. 2. unstable control loop is often due to too much ...
by dannyf
Sun Sep 24, 2023 1:30 pm
Forum: Off topic
Topic: Taking a look at STM32G0 series
Replies: 94
Views: 162291

Re: Taking a look at STM32G0 series

it is fun to rig up anything. microchip has a good an on crystal oscillators: https://ww1.microchip.com/downloads/en/AppNotes/00826a.pdf you may also check out the si part I mentioned earlier - si5351. it is widely available with ready-made pcbs. you will also find arduino libraries made for it. a g...
by dannyf
Sat Sep 23, 2023 2:11 pm
Forum: Off topic
Topic: Taking a look at STM32G0 series
Replies: 94
Views: 162291

Re: Taking a look at STM32G0 series

with that said, modern HSIs are fairly accurate / very accurate. I am running UARTs off HSI at 115K2bps all day long. I think between accurate HSI, factory calibration, and user-trimming, HSIs can cover most of the use cases. HSEs still hold an advantage in terms of timing stability, however. so if ...
by dannyf
Sat Sep 23, 2023 11:06 am
Forum: Off topic
Topic: Taking a look at STM32G0 series
Replies: 94
Views: 162291

Re: Taking a look at STM32G0 series

if you want to use HSE, a few options. 1. find a chip that supports HSE. F0 or PY32 for example. 2. if space is a constraint, use an external oscillator (crystal or mems - less accurate), or small foot-print clock generator. 3. if space isn't a constraint, something like HC4060, or even a STM32F103 ...
by dannyf
Fri Sep 22, 2023 10:47 pm
Forum: Off topic
Topic: Taking a look at STM32G0 series
Replies: 94
Views: 162291

Re: Taking a look at STM32G0 series

what about 3n502?

I have used a part that's similar to cdce937 but with only 2 pll outputs. fairly easy to program (i2c).

Go to advanced search