Search found 7 matches

by bit_factory
Thu Feb 13, 2020 9:31 pm
Forum: General discussion
Topic: PIN_MAP in STM32 cores
Replies: 3
Views: 3035

Re: PIN_MAP in STM32 cores

I know,
but with maple I can do that:

Code: Select all


#define RS_PIN PA6
gpio_dev* RS_GPIO = PIN_MAP[RS_PIN].gpio_device;
...
//now I can use RS_GPIO that points to GPIOA (the port device of PA6 pin)

I'm looking for something similiar with The STM32 core

Thank
by bit_factory
Thu Feb 13, 2020 12:53 am
Forum: General discussion
Topic: PIN_MAP in STM32 cores
Replies: 3
Views: 3035

PIN_MAP in STM32 cores

Hi everybody, passing from Roger Clark to STM32 cores I've noticed there is no structure analogue to PIN_MAP present in the last one. My problem is to get the GPIO port of a given pin referred by his macro. For example I need to get the GPIO pointer of PA12 pin. With Clarks library the pointer is PI...
by bit_factory
Tue Jan 28, 2020 1:58 am
Forum: General discussion
Topic: ADC sample rate of 5 Ms/s on bluepill STM32F103
Replies: 12
Views: 23950

Re: ADC sample rate of 5 Ms/s on bluepill STM32F103

Very good simulation pito. I think an error of 3% is accettable for my case.
Thank you for advices ;)
by bit_factory
Mon Jan 27, 2020 4:57 pm
Forum: General discussion
Topic: ADC sample rate of 5 Ms/s on bluepill STM32F103
Replies: 12
Views: 23950

Re: ADC sample rate of 5 Ms/s on bluepill STM32F103

ag123 thank you for the answer. :D I'm looking for a good input stage with single supply op-amp schematic now that can shift AC source to adc levels, decopuling it, etc. I'm not so experienced in analog circuitry so I will be grateful if you can suggest me a simple circuit with a decent and "ch...
by bit_factory
Mon Jan 27, 2020 1:08 pm
Forum: General discussion
Topic: ADC sample rate of 5 Ms/s on bluepill STM32F103
Replies: 12
Views: 23950

Re: ADC sample rate of 5 Ms/s on bluepill STM32F103

stevestrong you are really right. But at the moment sampling Pwm pin with a 4.7uf cap between output and GND (just to have a waveform slighty different from a square one) the trace @5Ms/s it is really similar if not equal to the one @1.7 Ms/s. Visually I can compare the trace cause my routine can v...
by bit_factory
Mon Jan 27, 2020 11:43 am
Forum: General discussion
Topic: ADC sample rate of 5 Ms/s on bluepill STM32F103
Replies: 12
Views: 23950

Re: ADC sample rate of 5 Ms/s on bluepill STM32F103

The fact is that I'm really sampling very well a pwm out pin at 5 Ms/s. It is working opposite it should not.
by bit_factory
Sun Jan 26, 2020 11:55 pm
Forum: General discussion
Topic: ADC sample rate of 5 Ms/s on bluepill STM32F103
Replies: 12
Views: 23950

ADC sample rate of 5 Ms/s on bluepill STM32F103

Helo everybody, I'm just a little bit confused about the maximum sample speed in dual interleaved mode for the STM32F103 chip. I start to play using pig-o-scope code. My goal was to develope this simply but good project, adding some new features. One of them the ability of setting different sample r...

Go to advanced search