资源简介
STM32f103驱动max 31856驱动程序,全工程给出,实在得很。

代码片段和文件信息
// This is a library for the Maxim MAX31856 thermocouple IC
// http://datasheets.maximintegrated.com/en/ds/MAX31856.pdf
//
// Written by Peter Easton (www.whizoo.com)
// Released under CC BY-SA 3.0 license
//
// Look for the MAX31856 breakout boards on www.whizoo.com and eBay (madeatrade)
// http://stores.ebay.com/madeatrade
//
// Looking to build yourself a reflow oven? It isn‘t that difficult to
// do! Take a look at the build guide here:
// http://www.whizoo.com
//
// Library Implementation Details
// ==============================
// DRDY and FAULT lines are not used in this driver. DRDY is useful for low-power mode so samples are only taken when
// needed; this driver assumes power isn‘t an issue. The FAULT line can be used to generate an interrupt in the host
// processor when a fault occurs. This library reads the fault register every time a reading is taken and will
// return a fault error if there is one. The MAX31856 has sophisticated usage scenarios involving FAULT. For
// example low and high temperature limits can be set and the FAULT line triggers when these temperatures are
// breached. This is beyond the scope of this sample library. The assumption is that most applications will be
// polling for temperature readings - but it is good to know these features are supported by the hardware.
//
// The MAX31856 differs from earlier thermocouple IC‘s in that it has registers that must be configured before
// readings can be taken. This makes it very flexible and powerful but one concern is power loss to the IC. The IC
// should be as close to the cold junction as possible which might mean there is a cable connecting the breakout
// board to the host processor. If this cable is disconnected and reconnected (MAX31856 loses power) then the
// registers must be reinitialized. This library detects this condition and will automatically reconfigure the
// registers. This simplifies the software running on the host.
//
// A lot of configuration options appear in the .H file. Of particular note is the line frequency filtering which
// defaults to 60Hz (USA and others). If your line voltage is 50Hz you should set CR0_NOISE_FILTER_50HZ.
//
// This library handles the full range of temperatures including negative temperatures.
//
//
// Change History:
// 25 June 2015 Initial Version
// 31 July 2015 Fixed spelling and formatting problems
#include “MAX31856.h“
// Define which pins are connected to the MAX31856. The DRDY and FAULT outputs
// from the MAX31856 are not used in this library.
MAX31856::MAX31856(int sdi int sdo int cs int clk)
{
_sdi = sdi;
_sdo = sdo;
_cs = cs;
_clk = clk;
// Initialize all the data pins
pinMode(_sdi OUTPUT);
pinMode(_cs OUTPUT);
pinMode(_clk OUTPUT);
// Use a pullup on the data line to be able to detect “no communication“
pinMode(_sdo INPUT_PULLUP);
// Default output pins state
digitalWrite(_cs HIGH);
digitalWrite(_clk HI
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2015-09-19 20:37 MAX31856-master\
目录 0 2015-09-19 20:37 MAX31856-master\MAX31856\
文件 9659 2015-09-02 06:15 MAX31856-master\MAX31856\MAX31856.cpp
文件 4141 2015-09-02 06:15 MAX31856-master\MAX31856\MAX31856.h
目录 0 2015-09-19 20:37 MAX31856-master\MAX31856\examples\
目录 0 2016-08-29 11:09 MAX31856-master\MAX31856\examples\MAX31856\
文件 4849 2016-08-29 11:09 MAX31856-master\MAX31856\examples\MAX31856\MAX31856.ino
文件 2089 2015-09-02 06:15 MAX31856-master\MAX31856\keywords.txt
文件 2810 2015-09-02 06:15 MAX31856-master\README
- 上一篇:蓝宝石rx584三星原厂bios
- 下一篇:基于51单片机的只能台灯
相关资源
- 单片机音乐倒数定时器的设计
- STC15F
- 51单片机通信采样proteus仿真方波转化
- 51 单片机 红外避障小车 大集合136
- STC8951系列单片机中方指南
- 基于MCS_51单片机的工业屏柜散热方案
- MCS_51单片机与8255A的接口设计
- 飞思卡尔单片机MC9S12XS12G128驱动(硬件
- 51单片机PWM程序,占空比、周期可调整
- 单片机和adc0809数字电压表
- PIC单片机完成的电子密码锁
- 单片机、ADC0808809设计简易数字电压表
- 51单片机多功能自行车测速仪
- 单片机做的6位时分秒数字钟
- 单片机电子时钟 闹钟 日历
- 音乐代码转换软件 单片机编程时用
- 单片机课程设计 篮球计分器
- 00
- 用51单片机实现G代码翻译
- 简易的电阻电容测量电路
- 单片机与温度传感器DS18B20的程序设计
- 51单片机基于protues的几个仿真实例
- 基于52单片机的直流电压测量
- 38k单片机红外发送代码、keil
- 51单片机PCB设计图
- PC -- 单片机的串口数据传输系统设计
- 51单片机控制舵机程序
- 武汉理工大学 单片机课程设计 16*16点
- 51单片机读取温度数据存储到SD卡中并
- 【单片机】51单片机数码管显示万年历
评论
共有 条评论