When you write data in USART1_DR it is sent and you can't read it back from USART1_DR.USART1_DR is for both writing data to be sent and reading received data. If you want to make a test, you can connect Tx to Rx and you will read back your data. That is my own understanding, perhaps ST people can confirm this. regards, MCU Lüfter
ANN is making doing an interesting job. He is using his own code and he doesn't like to use ST one (as I am doing now). Good idea but that could be time consuming job. MCU Lüfter
Posted on May 17, 2011 at 15:10 Hi. Yah it is. but time, time time............. :D anyway, ST library is open, soo she can directly point it to library to get the real code, as datasheet is really not that complete, and which i think ST provided(the lib) to fill that ''not complete'' part. Also, as ST said, there library set-up is compatible/almost same to there ST32, planning to jump on ST32 would be easy. So your planning to make your library? :) Have a nice-fun Coding Lüfter and ANN
Thanks for your replies. Problem has been solved now. What I want is not to build up my own lib. I just want to understand the functionality of STM8L. A learning process. Rather than using provided examples coding of my own makes the thing more understandable and controlable. Thanks :p