AliBahar
Member level 2
Hi every body, I'm working on AVR program (using Atmega128) that communicates with PC based on rs232. the communicated data stream has an arbitrary length. there is no any information about data length in content of data packets. how can I detect the data stream length?
as you know we can calculate the interval time between data packets and any longer time should be considered bus idle time and the previous packet is considered as the end of data stream. please help me to make the code of this algorithm or any other useful methods.
usart setting : boudrate:9600 - one stopbit - Databits=8 - no parity
USART0 Receiver interrupt service is activated,
as you know we can calculate the interval time between data packets and any longer time should be considered bus idle time and the previous packet is considered as the end of data stream. please help me to make the code of this algorithm or any other useful methods.
usart setting : boudrate:9600 - one stopbit - Databits=8 - no parity
USART0 Receiver interrupt service is activated,