Search found 24 matches

by Fabaum
Fri Apr 03, 2020 2:10 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 10
Views: 929

Re: Transfer of values ​​to ArduinoUNO original ports.

stas2z, the malfunction occurs even if the timer is paused. What restrictions do you talk about?
by Fabaum
Thu Apr 02, 2020 8:37 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 10
Views: 929

Re: Transfer of values ​​to ArduinoUNO original ports.

Hi, friends, ive not tested it, but its so basic and shouldn't cause any issue only if your are trying to use it in the interrupt hadler stas2z, that is exactly what I am doing, trying to use your suggestion within an interruption routine. The strange thing is that during the execution of this routi...
by Fabaum
Thu Apr 02, 2020 12:25 pm
Forum: STM32L4 based boards
Topic: Timer starts and then freezes.
Replies: 9
Views: 2057

Re: Timer starts and then freezes.

In fact, fpiSTM, I was using 5V on the pot when I realized that reading through the analog port stopped at a certain point. Fortunately, it did not damage the microcontroller!
Bakisha and ABOSTM, I will test the routine without pausing the timer, thanks for the suggestions!
by Fabaum
Wed Apr 01, 2020 7:05 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 10
Views: 929

Re: Transfer of values ​​to ArduinoUNO original ports.

Hi, stas2z, if your output ports are not on the same port sure you need to write it one by one but much better ti use array, loop and simple bitmath to not write A4 page of almost same copycat parts uint32_t pins[8] = {PA3, PA2, PA10, PB3, PB5, PB4, PB10, PA8}; void setPinsMode(void) { for (uint8_t ...
by Fabaum
Wed Apr 01, 2020 1:16 pm
Forum: STM32L4 based boards
Topic: Timer starts and then freezes.
Replies: 9
Views: 2057

Re: Timer starts and then freezes.

Hi ABOSTM, I am viewing the potentiometer values on an LCD display. Even with the potentiometer at its minimum value, the board's analog input reads 10 bytes, certainly due to some residual resistance. So, stating 10 as the minimum value, I establish that this is my zero point. The fact that I am re...
by Fabaum
Wed Apr 01, 2020 12:09 am
Forum: STM32L4 based boards
Topic: Timer starts and then freezes.
Replies: 9
Views: 2057

Timer starts and then freezes.

Hello friends, I am modifying an example program for testing the TIM2 general purpose timer of the STM32L476RG board. Just to check operation, LED1 is activated periodically by the timer. At the same time, I use an oscilloscope connected to pin PA5, which corresponds to LED1. With the fixed timing v...
by Fabaum
Mon Mar 30, 2020 7:42 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 10
Views: 929

Re: Transfer of values ​​to ArduinoUNO original ports.

Excelent, stas2z, thank you again!
by Fabaum
Mon Mar 30, 2020 4:42 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 10
Views: 929

Re: Transfer of values ​​to ArduinoUNO original ports.

Hi stas2z, Thanks for the answer. first i need to dissapoint you saying that PORTx are atmega only, it wil not work with STM32 You're absolutely right! In fact, due to the silence on this subject in the last days, I realized that I was wrong, relating things that are different (declaration of ports ...
by Fabaum
Sat Mar 28, 2020 3:10 pm
Forum: STM32L4 based boards
Topic: Transfer of values ​​to ArduinoUNO original ports.
Replies: 10
Views: 929

Transfer of values ​​to ArduinoUNO original ports.

Hello friends, I would like to use a shield that I developed for ArduinoUNO on the STM32L476RG board. In the original program, I transferred integer values ​​to the ports instead of triggering them pin by pin. As for the ArduinoUNO PORTB, only the first six pins are available (corresponding to digit...
by Fabaum
Fri Mar 27, 2020 1:52 pm
Forum: STM32L4 based boards
Topic: Problem with Hardware Timer example on STM32L476RG.
Replies: 3
Views: 331

Re: Problem with Hardware Timer example on STM32L476RG.

Hello friends, Thanks for the answers. I'm using the STM32L476RG board. The sample file I used initially is here: https://github.com/stm32duino/STM32Examples/blob/master/examples/Peripherals/HardwareTimer/Timebase_callback/Timebase_callback.ino Then, I found the site https://www.arduinolibraries.inf...

Go to advanced search