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.
Re: Connecting temperature sensor on i2c c18 and ccs
here is my code and uc is just sending FF
#include<24F16KA102.h>
#device ADC=10
#FUSES NOWDT //No Watch Dog Timer
#FUSES NOWRTB //Boot block not write protected
#FUSES NOBSS //No...
Re: Connecting temperature sensor on i2c c18 and ccs
and what about
I2C1_Write(0x00); // send data (data to be written)
I2C1_Write(0x00);
actually i am using i2c first time thats why asking silly questions.
Re: Connecting temperature sensor on i2c c18 and ccs
ok i got it
- - - Updated - - -
i didnt get why you have writien these lines twice
RHL = I2C1_Read(1); // Read the data (acknowledge)
RHH = I2C1_Read(1); // Read the data (acknowledge)
I2C1_Write(0x00);
Re: Connecting temperature sensor on i2c c18 and ccs
i am using pic 24F16KA102 with ccs compailer
here is my code:
#include<24F16KA102.h>
#device ADC=10
#FUSES NOWDT //No Watch Dog Timer
#FUSES NOWRTB //Boot block not write protected
#FUSES NOBSS...
Re: Connecting temperature sensor on i2c c18 and ccs
why you have readed rhl and rhh twice.
RHL = I2C1_Rd(1); // Read the data (acknowledge)
RHH = I2C1_Rd(1); // Read the data (acknowledge)
and send
I2C1_Wr(0x00); // send data (data to be written)
I2C1_Wr(0x00);
twice
Re: Connecting temperature sensor on i2c c18 and ccs
ok i got it actually i am using i2c 1st time can you tell me what clock settings i have to use.
thanks
Hi All,
i have developed a code to read temperature but its not working please help to correct it.
Sensor Model:am2315
Sensor info:
#include <18f4525.h>
#include <stdlib.h>
#fuses INTRC_IO, NOWDT, PUT , BROWNOUT, NOLVP, NOPROTECT, NOMCLR
#use delay(clock=8000000)...
I want to get data from textfield and copmare and if user enters yes than stores it in string a else stores it in string b
here is my code ..
package org.hsn.tut;
import java.awt.*;
import java.applet.Applet;
public class TextFieldDemo extends Applet{
public void init(){
TextField...
An engineer claims, with some thermodynamic analysis, that if the proposed construction site of a
Nuclear power plant is changed from one city to another, Plant efficiency will increase (cost of
construction and everything else is same). Does change of city has to do anything with thermodynamic...
i want to learn about Wireless Sensor Networks
1.what they are
2.how they work
3.algorithms etc etc
i want help from where should i start?? kindly help
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.