Search found 5 matches

by bymb13
Wed Oct 11, 2017 12:57 pm
Forum: General Discussion and Questions
Topic: Swapped functions ?
Replies: 2
Views: 2053

Re: Swapped functions ?

Peter, thank you. I have just understood my error. :oops: We have : - the GPIOX_BSRR port bit set/reset register[31:0] (= [ BR15 ... BR0 ! BS15 ... BS0 ]) where : ---> the bits BSn used to set the corresponding bit PXn ---> the bits BRn used to zero the corresponding bit PXn and : - GPIO_BSRRL = GPI...
by bymb13
Wed Oct 11, 2017 8:19 am
Forum: General Discussion and Questions
Topic: Swapped functions ?
Replies: 2
Views: 2053

Swapped functions ?

Hi. I generate a frame on the pin X9/PB6 : - During 3000 ms, X9 = 1b - During 500 ms, X9 = 0b - During 1500 ms, X9 = 1b - During 500 ms, X9 = 0b - During 1500 ms, X9 = 1b ... I tried : - with pin.value([True|False]) : it's OK - with pin.[high|low]() : it's OK - with assembly code asm_[set|clear]_x9(...
by bymb13
Thu Sep 28, 2017 8:00 am
Forum: General Discussion and Questions
Topic: variable and ISR in assembler.
Replies: 4
Views: 3264

Re: variable and ISR in assembler.

After shaping of the text... Thank you for your answers. I badly expressed my problem. Sorry. For a project using a transducer of ultrasounds, I try to generate a periodic frame (Tf = 10 s). Each of the frame includes N pulses at 40 kHz. The PA13 pin (red led) is used for the test with a scope. The ...
by bymb13
Wed Sep 27, 2017 7:08 pm
Forum: General Discussion and Questions
Topic: variable and ISR in assembler.
Replies: 4
Views: 3264

Re: variable and ISR in assembler.

Thank you for your answers. I badly expressed my problem. Sorry. For a project using a transducer of ultrasounds, I try to generate a periodic frame (Tf = 10 s). Each of the frame includes N pulses at 40 kHz. The PA13 pin (red led) is used for the test with a scope. The Timer 4 is programmed for an ...
by bymb13
Tue Sep 26, 2017 5:52 pm
Forum: General Discussion and Questions
Topic: variable and ISR in assembler.
Replies: 4
Views: 3264

variable and ISR in assembler.

Hi.
I am a newbie about MicroPython.
How to increment a variable during an ISR written in assembler?
Best Regards.