December 5th, 2013, 04:00 AM
December 5th, 2013, 11:40 AM
In order to provide you with an answer, we need a question. The best answers need specific questions.
What part are you having difficulty understanding?
December 5th, 2013, 02:31 PM
That is a lot of code to "explain", what is it you do not understand? Ask specific questions. It is on the whole rather simple (and not particularly high quality) code for an 8051 architecture microcontroller.
The code includes a number of non-standard language extensions, such as bit variables (8051 has a block of bit addressable memory). The compiler manual for the compiler it was written for will explain these extensions.
Most of the code involves writing to I/O registers, the result of which will depend entirely on the connected hardware, but for the most part I imagine it does exactly what is stated in the associated comments so long as it is running on the hardware for which it was written.