Technical information
SCI to SPI Peripheral Communication in V850ES Microcontrollers
PMCD = PORT_PMCD;
PMCM = PORT_PMCM;
PMCS = PORT_PMCS;
PMCT = PORT_PMCT;
PMDH = PORT_PMDH;
PMDL = PORT_PMDL;
/*--- initialize the mode control registers ---*/
PMC0 &= ~PORT_PMC0;
PMC3 &= ~PORT_PMC3;
PMC4 &= ~PORT_PMC4;
PMC5 &= ~PORT_PMC5;
PMC6 &= ~PORT_PMC6;
PMC8 &= ~PORT_PMC8;
PMC9 &= ~PORT_PMC9;
PMCCM &= ~PORT_PMCCM;
PMCCS &= ~PORT_PMCCS;
PMCCT &= ~PORT_PMCCT;
PMCDH &= ~PORT_PMCDH;
PMCDL &= ~PORT_PMCDL;
}
4.1.8 Serial.h
/*
*****************************************************************************
**
** This device driver was created by Applilet for the V850ES/KX1+
** 32-Bit Single-Chip Microcontrollers
**
** Copyright(C) NEC Electronics Corporation 2002-2004
** 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 : serial.h
** Abstract : This file implements a device driver for the SERIAL module
** APIlib: V850ESKX1H.lib V1.33 [24 Sep 2004]
**
Device: uPD70F3318Y
**
** Compiler: NEC/CA850
**
*****************************************************************************
*/
#ifndef _MDSERIAL_
#define _MDSERIAL_
#define ADR_CSIA0B0 0xfffffe00 /* CSIA0 automatic transfer RAM
address */
#define ADR_CSIA1B0 0xfffffe20 /* CSIA1 automatic transfer RAM
address */
61