AnsweredAssumed Answered

GPIO QUESTION2

Question asked by delos_reyes.kristian on Jan 21, 2013
Latest reply on Jan 23, 2013 by delos_reyes.kristian
Hi guyz,

Thank you for your continous support,

heres my problem now

 while (1)
  {
    USART_SendData(USART1, 65);
    if (GPIO_ReadInputDataBit(GPIOB, GPIO_Pin_6)==1)
    {
      //GPIOB->IDR >> 8;
      USART_SendData(USART1, GPIOB->IDR>>0 & 0x00FF);
    }
  }
 }

I am trying to get data from port 0-7 only, from the serial out I am expecting it to
be "B" the one appearing from the portb is  "R"
be "C" the one appearing from the portb is  "S"
be "A" the one appearing from the portb is "Q"

my mode is internal pulldown.. but il check Ill manually ground unused pins

Outcomes