Hello everyone. I am learning how to work with a HCS08 and I need to get information about temperature using a sensor LM35 and programming in C. Does anyone can help me? To be honest I am lost. (sorry for my bad English).
Solved! Go to Solution.
Hello Reinaldo,
I suppose you are not able to open the project because we have different versions of CodeWarrior.
I made the sample code using CodeWarrior for Microcontrollers-Eclipse IDE|Freescale
Anyway, you can find the main.c file attached to this response.
I hope this material helps.
Have a great day.
David
Hello Reinaldo,
In this case, the LM35’s output is a voltage linearly-proportional to the Centigrade temperature.
In order to deal with this output, I recommend to use the ADC Module of the DEMO9S08SE8.
You can find, attached to this response, a sample ADC project in order to read the LM35 output.
Please let me know if you have any question about the code provided. I will be glad to help.
You can find more information about the DEMO9S08SE8 at:
SE8 Demonstration Board|Freescale
Have a great day.
David
David, thank you so much to your answer.
I tried to run this sample on Codewarrior but it did not work.
Should I use another program?
Have a great day.
Reinaldo Costa
Hello Reinaldo,
I suppose you are not able to open the project because we have different versions of CodeWarrior.
I made the sample code using CodeWarrior for Microcontrollers-Eclipse IDE|Freescale
Anyway, you can find the main.c file attached to this response.
I hope this material helps.
Have a great day.
David
David, good morning.
Sorry to bother you one more time.
Could you send me the data sheet of the DEMO9S08SE8?
All I have found on the internet is the Quick Guide Start.
Thank you again to help me.
Have a great day.
Reinaldo Costa
Hello Reinaldo,
I am glad to help . Please feel free to ask any question you have.
In this case, the DEMO9S08SE8 counts with a MC9S08SE8 MCU.
You can find all the material (datasheet, application notes, etc) regarding the MC9S08SE8 MCU at the following link:
8-bit General Purpose SE MCUs|Freescale
I hope this information will be useful for you.
Have an excellent day.
David