2013-12-26 09:07 PM
Guys,
Does anyone know on how to initialize RTC on STM32 and display the content of the register to LCD ? Any links or reference will be appreciated, Thank you #think!2013-12-27 02:09 AM
''Does anyone know on how to initialize RTC on STM32''
Which STM32?Have you studied its Documentation?Have you looked at the examples included in the Standard Peripheral Library?eg,STM32F37x_StdPeriph_Examples\RTC''display the content of the register to LCD''What LCD?In what form do you want to display it?The fact that it happens to be a value from the RTC is irrelevant to the LCD...
2013-12-27 08:04 AM
STM32F107 and LCD 20x4.....
2013-12-27 10:54 AM
Well that answers, ''which STM32?'' and is a partial answer to, ''What LCD?''
So what about the other questions:Have you studied its
Documentation?
Have you looked at the examples included in the Standard Peripheral Library?
In what form do you want to display it?And it remains that the fact that it happens to be a value from the RTC is irrelevant to the LCD...
''Does anyone know on how to initialize RTC on STM32''
Which STM32? Have you studied its Documentation? Have you looked at the examples included in the Standard Peripheral Library? eg, STM32F37x_StdPeriph_Examples\RTC''display the content of the register to LCD'' What LCD? In what form do you want to display it? The fact that it happens to be a value from the RTC is irrelevant to the LCD...
''Does anyone know on how to initialize RTC on STM32''
Which STM32? Have you studied its Documentation? Have you looked at the examples included in the Standard Peripheral Library? eg, STM32F37x_StdPeriph_Examples\RTC''display the content of the register to LCD'' What LCD? In what form do you want to display it? The fact that it happens to be a value from the RTC is irrelevant to the LCD...
2013-12-27 10:55 AM
STM32F107 and LCD 20x4.....
Have you studied its Documentation?
2014-01-04 03:06 PM
I can display some strings already in LCD and display RTC on USART,
My question is, how to use a variable on USART and display it on LCD ? code : printf(''Time: %d-%d-%d %02d:%02d:%02d \r\n'', time.tm_year, \ time.tm_mon+1, time.tm_mday,\ time.tm_hour, time.tm_min, time.tm_sec); sprintf(year,''%02d'',time.tm_year); lcd_string(time.tm_year); another reference that I can consider : http://www.st.com/st-web-ui/static/active/jp/resource/technical/document/application_note/DM00025071.pdf2014-01-06 03:54 PM
The golden rule of software development is: Divide and Conquer - ie, break the problem down until you reach smaller problems which are easily solved.
In this case, you have two independent ''problems'':1. Converting data - of whatever form, from whatever source - into a string format;2. Outputting an arbitrary string - irrespective of its content or source - to your chosen peripherals (UART, LCD, whatever,...)2014-01-07 02:39 PM
Another thread on the same topic:
http://goo.gl/w27Y72
2014-01-07 09:30 PM
2014-01-07 10:29 PM