Reading Temp from LM75B using LPC1769 and LPCXpresso experiment board

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

Reading Temp from LM75B using LPC1769 and LPCXpresso experiment board

564 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Warren.Yoxon on Mon Aug 19 07:02:34 MST 2013
hey,

Basically I am using the LPC1769 LPCXpresso board, along with the LPCXpresso Experiment board.
Here is the link just in case you are not sure which board. http://www.embeddedartists.com/products/lpcxpresso/experiment_kit.php,

the software that i am using is the LPCXpresso IDE,
Link below for the version i am using,
http://www.code-red-tech.com/RedSuite5/lpcxpresso-5.php

I want to learn how to retrieve the data readings by using the I2C communications,

I would also like to display that value in the console window using the printf function.

I have already started writing a project, which has no errors at the moment but not sure if this is correct for retrieving the data I require.

Any help on this matter would be great, and can also upload any files that might need looked at.

Cheers Warren
Labels (1)
0 Kudos
4 Replies

475 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Warren.Yoxon on Tue Aug 27 02:27:12 MST 2013
Hi Ken,

Got all my issues sorted now, i now know that i am sending and receiving data to and from the LM75b. i have got the by using a Logic port analyzer. what i wanted to expand on was how to get the temperature reading from the LM75b and display this on the screen, by using the printf function. is it possible to include my project so that you can have a look?

also open to any improvements that could be made within my project.

Cheers Warren
0 Kudos

475 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by usb10185 on Tue Aug 20 06:50:54 MST 2013
Hi Warren,

What are the errors? Have you all the correct files imported to the workspace?

Best to get the code compiling first, there are a few options and you will need to decide the best one that works for you.

The LPCOpen platform has LPC176x support:
http://www.lpcware.com/content/nxpfile/lpcopen-platform

The older code bundles also has I2C examples:
http://www.lpcware.com/system/files/mcb1700.code_.bundle.lpc1769.lpcxpresso.zip

Regards,
Ken
0 Kudos

475 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Warren.Yoxon on Tue Aug 20 05:34:37 MST 2013
I could not get those files to work, as they use the LPC114/115 board for that I2C example. I've tried to convert it over to use CMSISV2_LPC17xx however I then get loads of errors.
0 Kudos

475 Views
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by cfb on Mon Aug 19 14:51:39 MST 2013
If you haven't yet downloaded the LPCXpresso Experiment Kit Software Solutions and LPCXpresso Experiment Kit Additional Files from the Embedded Artists support site then you should do so and study these before going any further.
0 Kudos