Directed Electronics 3200HS Información técnica Pagina 1

Busca en linea o descarga Información técnica para No Directed Electronics 3200HS. Directed Electronics 3200HS Technical information Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 99
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
To our customers,
Old Company Name in Catalogs and Other Documents
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas Electronics Corporation took over all the business of both
companies. Therefore, although the old company name remains in this document, it is a valid
Renesas Electronics document. We appreciate your understanding.
Renesas Electronics website: http://www.renesas.com
April 1
st
, 2010
Renesas Electronics Corporation
Issued by: Renesas Electronics Corporation (http://www.renesas.com)
Send any inquiries to http://www.renesas.com/inquiry.
Vista de pagina 0
1 2 3 4 5 6 ... 98 99

Indice de contenidos

Pagina 1 - To our customers

To our customers, Old Company Name in Catalogs and Other Documents On April 1st, 2010, NEC Electronics Corporation merged with Renesas Technology C

Pagina 2

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

Pagina 3 - Application Note

SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 2. Positive-Edge Data Capture Data OutClockData-InData Capture StrobeMaster

Pagina 4

CSI to SPI Peripheral Communication in V850ES Microcontrollers When CPHA = 1, the master begin driving data at the first edge of SCK. Therefore, t

Pagina 5 - Contents

SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 5. SPI Mode Control Register 01234567CPOL CPHASPI Mode Control RegisterCPHA

Pagina 6

CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 6. Data-InData-OutChip SelectCPHA = 0DAPn = 1Chip SelectCPHA = 1DAPn = 0By

Pagina 7 - 1. INTRODUCTION

SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 7. Maxim MAX6627 Remote Temperature Sensor The interface to the master uni

Pagina 8

CSI to SPI Peripheral Communication in V850ES Microcontrollers The twelve bits of temperature data is in degrees centigrade, with the upper eight

Pagina 9

SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 8. MCU Connections to DS1722 Temperature Sensor CESDISCLKSDODS1722SERMODEµC

Pagina 10

CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 9. Read and Write Cycles From the Master to the DS1722 Temperature Sensor W

Pagina 11

SCI to SPI Peripheral Communication in V850ES Microcontrollers upper seven bits (D14 to D8) indicating degrees, and the lower four bits (D7 to D4)

Pagina 12 - Shift Register

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

Pagina 13

CSI to SPI Peripheral Communication in V850ES Microcontrollers The V850ES MCU’s CSI peripheral is used for communication with the temperature sens

Pagina 14 - 2.4.1 Maxim MAX6627

SCI to SPI Peripheral Communication in V850ES Microcontrollers CSI unit can be configured easily for one interface type or another, for this examp

Pagina 15 - NPN-Type Transistor

CSI to SPI Peripheral Communication in V850ES Microcontrollers which determines where the program will begin on a hardware reset and provides init

Pagina 16

SCI to SPI Peripheral Communication in V850ES Microcontrollers Main( ) then calls Temp_Init( ) to initialize the temperature sensors and the CSI/S

Pagina 17

CSI to SPI Peripheral Communication in V850ES Microcontrollers After processing the switches, main() returns to the top of the program loop to che

Pagina 18 - Read from DS1722 to Master

SCI to SPI Peripheral Communication in V850ES Microcontrollers The Temp_Init() routine initializes the temperature sensors to prepare them for rea

Pagina 19

CSI to SPI Peripheral Communication in V850ES Microcontrollers In the CSIC0 clock control register, the CKP0 (clock polarity) bit is set to one an

Pagina 20 - Microcontroller

SCI to SPI Peripheral Communication in V850ES Microcontrollers 2.6.5 CSI00_SetType3(): Set CSI00 Peripheral for Type 3 Interface The CSI00_SetTyp

Pagina 21

CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 16. CSI00_SetType4(): Set CSI00 Peripheral for Type 4 Interface CSI0E0 = 0

Pagina 22

SCI to SPI Peripheral Communication in V850ES Microcontrollers The CSI00_SendData() routine sets up and starts a transmission operation using CSI0

Pagina 23

Application Note CSI to SPI Peripheral Communication in V850ES Microcontrollers ©March 2007. NEC Electronics Ameri

Pagina 24

CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 18. CSI00_ReceiveData(*rxbuf, rxnum): Prepare To Receive Data on CSI00 GGRe

Pagina 25

SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 19. MD_INTCSI00() : Interrupt Service Routine for INTCSI00 YesNoTX_CNT ==TX

Pagina 26

CSI to SPI Peripheral Communication in V850ES Microcontrollers The routine sets the CSI00_SendDone flag to FALSE, and writes two dummy bytes by ca

Pagina 27

SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 21. Temp_Read_2(): Read Temperature Sensor 2 (DS1722) Delay 100ns after CS

Pagina 28

CSI to SPI Peripheral Communication in V850ES Microcontrollers the rxbuf[0] location. The first received data will not have been driven by the DS1

Pagina 29

SCI to SPI Peripheral Communication in V850ES Microcontrollers The data will be shown serially in the two LED digits, scrolling the number through

Pagina 30

CSI to SPI Peripheral Communication in V850ES Microcontrollers initialization for I/O ports used. After Applilet produces the basic code, additio

Pagina 31 - INTCSI00

SCI to SPI Peripheral Communication in V850ES Microcontrollers 2.7.2 Configuring Applilet for CSI00 1. In the Serial Communication Interface box,

Pagina 32

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

Pagina 33

SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 26. TM00 Interval Timer Box 2.7.4 Configuring Applilet for I/O Ports 1.

Pagina 34

CSI to SPI Peripheral Communication in V850ES Microcontrollers ii

Pagina 35

CSI to SPI Peripheral Communication in V850ES Microcontrollers 2.7.5 Generating Code With Applilet Once the various dialog boxes are set up, sele

Pagina 36

SCI to SPI Peripheral Communication in V850ES Microcontrollers File Function Timer.h Header file for timer.c Timer.c Timer 00 functions Timer_us

Pagina 37

CSI to SPI Peripheral Communication in V850ES Microcontrollers 2. void CALL_CSI00_Receive( void ): This routine is called when a reception is com

Pagina 38

SCI to SPI Peripheral Communication in V850ES Microcontrollers 2.8 Demonstration Platform A demonstration platform was chosen from the NEC develop

Pagina 39

CSI to SPI Peripheral Communication in V850ES Microcontrollers Figure 28. Block Diagram of Program Resources LED2LED1CPU - I/O SignalsVDDGND16_Pi

Pagina 40

SCI to SPI Peripheral Communication in V850ES Microcontrollers Figure 29. Hardware Block Diagram NECuPD70F3381YV850ES/KJ1+LED-1 LED-2SW2 SW3PDH7

Pagina 41 - 2.7.7.3 Serial_user.c

CSI to SPI Peripheral Communication in V850ES Microcontrollers 2.9 Software Modules The table below shows which files were generated by Applilet,

Pagina 42 - 2.7.8.2 Temper.c

SCI to SPI Peripheral Communication in V850ES Microcontrollers 3. DEVELOPMENT TOOLS The following software and hardware tools were used in the dev

Pagina 43 - 2.8.1 Resources

CSI to SPI Peripheral Communication in V850ES Microcontrollers 4. SOFTWARE LISTINGS This application note program is based on specific files and

Pagina 44 - M-Station

SCI to SPI Peripheral Communication in V850ES Microcontrollers ** ************************************************************************** */ #i

Pagina 45 - V850ES/KJ1+

SCI to SPI Peripheral Communication in V850ES Microcontrollers Contents 1. Introduction ...

Pagina 46

CSI to SPI Peripheral Communication in V850ES Microcontrollers ** **--------------------------------------------------------------------------- */

Pagina 47 - 3. DEVELOPMENT TOOLS

SCI to SPI Peripheral Communication in V850ES Microcontrollers ** ** Copyright(C) NEC Electronics Corporation 2002 - 2006 ** All rights reserved

Pagina 48 - 4. SOFTWARE LISTINGS

CSI to SPI Peripheral Communication in V850ES Microcontrollers ** Filename : temper.c ** Abstract : This file implements functions for tempera

Pagina 49

SCI to SPI Peripheral Communication in V850ES Microcontrollers #if (TEMP_DEBUG == 1) int i; /* set up continuous select, 1 buffer mode of operat

Pagina 50

CSI to SPI Peripheral Communication in V850ES Microcontrollers CSI00_SendDone = MD_FALSE; /* set flag false - will be wset true by INTCSI00 */

Pagina 51

SCI to SPI Peripheral Communication in V850ES Microcontrollers CSI00_ReceiveData(rxbuf, 2); /* set up to receive two bytes */ CSI00_SendDone

Pagina 52

CSI to SPI Peripheral Communication in V850ES Microcontrollers CSI00_SetType3(); /* set CSI00 interface for Type 3 transfer */ TEMP2_CS_ON;

Pagina 53

SCI to SPI Peripheral Communication in V850ES Microcontrollers ** display temp in degrees in LEDs, turn on decimal point for negative temperatu

Pagina 54

CSI to SPI Peripheral Communication in V850ES Microcontrollers } if ( (dig[0] != 0) || (dig[1] != 0) ) { led_dig_left(dig[1]); } else {

Pagina 55

SCI to SPI Peripheral Communication in V850ES Microcontrollers --------------------------------------------------------------------- -- variable i

Pagina 56

CSI to SPI Peripheral Communication in V850ES Microcontrollers 4.1 Files for CSI to SPI Demonstration Program ...

Pagina 57

CSI to SPI Peripheral Communication in V850ES Microcontrollers .section "INTTM001", text --TM00 and CR001 match reti .section

Pagina 58

SCI to SPI Peripheral Communication in V850ES Microcontrollers .section "INTWTI", text --watchtimer interval reti .section &qu

Pagina 59

CSI to SPI Peripheral Communication in V850ES Microcontrollers 4.1.5 Systeminit.c /* ************************************************************

Pagina 60

SCI to SPI Peripheral Communication in V850ES Microcontrollers ** None ** **----------------------------------------------------------------------

Pagina 61

CSI to SPI Peripheral Communication in V850ES Microcontrollers #define PORT_PM1 0xff #define PORT_P1 0x0 #define PORT_PMC3 0x0 #define PORT_PM3 0x

Pagina 62

SCI to SPI Peripheral Communication in V850ES Microcontrollers void PORT_Init( void ); #endif 4.1.7 Port.c /* **********************************

Pagina 63

CSI to SPI Peripheral Communication in V850ES Microcontrollers ** None ** **---------------------------------------------------------------

Pagina 64

SCI to SPI Peripheral Communication in V850ES Microcontrollers PMCD = PORT_PMCD; PMCM = PORT_PMCM; PMCS = PORT_PMCS; PMCT = PORT_PMCT; P

Pagina 65

CSI to SPI Peripheral Communication in V850ES Microcontrollers #define CSIA_AUTORAMSIZE 32 /* CSIA automatic transfer RAM size */ #define IIC

Pagina 66

SCI to SPI Peripheral Communication in V850ES Microcontrollers /* CSI00 Transmission */ UCHAR *CSI00_TX_ADDRESS; /* csi00 transmit buffer add

Pagina 67

SCI to SPI Peripheral Communication in V850ES Microcontrollers 1. INTRODUCTION The purpose of this document is to provide simple examples that wil

Pagina 68

CSI to SPI Peripheral Communication in V850ES Microcontrollers **---------------------------------------------------------------------------------

Pagina 69

SCI to SPI Peripheral Communication in V850ES Microcontrollers return MD_OK; } /* **-----------------------------------------------------------

Pagina 70

CSI to SPI Peripheral Communication in V850ES Microcontrollers 4.1.10 Serial_user.c /* ***********************************************************

Pagina 71

SCI to SPI Peripheral Communication in V850ES Microcontrollers void CALL_CSI00_Send( void ) { CSI00_SendDone = MD_TRUE; } /* **----------------

Pagina 72

CSI to SPI Peripheral Communication in V850ES Microcontrollers ** ** Copyright(C) NEC Electronics Corporation 2002-2004 ** All rights reserved b

Pagina 73

SCI to SPI Peripheral Communication in V850ES Microcontrollers **---------------------------------------------------------------------------------

Pagina 74

CSI to SPI Peripheral Communication in V850ES Microcontrollers OPT : !LOAD ?R V0x7a{ .opt = $PROGBITS ?A .opt; }; TEX

Pagina 75

SCI to SPI Peripheral Communication in V850ES Microcontrollers extern void sw_set_debounce(unsigned char count); /* set deboune cound */ extern v

Pagina 76

CSI to SPI Peripheral Communication in V850ES Microcontrollers } /* unsigned char sw_chk(void) */ /* return input from switches, undebounced */

Pagina 77

SCI to SPI Peripheral Communication in V850ES Microcontrollers /* if we have counted down to zero, we have seen the same sw_new */ /* for deb

Pagina 78

CSI to SPI Peripheral Communication in V850ES Microcontrollers Most NEC Electronics MCUs incorporate one or more channels of CSI peripheral, for e

Pagina 79

CSI to SPI Peripheral Communication in V850ES Microcontrollers #define LED_PAT_BLANK 0xFF #define LED_PAT_DP 0x7F #define LED_PAT_DASH 0xBF #de

Pagina 80

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 -

Pagina 81

CSI to SPI Peripheral Communication in V850ES Microcontrollers void led_out_right(unsigned char val) { PDLH = val; } /* void led_out_left(unsig

Pagina 82

SCI to SPI Peripheral Communication in V850ES Microcontrollers /* void led_dig(unsigned char num) */ /* display number as hex digits */ /* n

Pagina 83

CSI to SPI Peripheral Communication in V850ES Microcontrollers ** V850ES/KF1+ and V850ES/KE1+ 32-Bit Single-Chip Microcontrollers ** ** Copyrigh

Pagina 84

SCI to SPI Peripheral Communication in V850ES Microcontrollers #define MD_MASTER_SEND_END MD_STATUSBASE+0x11 /*IIC master send end*/ #define M

Pagina 85

CSI to SPI Peripheral Communication in V850ES Microcontrollers # All rights reserved by NEC Electronics Corporation # # This program should be u

Pagina 86

SCI to SPI Peripheral Communication in V850ES Microcontrollers .extern __ssbss, 4 .extern __esbss, 4 .extern __sbss, 4 .extern __ebss, 4

Pagina 87

CSI to SPI Peripheral Communication in V850ES Microcontrollers #----------------------------------------------------------------------------- # RE

Pagina 88

SCI to SPI Peripheral Communication in V850ES Microcontrollers st.w r0, [r13] add 4, r13 cmp r12, r13 jl .L12 .L11: mov #__sbss, r13 --

Pagina 89

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

Pagina 90

CSI to SPI Peripheral Communication in V850ES Microcontrollers --** --** Filename : system.inc --** Abstract : This file implements a device dri

Pagina 91

SCI to SPI Peripheral Communication in V850ES Microcontrollers .byte 0 --Set to option byte (Ring-OSC cannot be stopped) .byte 0 .

Pagina 92

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

Pagina 93

SCI to SPI Peripheral Communication in V850ES Microcontrollers ** Filename : system_user.c ** Abstract : This file implements a device driver fo

Pagina 94

CSI to SPI Peripheral Communication in V850ES Microcontrollers **MacroDefine ** ******************************************************************

Pagina 95

SCI to SPI Peripheral Communication in V850ES Microcontrollers #define TM05_ONEPULSEDELAY 0x00 #define TM50_Clock 0x5 #define TM50_INTERVALVALUE

Pagina 96

CSI to SPI Peripheral Communication in V850ES Microcontrollers ** NEC Electronics Corporation assumes no responsibility for any losses ** incurr

Pagina 97

SCI to SPI Peripheral Communication in V850ES Microcontrollers CR000 = TM00_INTERVALVALUE; CR001 = 0xffff; } /* **---------------------------

Pagina 98

CSI to SPI Peripheral Communication in V850ES Microcontrollers ** MD_OK ** MD_ERROR ** **---------------------------------------------------------

Pagina 99

SCI to SPI Peripheral Communication in V850ES Microcontrollers These commodities, technology or software, must be exported from the U.S. in accord

Comentarios a estos manuales

Sin comentarios