AnsweredAssumed Answered

digital sampling of GPIO

Question asked by ml.michal on May 26, 2013
Latest reply on May 26, 2013 by ml.michal
Hi,

is it possible to sample GPIOA Bit7-0 into SRAM as byte and to have kind of "Clk" nonPWM output on other GPIO ,
with higher speed than 20MHz on STM32F103 72MHz ?

this gives me 10MHz clk output on PC2:

 Buffer_ptr=(uint8_t *)Buffer;
 while( 1 )
  {
    *(Buffer_ptr++)=(uint8_t)GPIOA->IDR;

    GPIOC->ODR = GPIO_Pin_2;

    if(Buffer_ptr>=(uint8_t *)(Buffer+20000))
      break;

    GPIOC->ODR = 0;
  }


Thank You for all replies

Outcomes