Directed Electronics 3200HS Informações Técnicas Página 1

Consulte online ou descarregue Informações Técnicas para não Directed Electronics 3200HS. Directed Electronics 3200HS Technical information Manual do Utilizador

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 99
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 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 página 0
1 2 3 4 5 6 ... 98 99

Resumo do Conteúdo

Página 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

Página 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

Página 3 - Application Note

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

Página 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

Página 5 - Contents

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

Página 6

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

Página 7 - 1. INTRODUCTION

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

Página 8

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

Página 9

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

Página 10

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

Página 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)

Página 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

Página 13

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

Página 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

Página 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

Página 16

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

Página 17

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

Página 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

Página 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

Página 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

Página 21

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

Página 22

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

Página 23

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

Página 24

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

Página 25

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

Página 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

Página 27

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

Página 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

Página 29

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

Página 30

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

Página 31 - INTCSI00

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

Página 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

Página 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.

Página 34

CSI to SPI Peripheral Communication in V850ES Microcontrollers ii

Página 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

Página 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

Página 37

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

Página 38

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

Página 39

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

Página 40

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

Página 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,

Página 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

Página 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

Página 44 - M-Station

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

Página 45 - V850ES/KJ1+

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

Página 46

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

Página 47 - 3. DEVELOPMENT TOOLS

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

Página 48 - 4. SOFTWARE LISTINGS

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

Página 49

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

Página 50

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

Página 51

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

Página 52

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

Página 53

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

Página 54

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

Página 55

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

Página 56

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

Página 57

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

Página 58

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

Página 59

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

Página 60

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

Página 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

Página 62

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

Página 63

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

Página 64

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

Página 65

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

Página 66

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

Página 67

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

Página 68

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

Página 69

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

Página 70

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

Página 71

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

Página 72

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

Página 73

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

Página 74

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

Página 75

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

Página 76

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

Página 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

Página 78

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

Página 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

Página 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 -

Página 81

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

Página 82

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

Página 83

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

Página 84

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

Página 85

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

Página 86

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

Página 87

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

Página 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 --

Página 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

Página 90

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

Página 91

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

Página 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

Página 93

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

Página 94

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

Página 95

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

Página 96

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

Página 97

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

Página 98

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

Página 99

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

Comentários a estes Manuais

Sem comentários