| ??? 02/12/04 20:03 Read: times |
#64643 - RE: Circular buffers Responding to: ???'s previous message |
Hello all,
After reporting that my TX routine did work I started on my RX routines. During testing I found out that the TX routine didn't work correctly at all. When I place 10 bytes in one time (faster then transmitting is possible) and initiate transmitting it sometimes occurs that a character is destroyed. Every second 10 more bytes are placed in the buffer. When I monitor the two offsets and the TX_busy flag everything seems to be working fine.I placed my code on a 8051 user homepage I created for this purpose because copy and paste in this message messed up the source.I hope that's okay.... the link is : http://www.8052.com/users/peterhuijssen/ I wrote the code according to the example of Erik. It's in Bascom basic, I hope you don't mind. Again : after I finish some running projects I'm going to learn C. The baudrate settings and all other settings work correctly. The transmitted pattern (viewed in HyperTerminal, not not the best program... I know....) should be : <23456789:; Sometimes in various places in the pattern a byte is different but only one byte is different at the time I have searched my head of but I can't find the mistake I'm making Thanks in advance for any help Peter |



