Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Serial Peripheral Interface (SPI)

(you are viewing a thread; or go back to list of threads)

Serial Peripheral Interface (SPI) (by Lance)
I'm programming on a PIC16F88 and I'm wondering how I could interface with a K-thermocouple and output the the temperature to a LCD display. I found a thermocouple-to-digital converter (http://datasheets.maxim-ic.com/en/ds/MAX6675.pdf) and I'm wondering if its possible to interface this chip with the PIC16F88 and output a temperature to a display using ldmicro. If I could get a little direction it would be much appreciated. Thanks!
Mon Jan 4 2010, 17:18:34
(no subject) (by Lance)
Sorry I forgot to include that the thermocouple to digital converter uses the Serial Port Interface.
Mon Jan 4 2010, 17:20:09
(no subject) (by Jonathan Westhues)
LDmicro does not support the SPI peripheral on any devices. This is because there is always some protocol on top of SPI, that the user would have to implement. It seemed relatively awkward to do that in ladder logic, so this did not seem like a useful feature.

You could always just amplify up your thermocouple voltage (like with a chopper-stabilized opamp) and feed that in to an analog input; or you could use a bandgap type temperature sensor, if your temperatures are close to room temperature.
Tue Jan 5 2010, 02:01:46
(no subject) (by David R)
Hi,
I have used spi the long way with A counter to count each clock output and then turned the data into binary, this system worked vary well.
I can't find the code to post sorry.
Regards
David
Thu Jan 7 2010, 03:04:29
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):