数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

MS8607 数据表(PDF) 7 Page - Humirel

部件名 MS8607
功能描述  Digital Pressure and Humidity Sensor
PDF  4 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  HUMIREL [Humirel]
网页  http://www.humirel.com
标志 HUMIREL - Humirel

MS8607 数据表(HTML) 7 Page - Humirel

  MS8607 Datasheet HTML 1Page - Humirel MS8607 Datasheet HTML 2Page - Humirel MS8607 Datasheet HTML 3Page - Humirel MS8607 Datasheet HTML 4Page - Humirel  
Zoom Inzoom in Zoom Outzoom out
 7 / 4 page
background image
MEAS MS8607 DCS FOR ZedBoard
Digital Pressure and Humudity Sensor
SENSOR SOLUTIONS /// MEAS MS8607 DCS DEVELOPMENT KIT
07/2016
Page 7
Application Code
This section is intended to provide a basic example of functionality.
/*
* Copyright (c) 2009-2012 Xilinx, Inc.
All rights reserved.
*
* Xilinx, Inc.
* XILINX IS PROVIDING THIS DESIGN, CODE, OR INFORMATION "AS IS" AS A
* COURTESY TO YOU.
BY PROVIDING THIS DESIGN, CODE, OR INFORMATION AS
* ONE POSSIBLE
IMPLEMENTATION OF THIS FEATURE, APPLICATION OR
* STANDARD, XILINX IS MAKING NO REPRESENTATION THAT THIS IMPLEMENTATION
* IS FREE FROM ANY CLAIMS OF INFRINGEMENT, AND YOU ARE RESPONSIBLE
* FOR OBTAINING ANY RIGHTS YOU MAY REQUIRE FOR YOUR IMPLEMENTATION.
* XILINX EXPRESSLY DISCLAIMS ANY WARRANTY WHATSOEVER WITH RESPECT TO
* THE ADEQUACY OF THE IMPLEMENTATION, INCLUDING BUT NOT LIMITED TO
* ANY WARRANTIES OR REPRESENTATIONS THAT THIS IMPLEMENTATION IS FREE
* FROM CLAIMS OF INFRINGEMENT, IMPLIED WARRANTIES OF MERCHANTABILITY
* AND FITNESS FOR A PARTICULAR PURPOSE.
*
*/
/*
* MEAS_MS8607_Main.c: Console Application for Testing the MS8607
*
* This application configures UART 16550 to baud rate 9600.
* PS7 UART (Zynq) is not initialized by this application, since
* bootrom/bsp configures it to baud rate 115200
*
* ------------------------------------------------
* | UART TYPE
BAUD RATE
|
* ------------------------------------------------
*
uartns550
9600
*
uartlite
Configurable only in HW design
*
ps7_uart
115200 (configured by bootrom/bsp)
*/
#include <stdio.h>
#include <unistd.h>
#include "platform.h"
#include "xparameters.h"
#include "ms8607.h"
#define
XPAR_AXI_IIC_JC_BASEADDR
XPAR_IIC_0_BASEADDR
void ms8607_main_menu(void);
int main()
{
char key_input;
int i;
ms8607_status stat;
u8
prom_read_flag = 0;
float temperature;
float pressure;
float relative_humidity;
float dew_point;
ms8607_battery_status
batt_stat;
ms8607_heater_status
heat_stat;
//Initialize the UART
init_platform();
printf("Hello World\n");
// Set the AXI address of the IIC core
ms8607_init(XPAR_AXI_IIC_JC_BASEADDR);
// Display the main menu
ms8607_main_menu();
// Infinite loop
while(1){
// Get keyboard input
read(1, (char*)&key_input, 1);
if(key_input == '1'){
//If the '1' key is pressed
// Send the reset command to the MS8607
printf("\n");
printf("Resetting MS8607...\n");
stat = ms8607_reset();
// Display the status returned from the reset operation
printf("MS8607 Reset Complete with status: ");
if(stat==ms8607_status_ok)
printf("Ok.\n");



Html Pages

1 2 3 4


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com