To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology C
CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 1. CSI Operation Freq/2 - to - 2**6 Timer Output TM50 SCK0 n_BSCK0 n_B SO0
SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 2. Positive-Edge Data Capture Data OutClockData-InData Capture StrobeMaster
CSI to SPI Peripheral Communication in V850ES Microcontrollers When CPHA = 1, the master begin driving data at the first edge of SCK. Therefore, t
SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 5. SPI Mode Control Register 01234567CPOL CPHASPI Mode Control RegisterCPHA
CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 6. Data-InData-OutChip SelectCPHA = 0DAPn = 1Chip SelectCPHA = 1DAPn = 0By
SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 7. Maxim MAX6627 Remote Temperature Sensor The interface to the master uni
CSI to SPI Peripheral Communication in V850ES Microcontrollers The twelve bits of temperature data is in degrees centigrade, with the upper eight
SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 8. MCU Connections to DS1722 Temperature Sensor CESDISCLKSDODS1722SERMODEµC
CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 9. Read and Write Cycles From the Master to the DS1722 Temperature Sensor W
SCI to SPI Peripheral Communication in V850ES Microcontrollers upper seven bits (D14 to D8) indicating degrees, and the lower four bits (D7 to D4)
Notice 1. All information included in this document is current as of the date this document is issued. Such information, however, is subject to chang
CSI to SPI Peripheral Communication in V850ES Microcontrollers The V850ES MCU’s CSI peripheral is used for communication with the temperature sens
SCI to SPI Peripheral Communication in V850ES Microcontrollers CSI unit can be configured easily for one interface type or another, for this examp
CSI to SPI Peripheral Communication in V850ES Microcontrollers which determines where the program will begin on a hardware reset and provides init
SCI to SPI Peripheral Communication in V850ES Microcontrollers Main( ) then calls Temp_Init( ) to initialize the temperature sensors and the CSI/S
CSI to SPI Peripheral Communication in V850ES Microcontrollers After processing the switches, main() returns to the top of the program loop to che
SCI to SPI Peripheral Communication in V850ES Microcontrollers The Temp_Init() routine initializes the temperature sensors to prepare them for rea
CSI to SPI Peripheral Communication in V850ES Microcontrollers In the CSIC0 clock control register, the CKP0 (clock polarity) bit is set to one an
SCI to SPI Peripheral Communication in V850ES Microcontrollers 2.6.5 CSI00_SetType3(): Set CSI00 Peripheral for Type 3 Interface The CSI00_SetTyp
CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 16. CSI00_SetType4(): Set CSI00 Peripheral for Type 4 Interface CSI0E0 = 0
SCI to SPI Peripheral Communication in V850ES Microcontrollers The CSI00_SendData() routine sets up and starts a transmission operation using CSI0
Application Note CSI to SPI Peripheral Communication in V850ES Microcontrollers ©March 2007. NEC Electronics Ameri
CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 18. CSI00_ReceiveData(*rxbuf, rxnum): Prepare To Receive Data on CSI00 GGRe
SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 19. MD_INTCSI00() : Interrupt Service Routine for INTCSI00 YesNoTX_CNT ==TX
CSI to SPI Peripheral Communication in V850ES Microcontrollers The routine sets the CSI00_SendDone flag to FALSE, and writes two dummy bytes by ca
SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 21. Temp_Read_2(): Read Temperature Sensor 2 (DS1722) Delay 100ns after CS
CSI to SPI Peripheral Communication in V850ES Microcontrollers the rxbuf[0] location. The first received data will not have been driven by the DS1
SCI to SPI Peripheral Communication in V850ES Microcontrollers The data will be shown serially in the two LED digits, scrolling the number through
CSI to SPI Peripheral Communication in V850ES Microcontrollers initialization for I/O ports used. After Applilet produces the basic code, additio
SCI to SPI Peripheral Communication in V850ES Microcontrollers 2.7.2 Configuring Applilet for CSI00 1. In the Serial Communication Interface box,
CSI to SPI Peripheral Communication in V850ES Microcontrollers in two 8-bit cycles. If the MAX6627 sensor were the only device used, you would nee
SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 26. TM00 Interval Timer Box 2.7.4 Configuring Applilet for I/O Ports 1.
CSI to SPI Peripheral Communication in V850ES Microcontrollers ii
CSI to SPI Peripheral Communication in V850ES Microcontrollers 2.7.5 Generating Code With Applilet Once the various dialog boxes are set up, sele
SCI to SPI Peripheral Communication in V850ES Microcontrollers File Function Timer.h Header file for timer.c Timer.c Timer 00 functions Timer_us
CSI to SPI Peripheral Communication in V850ES Microcontrollers 2. void CALL_CSI00_Receive( void ): This routine is called when a reception is com
SCI to SPI Peripheral Communication in V850ES Microcontrollers 2.8 Demonstration Platform A demonstration platform was chosen from the NEC develop
CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 28. Block Diagram of Program Resources LED2LED1CPU - I/O SignalsVDDGND16_Pi
SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 29. Hardware Block Diagram NECuPD70F3381YV850ES/KJ1+LED-1 LED-2SW2 SW3PDH7
CSI to SPI Peripheral Communication in V850ES Microcontrollers 2.9 Software Modules The table below shows which files were generated by Applilet,
SCI to SPI Peripheral Communication in V850ES Microcontrollers 3. DEVELOPMENT TOOLS The following software and hardware tools were used in the dev
CSI to SPI Peripheral Communication in V850ES Microcontrollers 4. SOFTWARE LISTINGS This application note program is based on specific files and
SCI to SPI Peripheral Communication in V850ES Microcontrollers ** ************************************************************************** */ #i
SCI to SPI Peripheral Communication in V850ES Microcontrollers Contents 1. Introduction ...
CSI to SPI Peripheral Communication in V850ES Microcontrollers ** **--------------------------------------------------------------------------- */
SCI to SPI Peripheral Communication in V850ES Microcontrollers ** ** Copyright(C) NEC Electronics Corporation 2002 - 2006 ** All rights reserved
CSI to SPI Peripheral Communication in V850ES Microcontrollers ** Filename : temper.c ** Abstract : This file implements functions for tempera
SCI to SPI Peripheral Communication in V850ES Microcontrollers #if (TEMP_DEBUG == 1) int i; /* set up continuous select, 1 buffer mode of operat
CSI to SPI Peripheral Communication in V850ES Microcontrollers CSI00_SendDone = MD_FALSE; /* set flag false - will be wset true by INTCSI00 */
SCI to SPI Peripheral Communication in V850ES Microcontrollers CSI00_ReceiveData(rxbuf, 2); /* set up to receive two bytes */ CSI00_SendDone
CSI to SPI Peripheral Communication in V850ES Microcontrollers CSI00_SetType3(); /* set CSI00 interface for Type 3 transfer */ TEMP2_CS_ON;
SCI to SPI Peripheral Communication in V850ES Microcontrollers ** display temp in degrees in LEDs, turn on decimal point for negative temperatu
CSI to SPI Peripheral Communication in V850ES Microcontrollers } if ( (dig[0] != 0) || (dig[1] != 0) ) { led_dig_left(dig[1]); } else {
SCI to SPI Peripheral Communication in V850ES Microcontrollers --------------------------------------------------------------------- -- variable i
CSI to SPI Peripheral Communication in V850ES Microcontrollers 4.1 Files for CSI to SPI Demonstration Program ...
CSI to SPI Peripheral Communication in V850ES Microcontrollers .section "INTTM001", text --TM00 and CR001 match reti .section
SCI to SPI Peripheral Communication in V850ES Microcontrollers .section "INTWTI", text --watchtimer interval reti .section &qu
CSI to SPI Peripheral Communication in V850ES Microcontrollers 4.1.5 Systeminit.c /* ************************************************************
SCI to SPI Peripheral Communication in V850ES Microcontrollers ** None ** **----------------------------------------------------------------------
CSI to SPI Peripheral Communication in V850ES Microcontrollers #define PORT_PM1 0xff #define PORT_P1 0x0 #define PORT_PMC3 0x0 #define PORT_PM3 0x
SCI to SPI Peripheral Communication in V850ES Microcontrollers void PORT_Init( void ); #endif 4.1.7 Port.c /* **********************************
CSI to SPI Peripheral Communication in V850ES Microcontrollers ** None ** **---------------------------------------------------------------
SCI to SPI Peripheral Communication in V850ES Microcontrollers PMCD = PORT_PMCD; PMCM = PORT_PMCM; PMCS = PORT_PMCS; PMCT = PORT_PMCT; P
CSI to SPI Peripheral Communication in V850ES Microcontrollers #define CSIA_AUTORAMSIZE 32 /* CSIA automatic transfer RAM size */ #define IIC
SCI to SPI Peripheral Communication in V850ES Microcontrollers /* CSI00 Transmission */ UCHAR *CSI00_TX_ADDRESS; /* csi00 transmit buffer add
SCI to SPI Peripheral Communication in V850ES Microcontrollers 1. INTRODUCTION The purpose of this document is to provide simple examples that wil
CSI to SPI Peripheral Communication in V850ES Microcontrollers **---------------------------------------------------------------------------------
SCI to SPI Peripheral Communication in V850ES Microcontrollers return MD_OK; } /* **-----------------------------------------------------------
CSI to SPI Peripheral Communication in V850ES Microcontrollers 4.1.10 Serial_user.c /* ***********************************************************
SCI to SPI Peripheral Communication in V850ES Microcontrollers void CALL_CSI00_Send( void ) { CSI00_SendDone = MD_TRUE; } /* **----------------
CSI to SPI Peripheral Communication in V850ES Microcontrollers ** ** Copyright(C) NEC Electronics Corporation 2002-2004 ** All rights reserved b
SCI to SPI Peripheral Communication in V850ES Microcontrollers **---------------------------------------------------------------------------------
CSI to SPI Peripheral Communication in V850ES Microcontrollers OPT : !LOAD ?R V0x7a{ .opt = $PROGBITS ?A .opt; }; TEX
SCI to SPI Peripheral Communication in V850ES Microcontrollers extern void sw_set_debounce(unsigned char count); /* set deboune cound */ extern v
CSI to SPI Peripheral Communication in V850ES Microcontrollers } /* unsigned char sw_chk(void) */ /* return input from switches, undebounced */
SCI to SPI Peripheral Communication in V850ES Microcontrollers /* if we have counted down to zero, we have seen the same sw_new */ /* for deb
CSI to SPI Peripheral Communication in V850ES Microcontrollers Most NEC Electronics MCUs incorporate one or more channels of CSI peripheral, for e
CSI to SPI Peripheral Communication in V850ES Microcontrollers #define LED_PAT_BLANK 0xFF #define LED_PAT_DP 0x7F #define LED_PAT_DASH 0xBF #de
SCI to SPI Peripheral Communication in V850ES Microcontrollers PDH0 1-A R1.17 - R2.17 SB35 PDH1 1-B R1.18 - R2.18 SB36 PDH2 1-C R1.19 -
CSI to SPI Peripheral Communication in V850ES Microcontrollers void led_out_right(unsigned char val) { PDLH = val; } /* void led_out_left(unsig
SCI to SPI Peripheral Communication in V850ES Microcontrollers /* void led_dig(unsigned char num) */ /* display number as hex digits */ /* n
CSI to SPI Peripheral Communication in V850ES Microcontrollers ** V850ES/KF1+ and V850ES/KE1+ 32-Bit Single-Chip Microcontrollers ** ** Copyrigh
SCI to SPI Peripheral Communication in V850ES Microcontrollers #define MD_MASTER_SEND_END MD_STATUSBASE+0x11 /*IIC master send end*/ #define M
CSI to SPI Peripheral Communication in V850ES Microcontrollers # All rights reserved by NEC Electronics Corporation # # This program should be u
SCI to SPI Peripheral Communication in V850ES Microcontrollers .extern __ssbss, 4 .extern __esbss, 4 .extern __sbss, 4 .extern __ebss, 4
CSI to SPI Peripheral Communication in V850ES Microcontrollers #----------------------------------------------------------------------------- # RE
SCI to SPI Peripheral Communication in V850ES Microcontrollers st.w r0, [r13] add 4, r13 cmp r12, r13 jl .L12 .L11: mov #__sbss, r13 --
SCI to SPI Peripheral Communication in V850ES Microcontrollers When the CSI peripheral is not used, the SCK, SO, and SI I/O pins can be used as po
CSI to SPI Peripheral Communication in V850ES Microcontrollers --** --** Filename : system.inc --** Abstract : This file implements a device dri
SCI to SPI Peripheral Communication in V850ES Microcontrollers .byte 0 --Set to option byte (Ring-OSC cannot be stopped) .byte 0 .
CSI to SPI Peripheral Communication in V850ES Microcontrollers st.b r11, PRCMD[r0] st.b r11, PCC[r0] nop nop nop nop nop -- PLL start
SCI to SPI Peripheral Communication in V850ES Microcontrollers ** Filename : system_user.c ** Abstract : This file implements a device driver fo
CSI to SPI Peripheral Communication in V850ES Microcontrollers **MacroDefine ** ******************************************************************
SCI to SPI Peripheral Communication in V850ES Microcontrollers #define TM05_ONEPULSEDELAY 0x00 #define TM50_Clock 0x5 #define TM50_INTERVALVALUE
CSI to SPI Peripheral Communication in V850ES Microcontrollers ** NEC Electronics Corporation assumes no responsibility for any losses ** incurr
SCI to SPI Peripheral Communication in V850ES Microcontrollers CR000 = TM00_INTERVALVALUE; CR001 = 0xffff; } /* **---------------------------
CSI to SPI Peripheral Communication in V850ES Microcontrollers ** MD_OK ** MD_ERROR ** **---------------------------------------------------------
SCI to SPI Peripheral Communication in V850ES Microcontrollers These commodities, technology or software, must be exported from the U.S. in accord
Kommentare zu diesen Handbüchern