Hi, The image shows what I want to do
Configure a timer to accept count up 1024 pulses from one revolution
and then take a reset pulse, probably one pin with interrupt for fast action,
The reset pulse is short.
Then up to 16 outputs for valves, each shall open during a defined part of revolution
How to configure the timer ?
How to write the code?
Very grateful for help and comments
Best regards
BenOve
Configure Timer in EasyMx PRO v7 for STM32 ?
Configure Timer in EasyMx PRO v7 for STM32 ?
- Attachments
-
- 0000.jpg (39.58 KiB) Viewed 9854 times
- dusan.poluga
- mikroElektronika team
- Posts: 780
- Joined: 02 Feb 2017 14:21
Re: Configure Timer in EasyMx PRO v7 for STM32 ?
Hi,
All information about configuring a micro controller is located in the chosen micro controller datasheet.
Unfortunately teaching you how to write code and teaching you programming is out of scope of technical support.
Regards,
All information about configuring a micro controller is located in the chosen micro controller datasheet.
Unfortunately teaching you how to write code and teaching you programming is out of scope of technical support.
Regards,
Dusan Poluga.
Re: Configure Timer in EasyMx PRO v7 for STM32 ?
Oops
Definition Forum =
" a meeting or medium where ideas and views on a particular issue can be exchanged "
I have NOT asked for normal technical support.
The issue is mikroC PRO for ARM Wish List
The starting point is this main problem :
It can be extremely hard to configure a processor and to understand how to do it from
thousands of pages of datasheets.
ST has recognized this huge problem and created STM32CUBE - a true revolution in the processor industry -
My main reason to use ST in the future, is CUBE
I have also understood that Mikroe tries to simplify for users in different ways.
You have been quite successful.
Maybe Mikroe has an even better solution than CUBE and examples ?
What I offer here is a practical example and it is probably the hottest challenge ever
for the Mikroe ARM compiler to approach this.
Telling how to do it with descriptions and examples.
If Mikroe has no solution to this important problem then Mikroe should state very clearly for people
considering to buy the compiler
that there is no comfortable way to use timers and other resources in the Mikroe ARM compiler,
compared to other compilers (like Atollic)
that Mikroe doesn't support CUBE,
that Mikroe has no plans to support CUBE,
that Mikroe has no equally good method,
If Mikroe has no answer at all to these questions,
why not use and sell Atollic instead and focus on
your excellent EasyMx PRO v7 for STM32 boards,
and develop them to be fully compatible with ST ?
Make all pins from processor available like NUCLEO
and integrate the definitions inside STM32CUBE
Just an idea
Best regards
BenOve
Definition Forum =
" a meeting or medium where ideas and views on a particular issue can be exchanged "
I have NOT asked for normal technical support.
The issue is mikroC PRO for ARM Wish List
The starting point is this main problem :
It can be extremely hard to configure a processor and to understand how to do it from
thousands of pages of datasheets.
ST has recognized this huge problem and created STM32CUBE - a true revolution in the processor industry -
My main reason to use ST in the future, is CUBE
I have also understood that Mikroe tries to simplify for users in different ways.
You have been quite successful.
Maybe Mikroe has an even better solution than CUBE and examples ?
What I offer here is a practical example and it is probably the hottest challenge ever
for the Mikroe ARM compiler to approach this.
Telling how to do it with descriptions and examples.
If Mikroe has no solution to this important problem then Mikroe should state very clearly for people
considering to buy the compiler
that there is no comfortable way to use timers and other resources in the Mikroe ARM compiler,
compared to other compilers (like Atollic)
that Mikroe doesn't support CUBE,
that Mikroe has no plans to support CUBE,
that Mikroe has no equally good method,
If Mikroe has no answer at all to these questions,
why not use and sell Atollic instead and focus on
your excellent EasyMx PRO v7 for STM32 boards,
and develop them to be fully compatible with ST ?
Make all pins from processor available like NUCLEO
and integrate the definitions inside STM32CUBE
Just an idea
Best regards
BenOve
Re: Configure Timer in EasyMx PRO v7 for STM32 ?
Hi BenOve, Mikroe has no control over CobeMx. CubeMx is made by STmicro so if you want mE compilers to be supported by CubeMx then you should ask STmicro themself. Also if Atollic and CubeMx combo satisfies more your needs for this particular project then use it but don't blame mE for this please.
I personnally use CubeMx and it's not a pefect solution either. It will only configure the timer for you and generate a lot of functions (more or less documented) to work with this timer. To do what you want to achieve you will by the way need to write extra code.
Mikroe does provide TimerCalculator https://libstock.mikroe.com/projects/vi ... calculator which will not configure the timer as you need but can give you some hints about the registers you will have to deal with.
I personnally use CubeMx and it's not a pefect solution either. It will only configure the timer for you and generate a lot of functions (more or less documented) to work with this timer. To do what you want to achieve you will by the way need to write extra code.
Mikroe does provide TimerCalculator https://libstock.mikroe.com/projects/vi ... calculator which will not configure the timer as you need but can give you some hints about the registers you will have to deal with.
Last edited by Toley on 29 Mar 2017 12:04, edited 1 time in total.
Serge T.
Learning is an endeless process but it must start somewhere!
Learning is an endeless process but it must start somewhere!
- dusan.poluga
- mikroElektronika team
- Posts: 780
- Joined: 02 Feb 2017 14:21
Re: Configure Timer in EasyMx PRO v7 for STM32 ?
Hi BenOve,BenOve wrote:Oops
Definition Forum =
" a meeting or medium where ideas and views on a particular issue can be exchanged "
I have NOT asked for normal technical support.
The issue is mikroC PRO for ARM Wish List
The starting point is this main problem :
It can be extremely hard to configure a processor and to understand how to do it from
thousands of pages of datasheets.
ST has recognized this huge problem and created STM32CUBE - a true revolution in the processor industry -
My main reason to use ST in the future, is CUBE
I have also understood that Mikroe tries to simplify for users in different ways.
You have been quite successful.
Maybe Mikroe has an even better solution than CUBE and examples ?
What I offer here is a practical example and it is probably the hottest challenge ever
for the Mikroe ARM compiler to approach this.
Telling how to do it with descriptions and examples.
If Mikroe has no solution to this important problem then Mikroe should state very clearly for people
considering to buy the compiler
that there is no comfortable way to use timers and other resources in the Mikroe ARM compiler,
compared to other compilers (like Atollic)
that Mikroe doesn't support CUBE,
that Mikroe has no plans to support CUBE,
that Mikroe has no equally good method,
If Mikroe has no answer at all to these questions,
why not use and sell Atollic instead and focus on
your excellent EasyMx PRO v7 for STM32 boards,
and develop them to be fully compatible with ST ?
Make all pins from processor available like NUCLEO
and integrate the definitions inside STM32CUBE
Just an idea
Best regards
BenOve
I apologize if my first reply to you was a little harsh.
I understand your frustration regarding the configuration manuals for STM32 micro controllers,
and I also understand the convenience of the STM CUBEMX that ST provides.
We try to attack the problem to reduce the complexity with our compiler libraries as much as we can.
Also we try to provide examples that describe the usage of our libraries and peripherals.
We do not have a code generator like CUBEMX but we have in plans to introduce something like this.
Also on libstock you can find stm32 timer examples and our timer calculator application.
https://libstock.mikroe.com/projects/vi ... m32-timers
https://libstock.mikroe.com/projects/vi ... calculator
Many things can be found there and it can prove to be a great resource.
If you have any questions do not hesitate to ask.
Regards,
Dusan Poluga.
Re: Configure Timer in EasyMx PRO v7 for STM32 ?
Exactly what I was looking for, thanks
- dusan.poluga
- mikroElektronika team
- Posts: 780
- Joined: 02 Feb 2017 14:21