cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F070RB DMA channel TIMER setting for sevarel stem

Md Mubdiul Hasan
Associate III
Posted on September 25, 2016 at 02:50

STM32F070RB DMA channel TIMER setting for sevarel stem

6 REPLIES 6
Posted on September 25, 2016 at 03:19

I'm not sure what the question is here. The forum doesn't like mobile devices.

The Reference Manual is where to looks for associations between TIM and DMA

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Md Mubdiul Hasan
Associate III
Posted on September 26, 2016 at 02:33

Dear Sir,

Sorry for using mobile text that is not visible here.

I wanted to get help for few things implementing RTC, DMA,NVIC,TIMER etc.

My project has many steps as follows, 

1. Step-1, POWER ON

a) LED, 7-segment will reset.

                b) System entering the stand by status.

2. Step-2,  STAND BY STATE

a) Set Temperature push button,

               b) Set operating time button.

               c) Set Temperature reading button.

3. Step-3,  HEATING STATES

a)  7-segment reading for Temperature value.

                 b) After reaching a fixed temperature, warm up alarm LED and Buzzer will   sound for 10 seconds.

                 c) Alarm can be off by pushing alarm button.

4. Step-4,   BURN ACTION

                a) During burn action, the 7-segment will show the remaining time to burn. (Descending order)

                  b) After it finished, the burn alarm LED beeps for 10 sec.

                 Cc) Alarm can be OFF by alarm button.

                 d)This action can be cancelled by push button.

In this case I need to implement a timer base state machine.

1. What kind of code structure can be apply for collecting data?

2. Can you help me to explain how I can configure push key action for collecting SPI data in increasing/ descending order?

3. How to clear /reset 7segment in case of time and temperature setting?

Hope you will help me.

  

Posted on September 26, 2016 at 03:11

I'm not paid to do your project work, you'll need to discuss the implementation with your supervisor.

For a time base on Cortex-Mx processor you'd probably want to use SysTick, people often use 1ms ticker, but it depends on the resolution you desire.

You'll want to review the connectivity of the buttons, display, etc for your design, and start by configuring those. Once you have that done, work on the subroutines to put values into the display.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Md Mubdiul Hasan
Associate III
Posted on September 26, 2016 at 04:33

The original post was too long to process during our migration. Please click on the provided URL to read the original post. https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006I6fl&d=%2Fa%2F0X0000000bsv%2FPk8mZKEap.lpTQMN6rXG7ZZEwKhlr5J2K0uuBGQ4c5w&asPdf=false
Walid FTITI_O
Senior II
Posted on September 26, 2016 at 13:00

Hi hasan.md_mubdiul,

It seems you are working on a low power application with RTC and sensor read.

I recommend that you check the application examples with firmware done inside both application note AN4365''Using STM32F4 MCU power modes with best dynamic efficiency'' and AN4538 ''Power consumption optimization with STM32F3xx microcontrollers''. You will be inspired from the application state machine implemented in both scenarios.

I advise you in a first step to check some useful example inside the library STM32 standard peripheral library or STM32cubeF0 : like Power_consumption (stop, standby configuration) , RTC example, SPI/I2C rw example with DMA. Those example will give an overview of how to design and code each part for your application.

Good Luck.

-Hannibal-

Md Mubdiul Hasan
Associate III
Posted on September 27, 2016 at 02:36

Dear Sir Hannibal,

Thank you very much to have such suggestion.

I was going through AN3371, RM0091, PM0215, AN4735 and previously examples. 

Problem is to make user code as I am not firmware expert. 

My system has Stand by state that is not power standby related.

After finishing steps, system will return in stand by mode.

RTC application is crucial here,Let me read your recommended documents.

Thank you once again.

Regards

Hasan