Directed Electronics 3200HS Technical Information Seite 1

Stöbern Sie online oder laden Sie Technical Information nach Nein Directed Electronics 3200HS herunter. Directed Electronics 3200HS Technical information Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 99
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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.
Seitenansicht 0
1 2 3 4 5 6 ... 98 99

Inhaltsverzeichnis

Seite 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

Seite 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

Seite 3 - Application Note

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

Seite 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

Seite 5 - Contents

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

Seite 6

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

Seite 7 - 1. INTRODUCTION

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

Seite 8

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

Seite 9

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

Seite 10

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

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

Seite 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

Seite 13

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

Seite 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

Seite 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

Seite 16

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

Seite 17

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

Seite 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

Seite 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

Seite 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

Seite 21

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

Seite 22

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

Seite 23

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

Seite 24

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

Seite 25

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

Seite 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

Seite 27

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

Seite 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

Seite 29

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

Seite 30

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

Seite 31 - INTCSI00

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

Seite 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

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

Seite 34

CSI to SPI Peripheral Communication in V850ES Microcontrollers ii

Seite 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

Seite 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

Seite 37

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

Seite 38

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

Seite 39

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

Seite 40

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

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

Seite 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

Seite 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

Seite 44 - M-Station

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

Seite 45 - V850ES/KJ1+

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

Seite 46

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

Seite 47 - 3. DEVELOPMENT TOOLS

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

Seite 48 - 4. SOFTWARE LISTINGS

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

Seite 49

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

Seite 50

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

Seite 51

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

Seite 52

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

Seite 53

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

Seite 54

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

Seite 55

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

Seite 56

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

Seite 57

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

Seite 58

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

Seite 59

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

Seite 60

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

Seite 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

Seite 62

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

Seite 63

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

Seite 64

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

Seite 65

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

Seite 66

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

Seite 67

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

Seite 68

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

Seite 69

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

Seite 70

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

Seite 71

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

Seite 72

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

Seite 73

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

Seite 74

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

Seite 75

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

Seite 76

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

Seite 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

Seite 78

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

Seite 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

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

Seite 81

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

Seite 82

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

Seite 83

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

Seite 84

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

Seite 85

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

Seite 86

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

Seite 87

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

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

Seite 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

Seite 90

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

Seite 91

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

Seite 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

Seite 93

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

Seite 94

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

Seite 95

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

Seite 96

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

Seite 97

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

Seite 98

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

Seite 99

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

Keine Kommentare