Home - Search - Members
Full Version: Advice neeed for the online TUTORIAL on ST Microcontroller!
nicholastyc
May 20 2008, 12:22 AM
hi,
Anyone know about ST microcontroller from ST microelectronics, i need to make a program for this kind of microcontroller. Is there any link to the tutorial on the programming for this microcontroller ST72F521?

Any advice are welcome@_@ ! thank you...

Reason to use this microcontroller due to the request from my sponsor.
...sigh...
Ajay
May 20 2008, 12:49 AM
ST7 Controller family... hmm..
quiet new.. well what help you want.. what kind of tutorial you are looking for?

you can download application notes and reading material from ST Micro's website
http://www.st.com/stonline/products/literature/ds/7601.htm
nicholastyc
May 22 2008, 8:31 PM
hi Ajay i am looking for some examples code or the code explanations for the ST microcontroller, do you know is there any website that i can refer to? i already read on the datasheet, its not very helpful to the newbie that wan to make program on the micro ! =(
sashijoseph
May 23 2008, 12:52 AM
The software user manual provided by ST has code examples for all peripherals.Seems quite self-explanatory.
For eg. the ADC library func. code (pg 33) .......

This program converts the analog value on channel 5 of the ST72F62 device to a digital value.
/* Program start */
#include “st7lib_config.h” /* Select st72F62 device */
void main (void);
void main(void)
{
unsigned int Conv_Data1; /* Variable to get the converted digital value */
unsigned char channel = 5;
ADC_Init ((unsigned char )ADC_SPEED | (unsigned char )ADC_ONESHOT); /* FADC= FCPU/4 */
ADC_Select_Channel (channel); /* Channel 5 selected */
ADC_Enable (); /* Start conversion */
while (ADC_Test_Conversn_Complete () == FALSE);
Conv_Data1 = ADC_Conversn_Read (); /* Read the converted value */
ADC_Disable () ;
Nop; /* Macro defined in st7lib_config.h */
}
/* Program end */

Plz go through the this manual ... http://www.st.com/stonline/products/literature/um/11774.pdf

Go through the parts you're interested in and if you find any difficulties,post here...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Rickey's World © 2003 - 2007