
SCI to SPI Peripheral Communication in V850ES Microcontrollers
**
** Copyright(C) NEC Electronics Corporation 2002 - 2006
** All rights reserved by NEC Electronics Corporation.
**
** This program should be used on your own responsibility.
** NEC Electronics Corporation assumes no responsibility for any losses
** incurred by customers or third parties arising from the use of this file.
**
** Filename : temper.h
** Abstract : This file implements header for temper.c
**
** Device: uPD70F3318Y
**
** Compiler: NEC/CA850
**
*****************************************************************************
**
*/
#ifndef _TEMPER_H_
#define _TEMPER_H_
/*
*****************************************************************************
**
** MacroDefine
*****************************************************************************
**
*/
/* Temperature functions */
MD_STATUS Temp_Init(void); /* set up temperature sensors
*/
short Temp_Read_1(void); /* read temperature sensor 1
*/
short Temp_Read_2(void); /* read temperature sensor 2
*/
void Temp_Display(short temp); /* display temperature value
in LED */
#endif /* _TEMPER_H_ */
4.1.3 Temper.c
/*
*****************************************************************************
**
**
** This file was created for the NEC V850ES SPI/IIC Application Note
**
** Copyright(C) NEC Electronics Corporation 2002 - 2006
** All rights reserved by NEC Electronics Corporation.
**
** This program should be used on your own responsibility.
** NEC Electronics Corporation assumes no responsibility for any losses
** incurred by customers or third parties arising from the use of this file.
**
45
Kommentare zu diesen Handbüchern