Directed Electronics 3200HS Informations techniques

Naviguer en ligne ou télécharger Informations techniques pour Non Directed Electronics 3200HS. Directed Electronics 3200HS Technical information Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 99
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
Vue de la page 0
1 2 3 4 5 6 ... 98 99

Résumé du contenu

Page 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

Page 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

Page 3 - Application Note

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

Page 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

Page 5 - Contents

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

Page 6

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

Page 7 - 1. INTRODUCTION

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

Page 8

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

Page 9

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

Page 10

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

Page 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)

Page 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

Page 13

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

Page 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

Page 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

Page 16

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

Page 17

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

Page 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

Page 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

Page 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

Page 21

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

Page 22

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

Page 23

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

Page 24

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

Page 25

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

Page 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

Page 27

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

Page 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

Page 29

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

Page 30

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

Page 31 - INTCSI00

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

Page 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

Page 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.

Page 34

CSI to SPI Peripheral Communication in V850ES Microcontrollers ii

Page 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

Page 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

Page 37

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

Page 38

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

Page 39

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

Page 40

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

Page 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,

Page 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

Page 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

Page 44 - M-Station

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

Page 45 - V850ES/KJ1+

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

Page 46

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

Page 47 - 3. DEVELOPMENT TOOLS

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

Page 48 - 4. SOFTWARE LISTINGS

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

Page 49

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

Page 50

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

Page 51

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

Page 52

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

Page 53

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

Page 54

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

Page 55

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

Page 56

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

Page 57

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

Page 58

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

Page 59

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

Page 60

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

Page 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

Page 62

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

Page 63

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

Page 64

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

Page 65

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

Page 66

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

Page 67

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

Page 68

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

Page 69

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

Page 70

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

Page 71

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

Page 72

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

Page 73

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

Page 74

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

Page 75

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

Page 76

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

Page 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

Page 78

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

Page 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

Page 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 -

Page 81

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

Page 82

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

Page 83

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

Page 84

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

Page 85

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

Page 86

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

Page 87

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

Page 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 --

Page 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

Page 90

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

Page 91

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

Page 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

Page 93

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

Page 94

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

Page 95

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

Page 96

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

Page 97

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

Page 98

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

Page 99

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

Commentaires sur ces manuels

Pas de commentaire