STM32F2 USART IDLE Detection
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-06-30 6:22 AM
Posted on June 30, 2012 at 15:22
Hello,
I'am using two STM32F207IG with the UART1's configured as RS232 (8n1,115200, no flowcontrol, asynch) connected via null-modem.Each 10 �s the master sends a byte to the slave (status bit USART_SR_TC is set).My problem:Only at every second received byte the status bit USART_SR_IDLE is set.I can't fix, if this a a problem of the master/transmitter of slave/receiver.Regards,Holger #usart-uart
Labels:
- Labels:
-
UART-USART
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
‎2012-06-30 6:56 AM
Posted on June 30, 2012 at 15:56
Get a scope and confirm you have a frame of idle time between the bytes. The assertion of TC means the last bit exited the shift register, you'd need to wait ~10 bit times beyond that to meet the idle criterion of the receiver.
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
‎2012-06-30 7:17 AM
Posted on June 30, 2012 at 16:17
even if I set the time between two bytes to 10 seconds, I get the same result.
bytes 1,3,5,... IDLE Flag clearedbytes 2,4,6,... IDLE Flag setI have no scope - see you another way to fix this problem?HolgerOptions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2012-06-30 11:01 AM
Posted on June 30, 2012 at 20:01
''I have no scope''
Trying to do embedded development without a scope is a bit like trying to do carpentry without a saw...
A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
A complex system designed from scratch never works and cannot be patched up to make it work.
