Search found 20 matches

by picclock
Thu Jun 16, 2022 12:38 pm
Forum: General discussion
Topic: timer source from other timer ?
Replies: 16
Views: 3991

Re: timer source from other timer ?

@ag123 The problem I have with millis is that they require constant checking. So if I am using 4 things that require delays I these will get checked millions of times before they actually timeout. The other issue is that nothing is done until the check for millis is made, so its impossible to resolv...
by picclock
Tue Jun 14, 2022 8:47 am
Forum: General discussion
Topic: timer source from other timer ?
Replies: 16
Views: 3991

Re: timer source from other timer ?

Many Thanks for all the replies and ingenious suggestions. I had tried changing the prescaler as suggested, but I must have mucked it up. With The prescaler set to 0xffff, the maximum delay for a 32bit is 1864 hours :o . In my tests for seconds the setOverflow count must be set to n*640. So even wit...
by picclock
Sat Jun 11, 2022 3:21 pm
Forum: General discussion
Topic: timer source from other timer ?
Replies: 16
Views: 3991

timer source from other timer ?

I'm struggling a bit with the timers on the STM32f4011. Max time for Tim2 (32 bit) seems to be between 30-60 seconds. I would like to use the output of one timer as the clock source for several others, like an additional prescaler. I'd prefer to do it this way as it will have minimum impact on syste...
by picclock
Tue May 17, 2022 5:26 am
Forum: General discussion
Topic: Unwanted ISR call from timer ??
Replies: 7
Views: 2030

Re: Unwanted ISR call from timer ??

@ozcar
Thankyou for that, it now works perfectly :D .
I had spent some time trying to figure it out, but the timers on the STM32F's are a bit complex for me. I've never come across the "refresh()" procedure?? command before, but it works a treat.

Many Thanks

Best Regards

picclock
by picclock
Mon May 16, 2022 1:11 pm
Forum: General discussion
Topic: Unwanted ISR call from timer ??
Replies: 7
Views: 2030

Unwanted ISR call from timer ??

Simple timer setup is resulting in an ISR call before time period elapsed. Timer is instantiated, pause(d), setOverflow value written, Interrupt attached, and resumed. The ISR is called immediately (1 second delay shows LED illuminated before ISR turns it off). Not sure how to proceed. Either the ti...
by picclock
Tue May 03, 2022 2:56 pm
Forum: General discussion
Topic: STM32F4 timer interrupt help needed
Replies: 4
Views: 1308

Re: STM32F4 timer interrupt help needed

@ GonzoG
Thank You so much. I have spent hours trying to figure this out, getting nowhere.
Cunningly shortening the links so that they appear identical in the posts didn't help either :( .

Many Thanks for your assistance !!

Best Regards

picclock
by picclock
Tue May 03, 2022 1:25 pm
Forum: General discussion
Topic: STM32F4 timer interrupt help needed
Replies: 4
Views: 1308

Re: STM32F4 timer interrupt help needed

@GonzoG The source code I am using is the official example per the link I quoted in my post. Arduino Version is 1.8.15 If Board is selected as Blackpill : STM32F401CCU6 Error: 'TIM_TypeDef' does not name a type TIM_TypeDef* _timer; or If Board selected as Generic STM32F series, then Generic F401CCU6...
by picclock
Tue May 03, 2022 11:46 am
Forum: General discussion
Topic: STM32F4 timer interrupt help needed
Replies: 4
Views: 1308

STM32F4 timer interrupt help needed

Hi I'm trying to implement a timer software interrupt. I've tried using the example from : https://github.com/stm32duino/STM32Examples/blob/824017c21d555001db1ce047d97b562c1b7b6a9c/examples/Peripherals/HardwareTimer/Timebase_callback/Timebase_callback.ino But this fails with: STM32TimerInterrupt.h:6...
by picclock
Thu Apr 07, 2022 3:04 pm
Forum: General discussion
Topic: stm32f rtc memory space?
Replies: 5
Views: 2556

Re: stm32f rtc memory space?

OK I think I figured it. I wrote a program to clear and read back the BU Ram contents and found that Location 1 holds some data from the RTC. Not sure why 1?, unable to locate declaration. I was using location 0 as a checksum for the BU values, which would seem more logical. Reprogramming the chip (...
by picclock
Wed Apr 06, 2022 11:42 am
Forum: General discussion
Topic: stm32f rtc memory space?
Replies: 5
Views: 2556

Re: stm32f rtc memory space?

@ fpiSTM
I have examined the two header files, STM32RTC.h and rtc.h (and the cpp file) but I cannot find any info on reserved bu ram use.
Do you know which ram locations are used, or where they might be declared.
Best Regards
picclock

Go to advanced search