Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Which should i select for program STM32F103RET6 in Keil(+a request for blink progra)?

Status
Not open for further replies.

rozeh

Junior Member level 1
Junior Member level 1
Joined
Jun 30, 2013
Messages
15
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
115
Hi everybody
i have a STM32F103RET6 and now i want to check it:wink:. well, when i going to select the MCU, i confused:-(. i don't know Which should i select?



when i see in datasheet, i don't find the size of my MCU:-(.



and my request:
who has a LED-blink program for check my MCU. please put here.
 

Look at Part numbering section.(page 123) You have R=64pins, E=512Kb flash, T=LQFP.
 
  • Like
Reactions: rozeh

    rozeh

    Points: 2
    Helpful Answer Positive Rating
Thank you Tommi,
and for LED-Blink, i found this example for it to this address:
Keil>ARM>Examples>Blinky

code:

Code:
#include <stm32f10x.h>                       /* STM32F103 definitions         */

/*----------------------------------------------------------------------------
  wait function
 *----------------------------------------------------------------------------*/
void wait (void)  {
  int  d;

  for (d = 0; d < 2000000; d++);             /* only to delay for LED flashes */
}


/*----------------------------------------------------------------------------
  Main Program
 *----------------------------------------------------------------------------*/
int main (void) {
  unsigned int i;                            /* LED variable                  */

  RCC->APB2ENR |= (1UL << 3);                /* Enable GPIOB clock            */

  GPIOB->CRH    =  0x33333333;               /* PB.8..16 defined as Outputs   */

  while (1)  {                               /* Loop forever                  */
    for (i = 1<<8; i < 1<<15; i <<= 1) {     /* Blink LED 0,1,2,3,4,5,6       */
      GPIOB->BSRR = i;                       /* Turn LED on                   */
      wait ();                               /* call wait function            */
      GPIOB->BRR = i;                        /* Turn LED off                  */
    }
    for (i = 1<<15; i > 1<<8; i >>=1 ) {     /* Blink LED 7,6,5,4,3,2,1       */
      GPIOB->BSRR = i;                       /* Turn LED on                   */
      wait ();                               /* call wait function            */
      GPIOB->BRR = i;                        /* Turn LED off                  */
    }
  }
}

how does this code work?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top