If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Delay changes nothing, since I tried different values of PAUSE. The problem is startup, if once started OK, then it works OK. Also, I've tried to initialize it later, say after 5 seconds after power on - no luck.
Pause has nothing to do with power up , sometimes mcu does not get nice crisp power on and it doesn't like slow lazy power on like when capacitors are on it's input, power up delay holds in reset until voltage is up to snuff and then allows it to boot.
One other thought : you have changed everything except the breadboard, breadboards do go bad.
Last edited by Archangel; - 1st February 2014 at 08:46.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Well, I'm not using breadboard at all. I've tried to make different PCBs, switched power supplies, etc. no help.
You will need to post your whole code , but here are a couple clues... The device needs a write on the rising edge, then data will be available on the falling edge. While CS is held low, send a command with a PRE then receive data with a POST. Also, are you sure you get valid data ever? The datasheet looks like you should be using LSB first, not MSB.
The whole code, related to temperature measurement is posted above. Regarding the valid data, I had to add division by 28, to get reasonable output. I've used melting ice and boiling water to determine that coefficient.
Bookmarks