DEMO9S08SE8 Temperature Sensor

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DEMO9S08SE8 Temperature Sensor

Jump to solution
1,149 Views
reinaldocosta
Contributor II

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).

Labels (1)
1 Solution
771 Views
david_diaz
NXP Employee
NXP Employee

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

View solution in original post

0 Kudos
Reply
5 Replies
771 Views
david_diaz
NXP Employee
NXP Employee

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

771 Views
reinaldocosta
Contributor II

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

0 Kudos
Reply
772 Views
david_diaz
NXP Employee
NXP Employee

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

0 Kudos
Reply
771 Views
reinaldocosta
Contributor II

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

0 Kudos
Reply
771 Views
david_diaz
NXP Employee
NXP Employee

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.

DEMO9S08SE8.jpg

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

0 Kudos
Reply