Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/14/06 23:34
Read: times


 
#112191 - 8052 UART with interrupts and RX buffer
Hello!

I have made a code fragment which uses Timer-2 initialized for 9600-N-8-1 setting. An RX buffer is implemented in internal RAM for 10 bytes.

I send a packet from PC, which is saved in teh RX buffer. After the 8052 recieved the 10th byte of packet (containing ETX symbol 'Z'), it processes the packet for command and performs work accordingly.

I send a command with 5 parameters and the 8052 just rtansmits those 5 characters back to teh PC. Just for checkign purposes. Till here it works fine. The moment i send a command that stores these 5 bytes in External RAM and then reads this data back from external ram and tries to transmit to PC, it either hangs up or starts sending garbage characters.

Can any one help in this regard? I guess there is something wrong with the code. I can mail the code to anyone willing to comment / help on thsi one.

Thank you.


List of 3 messages in thread
TopicAuthorDate
8052 UART with interrupts and RX buffer            01/01/70 00:00      
   Can't help without ALL the information            01/01/70 00:00      
   External RAM faulty?            01/01/70 00:00      

Back to Subject List