2013-01-21 12:27 AM
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 pins2013-01-21 12:33 AM
2013-01-21 05:06 AM
You need to wait until the USART signals TXE (Transmit Empty) before shoveling more data out. The holding register can take a single byte, and transmission will be slow relative to a CPU running in the high MHz.
2013-01-22 10:00 PM
hmmm does it automatically holds data? so it buffere automatically? as you have said up to one byte?