Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

lm35 and micrcontroller

Status
Not open for further replies.

nalawade

Junior Member level 2
Junior Member level 2
Joined
Apr 19, 2014
Messages
23
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
177
If i interface lm35 with ADC0804 and

ADC with 'X' micro controller.

what should be the code for putting those ADC values " 8 bit " inside the micro controller memory.

And later I want to send those ADC values to the RF Transmitter using SPI or USart.

So how do I achieve this ? How to write a code for that?


Basically I want to transmit continuous values of temperature sensor to ADC 0804

send those values to RF receiver and from there to another micro controller

Please help in detail . M doing it for the first time
 

This depends on a lot of different things. What microcontroller, type of memory, addressing mode, compiler, etc... The XC8 and HTC compilers have some built in functions for internal eeprom writing that would work. After your go/done flag is cleared, set the eeprom address to write to and write the ADC register to that spot of memory. If you wanted to store multiple items without overwriting, you would have to keep track of the addresses you have used with a counter and increment the current address after each write phase.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top