AM2315 Temperature Sensor

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

AM2315 Temperature Sensor

888 次查看
burgeh
Contributor IV

I have been trying to get this AM2315 temp sensor working on a K22FN256LH for quite some time now and have had no luck. I am using KDS v3.2 and Processor Expert, has anyone been able to do this? I seem to be replicating the wave fine (Waiting the appropriate time (1ms)), but I never get my ack. Below is my scope and the next two are from the datasheet. Any suggestions?

pastedImage_1.pngpastedImage_2.png

pastedImage_3.png

3 回复数

713 次查看
mjbcswitzerland
Specialist V

Hi

If the save doesn't ACK it must mean that it is not being addressed correctly.

Regards

Mark

0 项奖励
回复

713 次查看
burgeh
Contributor IV

Here is it running an my arduino, I've also tried it at this timing to no avail (only 60us delay between the two signals)

pastedImage_1.png

0 项奖励
回复

713 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi, Christopher,

I have just browsed the data sheet of temperature sensor AM2315, as you know that the ACK signal is always driven by receiver, if the K22 send slave address or command, the AM2315 must drive the ACK bit, if the K22 reads data, the K22 is the receiver, the IIC of K22 should drive the ACK bit after it has received the data.

The first step is waking up step by the K22 sending the slave address 0xB8, in the waking up step, the temperature sensor does not drive the ACK bit based on the data sheet of sensor, it is normal. When the K22 does not get the ACK signal, the IIC should enter stop mode by switching from master mode to slave mode so that the IIC bus enter stop mode, in stop mode, both SCL/SDA are high, which matches with the FIG15 you attached.

Hope it can help you

BR

Xiangjun rong