Home
        EDK2612 User Manual
         Contents
1.    EDK2612    USER MANUAL    FOR H8S 2612  ON CHIP FLASH MICROCONTROLLER          Preface    Cautions  1  This document may be  wholly or partially  subject to change without notice   2  All rights reserved  No one is permitted to reproduce or duplicate  in any form  a part or this entire  document without Hitachi Micro Systems Europe Limited s written permission   Trademarks  General    All brand or product names used in this manual are trademarks or registered trademarks of their respective  companies or organisations     Specific  Microsoft  MS and MS DOS are registered trademarks and Windows and Windows NT are  trademarks of Microsoft Corporation     Document Information    Product Code  D003560_11    Version  1 0    Date  09 04 2002    Copyright    Hitachi Semiconductor America 2000 2002  All rights reserved   Copyright    Hitachi Micro Systems Europe Ltd  1995 2002  All rights reserved   Copyright    Hitachi Europe Ltd  1995 2002  All rights reserved     Global  http  Awww hitachisemiconductor com  USA  http   semiconductor hitachi com  Europe  http   www  hitachi eu com semiconductors    http   www hmse com          2 1   2 2   2 3     3 1     4 1   4 2   4 3   4 4   4 5     5 1   5 2   5 3   5 4   5 5   5 6     6 1     TABLE OF CONTENTS    TABLE OF CONTE Ti ias 3  START UP INSTRUCTIONS ii A e aa 4  INSTALLING THE EVALUATION DEVELOPMENT KIT  EDK        ococoncocioniccionccccnnnncnionicnionionio nono nancininncno cnc 4  SERIAL  CONNECTION    coria Aint BR Aan Ai dd dida
2.   gt    lt  2 2  gt   5 5       FIGURE 2 1  SERIAL CONNECTION TO PC NOTEBOOK WITH DB 9 CONNECTOR  SUPPLIED     2 3  POWER SUPPLY    The EDK hardware requires a power supply of  5V  Since total power consumption can vary widely due to external  connections  port states  and memory configuration  use a power supply capable of providing at least 500mA at  5V DC    5      The design is specified for evaluation of the microcontroller and so does not include circuitry for supply filtering noise  reduction  under voltage protection  over current protection or reversed polarity protection  Caution should be used when  selecting and using a power supply     The power connector on the EDK is a 2 5mm Barrel connector  The center pin is the positive connection   OV e Sv    FIGURE 2 2  POWER SUPPLY CONNECTION    Caution  Existing customers using E6000 products note that the polarity of this board is opposite to that for the  E6000  Use of the E6000 power supply with this board will damage both board and power supply           3    EDK BOARD LAYOUT  The diagram shows a general layout of the EDK board     Re 00000000000000000C0O00  s 000000000C00000000000    3V3  UVcc    Testpoints  XTAL  BOOT LED 5E    Power LED  User1 LED  User2 LED    HITACHI  Microprocessor       O  O  o  O  O  O  O  O  O  O  O  O  O  O  O  O  O  Oo   0     oo0o0000000000  O 00000       000000C00COOOOC00O000  oo00o00000000 J2  00000000000000000000    CJ4       FIGURE 3 1  EDK BOARD LAYOUT    3 1  EDK BLock DIAGRAM    Th
3.  0603 3 A 150 KAT                TABLE 4 3  REMOVABLE COMPONENT INFORMATION    Care must be taken not to damage the tracking around these components  Only use soldering equipment designed for  surface mount assembly and rework     4 3  SRAM    This EDK does not support external address and data bus connections so there is no SRAM on this EDK           4 4  MEMORY MAP    Table 4 4 illustrates the EDK memory map for mode 7                                               Section End i i  SL aS Section Allocation  H    00000000  h Chip ROM  H    O1FFFF ee  H    FFE   gt  000 On chip RAM  H    FFEFBF  H7  FFF800 Internal 1 O registers  H    FFFF3F  H7  f FFFF60 Internal 1 O registers  H    FFFFBF  H7    FFFFCO On Chip RAM  H    FFFFFF                      TABLE 4 4  MEMORY MAP  DEFAULT MODE 2     4 5  LEDs    The EDK has four red LEDs  The function of each LED is clearly marked on the silk screen of the PCB  Please refer to the  board layout diagram for position information  Section 3      When the board is connected to a power source the Power  PWR  led will illuminate  The Boot mode indication LED will  illuminate when the microcontroller has been placed into Boot mode  Please see section 0 for more details of this function     There are two LEDs dedicated for user control these are marked USR1 and USR2  Each LED will illuminate when the port  pin is in a logical high state     The user LEDs are connected to the following ports                          LED Port Microcontroller Pin
4.  Functions on Port Pin  Identifier Pin Pin   USRI P15 3 P15 PO13 TIOCB1 TCLKC   USR2 P16 4 P16 PO14 TIOCA2 nIRQ1          TABLE 4 5  LED PORT CONNECTIONS          5  BOARD OPTIONS   The EDK has a number of configuration settings set by jumpers CJ4  A  B  C  D  CJ5  A  B  C  D  and zero ohm links   Common EDK functions can be set using the jumpers as described in sections 5 3 and 5 2  The additional zero ohm links  provide additional features that may be required to interface with other systems     All the Jumper link settings are three pin options  There are four sets of options on each header   The headers are numbered from 1 to 12 with pin 1 marked on the PCB by an arrow pointing to the pin  The diagram below  shows the numbering of these jumper links and indicates jumpers fitted 1 2 for each three pin jumper     5 1  JUMPER LINKS                FLASH  Programming          J1 ogoogogogogogooooooooooooo0o0o000000000000000  popo0o0000r00000000000  0  000000  0000  200070000                Power             o    NMI  Switch       BOOT LED  O Power LED  User  LED  wm                                           PTXD XTAL             o  o  o                                                                                  000 00000000000 0000 O  c  E  m  e   i                                                                                                      2i s    LED g E RX232  R gt  hn on a SRAN  HITACHI  Y po  RESET BOOT DRXD Microprocessor osc HCAN  ow 2 Switch Switch 0 MD4  
5.  bi 4  POWER SUPP Mica ta a sa 4  EDK BOARD LAVO Toi daa Tiida 5  EDK  BLOCK DIAGRAM  aiiin aa an aaae aaa a adan 5  EDK OPERATION   ci a stat 6  USER INTERFACE ocupara ani ra aii Alai AA Aisa 6  SERIAL  INTERFACE  oia iay riada rai a lia 6  SRAM Lira rs SEA dita avin UE A AAA A A A NA 7  MEMORY MAP ecocosostooarc basaban inside basis ansnibenevn teen ancients 8  LEDS aia dad abad diia 8  BOARD OT idas 9  JUMPERIEINKS tus td Mics A A EE 9  USER MODESETTINOS  CJS iia e da 10  EDK  OP TIONS  OJA tica A ARAS oa dete DIE LOS 10  SERIAL  PORT SELECTION oia le td ata e 11  FLASH PROGRAMMING HEADER  isinna aiaia ci cialis ies 11  BOOT CONTRO aitaan aL ital adidity 12  CODE DEVELOPMENT cocci  n cian ta a ci 13  ADDITIONAL INFORMATION isis ir ill A ti 13          2  START UP INSTRUCTIONS  2 1  INSTALLING THE EVALUATION DEVELOPMENT KIT  EDK     Please refer to the quick start guide provided for initial installation of the EDK   A copy of the quick start guide and other information relating to this EDK at     http   www hmse com products edk support   Installing the EDK requires power and serial connection to a host computer     2 2  SERIAL CONNECTION    The serial communications cable for connecting the EDK to a host computer is supplied  The serial cable has 1 1  connectivity     Figure 2 1 shows how to connect the EDK to a PC or notebook computer equipped with a nine pin D connector     HOST    PC EDK                                                                             lt  3 3
6. These jumpers must be fitted at all times to ensure correct operation of the EDK                                Jumper Function Setting 1 2 Setting 2 3  5   Disables the RS232 receive signal   Enables the RS232 receive signal   CJ 4 A Serial Receive  gt   to enable the use of the Flash The Flash Programming Header   Default 2 3 Source A x  Programming Header must not be used in this state   Disables the Flash write hardware Enables the Flash write hardware  User   A  CJ 4 B Procramb  ih protection  protection   Default 2 3 M a 8 The flash can be overwritten in The flash can not be overwritten in  on User Mode  User Mode   CJ 4 C A  Default No Fit Ne Function  CJ 4 D y  Default No Fit Ne uackon           See section 5 5    TABLE 5 2  BOARD OPTION  JUMPER SETTINGS  DEFAULT SETTINGS IN BOLD     The following table lists the connections to each jumper pin                                                     Pin Net Name Description   1 UVCC Microcontroller Supply Voltage   2 RXDISn Disable Flash Header functions  Pulled low   Enables RX232   3 No Connection No Connection   4 UVCC Microcontroller Supply Voltage   5 UPM CPLD Controlled option to set Flash Write  FW   Pulled low   6 No Connection No Connection   a No Connection No Connection   8 No Connection No Connection   9 No Connection No Connection   10 No Connection No Connection   11 No Connection No Connection   12 No Connection No Connection                10       5 4  SERIAL PORT SELECTION    The programming serial port i
7. be pressed at any time  This will provide a single de bounced NMI interrupt to the  device     Pressing the boot button will cause the boot mode controller to reset the device and  during the reset period  present the  required mode settings to start the device in boot mode  At the end of the reset period the boot mode settings will have been  latched into the device which will then be ready to accept a boot mode connection via the RS232 interface or the flash  programming header  Pressing the boot button during a normal reset will not cause the EDK to enter boot mode     The boot mode settings are fixed at mode 3  The required mode settings are made using a tri state capable buffer     Note  The boot control device is programmed to support all possible EDK products   For this reason the reset pulse is over 500ms  Repetitive activation of either the Boot or Reset buttons will restart  the reset timer and extend the reset period  Pressing the boot button within the 500mS period of a reset will not  cause the board to enter boot mode     5 6 1  CPLD CODE    The code is based upon a four state machine providing a guaranteed reset period which can be extended by holding the  relevant control input in the active state  When released the timer will extend the reset for approximately 500mS     The states are split into two functions  one for User mode and one for Boot mode  The first state of each is used to hold the  reset line active  When the timer expires then the second state i
8. e device used to convert the RS232 serial information to logic signals for the microcontroller is limited to  120kBaud  The rates above this level can only be utilised if the user provides direct logic level communications     The default communication rate for the EDK is indicated by the shaded selection     The user may replace the HC49 U surface mounted AT cut crystal with another of similar type within the operating frequency  of the microcontroller device  Please refer to the hardware manual for the microcontroller for the valid operating range     Alternatively the user may fit an oscillator module     or provide an external clock source  When providing an oscillator module  or external source it is highly recommended that the load capacitors for the AT crystal are removed from the PCB  These are  physically placed within the PCB outline of the oscillator module for easy location and to ensure they are removed when  using this option     When changing the crystal frequency the pre loaded debugging monitor will not function  In this situation the user is  responsible for providing code to evaluate the device away from the default operating speed     4 2 3  REMOVABLE COMPONENT INFORMATION     This information is provided to allow the replacement of components removed from the board as described in section 4 2 2                       Component Cet  Ref   Value Rating Manufacturer  Load Resistor R8 IMQ 0805 1  Welwyn WCR Series  Load capacitors C6 C7 12pF 0603 10  25V   AVX
9. e diagram shows the connectivity of the components on the EDK board                                                                                                                       5V PSU Reset Boot NMI   switches       EDK specific  A es  I I    A      5V Supply Control Logic SRAM   amp     3V3 Regulator oras ua l  AO  l  RS232 HCAN Driver l  Programming i   amp  Comms HITACHI ss l  Microprocessor   ff     Display    Module         AA eaten J  LEDs On Chip i  Debug    User1   Power Header   Connector   Connectors     amp   amp  Lt See l  User2   Boot                         FIGURE 3 2  EDK BLOCK DIAGRAM          4  EDK OPERATION  4 1  USER INTERFACE    The EDK provides three buttons for influencing the operation of the board  The purpose of each button is clearly marked next  to it  Refer to the board layout for positions  Section 3     1  Reset Switch  This button provides the microcontroller with a timed reset pulse of at least 250mS   2  Boot Switch    This button toggles the operating mode of the microcontroller  A complete description of this function is given in  section 5 6     3  NMI Switch    This button provides a de bounced signal to the microcontroller for each operation of the button  There is no minimum or  maximum activation time for this button     4 2  SERIAL INTERFACE    The serial interface on the EDK board has several functions  The serial port on the microcontroller directly supports three  wire serial interfaces  Options are provided on the board f
10. is a USB based programming  tool for control and programming of Hitachi microcontrollers  available separately from Hitachi  This header provides direct  access for the FDB to control the EDK microcontroller     To utilise this header the user must make the following changes to the board configuration     1  Disable the RX232 signal from the RS232 transceiver   Jumper link CJ4 A is provided for this purpose  Please refer to section 5 3     2  Disable User Program Mode using jumper CJ4 B  Please refer to section 5 3     Caution  Do not operate the board with the user mode jumpers removed and the FDB disconnected as the  microcontroller mode pins will float to an indeterminate state  This may damage the microcontroller device           5 6  Boot CONTROL    The method for placing the microcontroller device in to Boot mode for reprogramming has been incorporated into a complex  programmable logic device  CPLD   This is not necessary for most user designs but allows a measure of increased flexibility  for the EDK designs  Mode transitions including boot mode transitions only require the reset to be held active while the mode  settings are presented  On releasing reset the microcontroller will be in the required mode     The logic design detects a power up event and provides a timed reset pulse to guarantee the reset of the device  At the end  of the rest pulse the processor will be placed in user mode and any code in the device will execute     During user mode the NMI button can 
11. n with the fastest serial operating speeds   The value of the crystal is 18 432MHz  The following table shows the baud rates and Baud Rate Register  BRR  setting  required for each communication rate using the above default operating speed  It also confirms the resultant baud rate and  the bit error rate that can be expected     Baud Rate Register Settings for Serial Communication Rates    SMR 1 2 3   Setting    BRR Actual ERR   BRR Actual ERR   BRR Actual ERR   BRR Actual ERR  Baud    setting Rate     setting Rate     setting Rate     setting Rate      110 Invalid Invalid Invalid Invalid Invalid Invalid Invalid Invalid Invalid 81 110  0 22    300 Invalid Invalid Invalid Invalid Invalid Invalid 119 300 0 00 300 0 00  1200 Invalid Invalid Invalid 119 1200 0 00 29 1200 0 00 1125  6 25  2400 239 2400 0 00 59 2400 0 00 14 2400 0 00 2250  6 25  4800 119 4800 0 00 29 4800 0 00 7 4500  6 25 4500  6 25  9600 9600 0 00 9600 0 00 3 9000  6 25 i Invalid Invalid  19200 19200 0 00 18000  6 25 1 18000  6 25 i Invalid Invalid  38400 38400 0 00 36000  6 25 Invalid Invalid Invalid i Invalid Invalid  57600 57600 0 00 48000  16 67 Invalid invalid Invalid i Invalid Invalid  115200 115200 0 00 144000 25 00 Invalid Invalid Invalid i Invalid Invalid  230400  192000  16 67 Invalid Invalid Invalid Invalid Invalid Invalid i Invalid Invalid  460800  576000 25 00 Invalid Invalid Invalid Invalid Invalid Invalid i Invalid Invalid          TABLE 4 2 CRYSTAL FREQUENCIES FOR RS232 COMMUNICATION      Note  Th
12. ng URLs     Global  http   www  hitachisemiconductor com  USA  http   semiconductor hitachi com  Europe  http   www  hitachi eu com semiconductors    http  Awww hmse com       
13. or the user to write handshaking routines using standard port pins   Other board option links allow users to control the entry and exit from boot mode using the same handshaking signals  Refer  to section 5 for details on setting serial interface options     4 2 1  CONNECTOR PIN DEFINITIONS    The EDK RS232 interface conforms to Data Communication Equipment  DCE  format allowing the use of 1 1 cables when  connected to Data Terminal Equipment  DTE  such as an IBM PC  The cable used to connect to the EDK will affect the  available board options  A fully wired cable can allow handshaking between the microcontroller and the host PC  subject to  setting the board options and the availability of suitable host software  Handshaking is not supported as standard on the  microcontroller so for normal use a minimal three wire cable can be used  The minimum connections are unshaded in the  following table        EDK DB9 Signal Host DB9  Connector Pin Connector Pin  No Connection  EDK Tx Host Rx  EDK Rx Host Tx  No Connection  Ground  No Connection    EDK CTS Host RTS    EDK RTS Host CTS  No Connection                            WO  WO  NA D  NM  A WY  dD  Re  wo   NID  Mm  BY  BW  boy                      TABLE 4 1  RS232 INTERFACE CONNECTIONS      These are not connected on the EDK by default  See section 5 4 for more details        FIGURE 4 1  EDK SERIAL PORT PIN NUMBERING          4 2 2  CRYSTAL CHOICE    The operating crystal frequency has been chosen to support the fastest operatio
14. s connected to the RS232 connector by default  This allows direct programming of the EDK  using the supplied software tools  A secondary serial port is available on the microcontroller and can be connected to the  RS232 connector by changing some board option links  The additional port option allows the user to write messages or  connect to other devices via the serial port while programming support is provided by the Flash programming header     The following surface mount  zero ohm link settings are fitted by default and connect the RS232 header to the programming  serial port of the microcontroller                             Zero ohm Default Function Microcontroller  Link ID Port Pin  CR20 Fitted Transmit data from EDK PAI  CR23 Fitted Receive data to EDK PA2  CR19 Not Fitted Alternate Transmit data from EDK PCO  CR22 Not Fitted Alternate Receive data to EDK PCl             TABLE 5 3  OPTION LINKS     DEFAULT SETTINGS    To enable the use of this alternate port the user must change the settings to those in the following table                                   Zero ohm Default Function Microcontroller  Link ID Port Pin  CR20 Not Fitted Transmit data from EDK PAIL  CR23 Not Fitted Receive data to EDK PA2  CR19 Fitted Alternate Transmit data from EDK PCO  CR22 Fitted Alternate Receive data to EDK PCl       TABLE 5 4  OPTION LINKS     ALTERNATE SERIAL PORT    The user may implement a handshaking protocol on the EDK  This is not supported with the software tools supplied  To  
15. s used to hold the device in the selected mode and wait for  an external control signal to either move back into the user reset state or into the boot reset state     5 6 2  STATE DIAGRAM    Boot Mode Controller   Positive Logic      ie a    a     Y a ES AS  o 4 Noja ee         CTS BootSw     Res eN p    Wait   Ss AS    iting 6 KA S      a      PA EAS  K JRX   Boot        ES   Res   Boot             NS Pa    e Res ra  y o  _       _ Reset Timer N     Se       o a                     Re   i  ee     Res           I  fe 43       E uf Clocked Transitions      Res   Reset  e aJ AS using nE555  gt          lt           All solid transition    SS 4 lines  Jp    y es eS  Reset laa i  Ko Na  N    _ aa   Y ES  4    BootSW   ResSw   CTS    BootWaiting      F         Res        y     A    a     Sis LN A J  Async NE E ee NS RE    FIGURE 5 2  CPLD STATE DIAGRAM          6  CODE DEVELOPMENT    6 1  ADDITIONAL INFORMATION    For details on how to use Hitachi Embedded Workshop  HEW   with HDI m  the EDK   s resident debugger  refer to the HEW  manual available on the CD or from the web site     For information about the H8S series microcontrollers refer to the H8S Series Hardware Manual  For information about the H8S assembly language  refer to the H8S Series Programming Manual  Further information available for this product can be found on the HMSE web site at     http   www hmse com products edk support edk2612 htm  General information on Hitachi Microcontrollers can be found at the followi
16. support this option two spare port pins have been allocated on the microcontroller  Using these port pins the CTS and RTS  lines of the host serial interface can be controlled     The user may also control the operation of the board via the same handshaking lines  This is not supported with the software  tools supplied but may be written by the user  Using the CTS line the user may simulate pressing the boot button  see  section 5 6  This will cause the EDK to swap into and out of Boot mode on each low level activation of CTS  Feedback of the  current mode is provided on the RTS line  A high level indicates boot mode and a low level indicates user mode     The following settings are made by default  and ensure that there are no conflicts on unnecessary microcontroller pins                                Zero ohm Default Function Microcontroller  Link ID Port Pin  CR12 Not Fitted Mode State out from EDK N A  From CPLD    CR7 Not Fitted Change Mode request to EDK N A  From CPLD    CR16 Not Fitted Alternate RTS232     Ready to send     from EDK PF4  CR13 Not Fitted Alternate CTS232     Clear to send     to EDK PFO          TABLE 5 5  OPTION LINKS     SERIAL PORT CONTROL    See section 5 6    Note  These setting pairs are exclusive     If CR12 and CR7 are fitted  CR16 and CR13 must not be fitted   If CR16 and CR13 are fitted  CR12 and CR7 must not be fitted     5 5  FLASH PROGRAMMING HEADER    The Flash Programming header is used with the Hitachi Flash Debug Board  FDB   The FDB 
17. wm o MD4  o MD4  EEA La Al o  a HCAN    CJ5 B  o mos  7H E 9 Way O  o mb  Nos O  O mo   gt  5N D Type O  6 ma  EN o O  o ms   gt  o  wm o Oj o mo  ime DODODD ODO ODO DDD ODO OOOO  a gt   POD000000000  J2  00000000000 0D0DODODODODODODODODODODO  z  3 CJ4  he    o   Ss                                                                                                                                                                                                                                              9 12    E                      12 3 1 1 11 2 3  Jumper   Jumper Jumper    Jumper  A   8B Cc LD  1 23 1 1 2 3 123 1 1 2 3    FIGURE 5 1  JUMPER CONFIGURATION    The following tables define each jumper and its settings           5 2  USER MODE SETTINGS     CJ5    CJ5 is used to set the operating mode of the microcontroller     These jumpers must be fitted at all times to ensure correct operation of the EDK                       Jumper Function Setting 1 2 Setting 2 3  R 2 3 User Mode Setting Bit 0 MDO pulled High MDO pulled Low  na 1 2 User Mode Setting Bit 1 MD1 pulled High MD1 pulled Low    A 23 User Mode Setting Bit 2 MD2 pulled High MD2 pulled Low  EN 12 User Mode Setting Bit 3 MD3 pulled High MD3 pulled Low                   TABLE 5 1  USER MODE  JUMPER SETTINGS  DEFAULT SETTINGS IN BOLD     The default settings indicated in bold text place the microcontroller into Mode 7     5 3  EDK OPTIONS   CJ4    The EDK options provide access to commonly used features of the EDK range     
    
Download Pdf Manuals
 
 
    
Related Search
    
Related Contents
PureMessage for Microsoft Exchange startup guide  Toshiba 32AV833 LCD TV  akku-schlagschrauber cordless impact screwdriver ass 10-a  Installation et Instructions d`Utilisation  cobas h 232 User Manual IT    Balance électronique Mode d`emploi    Copyright © All rights reserved. 
   Failed to retrieve file