GPIO QUESTION2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-21 12:27 AM
Posted on January 21, 2013 at 09:27
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
This discussion is locked. Please start a new topic to ask your question.
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-21 12:33 AM
Posted on January 21, 2013 at 09:33 there eventhough setuped us internal puldown it still needs proper pulldown resistors... solved. sorry for disturbance
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-21 5:06 AM
Posted on January 21, 2013 at 14:06
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.
Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Up vote any posts that you find helpful, it shows what's working..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2013-01-22 10:00 PM
Posted on January 23, 2013 at 07:00
hmmm does it automatically holds data? so it buffere automatically? as you have said up to one byte?
