Home

3DK1657 User Manual

image

Contents

1. Switch Function Microcontroller SW1 BOOT This switch is used in conjunction with the RES switch to place the IRQO A Pin 72 device in BOOT mode Port 1 pin 0 SW2 This switch is connected via a OR link to an IRQ line capable of IRQ1 A Pin73 waking up the microcontroller device from sleep mode Port 1 pin 1 SW3 This switch is connected via a OR link to another IRQ line capable of IRQ2 A Pin 74 waking up the microcontroller device from sleep mode Port 1 pin 2 RES This switch when pressed resets the 3DK microcontroller RESn NB Refer to schematic for detailed connectivity information Regulator 6 2 LEDS There are nine LEDs on the 3DK board The green BOOT LED indicates the device is in boot mode when lit The eight red LEDs are connected to an IO port and will light when their corresponding port pin is set low Table 6 1 below shows the LED pin references and their corresponding microcontroller port pin connections LED Reference As shown Microcontroller Port Pin function Microcontroller Pin Number on silkscreen CLED1 PHO 53 CLED2 PH1 54 CLED3 PH2 55 CLED4 PH3 56 CLED5 PH4 58 CLED6 PH5 59 CLED7 PH6 60 CLED8 PH7 61 Table 6 1 LED Port 6 3 POTENTIOMETER A single turn potentiometer is connected to ANO of the microcontroller This may be used to vary the input analog voltage value to this pin between AVCC and Ground 6 4 SERIAL
2. an interrupt priority of 6 The serial port has an interrupt priority of 7 Modules using interrupts should be set to lower than this value 6 or below so that serial communications and debugging capability is maintained 11 9 ADDITIONAL INFORMATION For details on how to use High performance Embedded Workshop HEW with HMON refer to the HEW manual available on the CD or from the web site For information about the H8S X 1657 series microcontrollers refer to the 85 1657 Series Hardware Manual For information about the H8S X 1657 assembly language refer to the H8 Series Programming Manual Further information available for this product can be found on the Renesas web site at http www eu renesas com tools General information on Renesas Microcontrollers can be found at the following URLs Global http www renesas com
3. from this point The HMON embedded monitor code must be compiled with user software and downloaded to the 3DK allowing the users code to be debugged within HEW 11 2 MODE SUPPORT The HMON library is built to support 16Mbyte advanced Mode for the H8SX family only 11 3 BREAKPOINT SUPPORT The device has no break controller No breakpoints can be located in ROM code However code located in RAM may have multiple breakpoints limited only by the size ofthe On Chip RAM 114 CODE LOCATED IN RAM Double clicking in the breakpoint column in the code sets the breakpoint Breakpoints will remain unless they are double clicked to remove them 11 5 Hmon CODE SIZE HMON is built along with the debug code Certain elements of the HMON code must remain at a fixed location in memory The following table details the HMON components and their size and location in memory For more information refer to the map file when building code Section Description Start Location Size H bytes RESET_VECTOR HMON Reset Vector Vector 0 H 0000 0000 4 Required for Startup of HMON SCI_VECTORS HMON Serial Port Vectors Vector 160 161 162 163 H 0000 0280 F Used by HMON when EDK is configured to connect to the default serial port PHMON HMON Code H 0000 3000 2730 CHMON HMON Constant Data 0000 5730 134 BHMON HMON Uninitialised data H 00FF 6494 21F UGenU FDT Kernel H 0000 1000 E64 This is at a fixed location and must not b
4. port when the device is in user mode e ooo60e060 e Female serial connector showing pin numbering Power Jack 6 5 JUMPERS Table 6 3 below describes the function of the 2 Pin jumpers contained on this 3DK board 2 Pin J umper Settings Reference Jumper Fitted Alternative Removed Footprintfor jumper Function only J umper pins fitted J10 RX Disable from the 5232 Disabled This allows the umper pins fitted device to Ul is enabled FDM to program the This enables serial port microcontroller communication Jil UVCC power Bypasses R11 1206 OR R11 must be fitted to Footprint only Measurement resistor current power UVCC measurement J13 User Boot A transition to user mode is A transition to boot mode made once a boot switch is made once a boot sequence is performed by switch sequence is the user performed by the user 114 Regulator Bypasses the regulator Board supply is taken via Bypass power to board is taken regulator directly from external supply additionally R87 must be fitted and R85 removed 7 OSCILLATOR SOURCES A ceramic resonator is fitted on the 3DK and used to supply the main clock input to the Renesas microcontroller Table 7 1 details the oscillators that are fitted and alternative footprints provided on this 3DK Table 6 4 2 Pin jumpers Component Details Te 14 7458MHz 115200 X1
5. 1 IOPORT TXD IOPORT 2 Xin CON EXTAL 2 IOPORT RXD 3 Vcc Board VCC NA IOPORT T1 IOPORT 48 4 Vss Ground 4 IOPORT T2 IOPORT T2 49 5 Vcc Board VCC NA 5 IOPORT 3 IOPORT T3 50 6 Vss Ground NA 6 IOPORT T4 IOPORT T4 51 7 AVcc AVCC 101 7 IOPORT U NC 8 AVss AVSS 103 8 IOPORT V NC 9 Vref VREF 105 9 IOPORT W NC 10 ANo PIN98 98 10 0 IOPORT 0 53 11 PIN99 99 11 IOPORT 1 IOPORT 1 54 12 PIN 100 100 12 IOPORT 2 IOPORT 2 55 13 AN3 PIN102 102 13 IOPORT 3 IOPORT 3 56 14 DACO PIN107 107 14 IOPORT 4 IOPORT 4 58 15 DACI PIN108 108 15 IOPORT 5 IOPORT 5 59 16 SCL NA 16 IOPORT 6 IOPORT 6 60 17 SDA 17 IOPORT 7 IOPORT 7 61 18 CTX 18 Reset RESn 71 19 CRX 19 IOPORT INT NMIn 52 20 Vss GROUND Table 10 5 Generic Headers Connected via a DNF OR Link refer to schematic for further details 11 CODE DEVELOPMENT 11 1 OvERVIEW Note For all code debugging using Renesas software tools the 3DK board must either be connected to a PC serial port via a serial cable or a PC USB port via an Flash Debug Module The HMON embedded monitor code is modified for each specific 3DK Renesas Microcontroller HMON enables HEW to establish a serial connection to the 3DK microcontroller and control code execution on the microcontroller Breakpoints may be set in memory to halt code execution at a specific point The code may be started
6. 30 1657 USER MANUAL For H88X 1657 ON CHIP FLASH MICROCONTROLLER Warnin Check the silkscreen around the power jack J 9 for the minimum and maximum voltage input levels for this 3DK Always use a centre positive supply for this board DO NOT USE AN E6000 POWER SUPPLY with this 3DK Preface Cautions 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 Renesas Technology 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 Document Information Product Code D005463 11 Version 1 Date 23 11 2004 Copyright Renesas Technology Europe Ltd 2004 All rights reserved Website http www eu renesas com TABLE OF CONTENTS TABLE OF CONTENTS 3 1 POWERREQUIREMENTS cecinere nint cn nir cisci rator dat ea chr ca C nr o ERE a TR e erred 4 2 POWER UP BEHAVIOUR serenrnerenrne rennen rennen rennen rre nri i i 4 PURPOSE rae rr ra V T E rV RE y rr v e y
7. 4 1mm x 4 7mm package Crystal X2 FONDO ny 14 745MHz 115200 fitted low profile package 5mm x 7mm x 1 3mm Footprint only 14 7456MHz recommended 115200 Crystal 3 value HC 49U package Subclock None Table 7 1 Oscillators Resonators Either X1 or X2 will be fitted on this board Warning When replacing the default oscillator with that of another frequency the FDT programming kernels supplied will need rebuilding The supplied HMON debugging monitor will not function The user is responsible for code written to support operating speeds other than the default See the HMON user manual for details of making the appropriate modifications in the code to accommodate different operating frequencies 8 MODES The 3DK supports User mode Boot mode and User Boot mode User mode may be used to run and debug user code while Boot mode may only be used to program the Renesas microcontroller with program code User Boot mode can only be used to program the User Mat the main area 768Kbytes of Flash ROM on the device It does not support programming of the user boot area User Boot mode is used to run a user bootloader program stored in the user boot MAT the smaller area 8Kbytes of Flash ROM To program the user boot MAT the device must be in Boot mode Further details of programming the are available in the H8S 1657 hardware manual To enter boot mode press and hold the boot button so that the mode pins are
8. 8 PH4 58 29 PH5 59 30 PH6 60 Table 10 3 13 J3 Circuit Net Name J3 pin Circuit Net Name U1 pin Pin number number number 1 PH7 61 2 Board Vcc 62 3 63 4 64 5 PI2 65 6 66 7 GROUND 67 8 4 68 9 PI5 69 10 70 1 PI7 71 12 P10 72 13 P11 73 14 12 74 15 P13 75 16 GROUND 76 17 RESn 71 18 NC Vcl Pin 78 19 P14 79 20 P15 80 21 WDTOVFn 81 22 GROUND 82 23 XTAL 83 24 EXTAL 84 25 BOARD VCC 85 26 P16 86 27 P17 87 28 STBYn 88 29 89 30 P61 90 Table 10 4 J4 J1 Circuit Net Name J1pin Circuit Net Name U1 pin Pin number number number 1 P62 91 2 NC PLL Pin 92 3 P63 93 4 NC PLL Pin 94 5 P64 95 6 P65 96 7 MDO 97 8 P50 98 9 P51 99 10 P52 100 11 CON_AVCC 101 12 P53 102 13 CON AVSS 103 14 P54 104 15 CON VREF 105 16 55 106 17 P56 107 18 P57 108 19 MD1 109 20 PAO 110 21 1 111 22 112 23 113 24 114 25 5 115 26 PAG 116 27 GROUND 117 28 PA7 118 29 BOARD VCC 119 30 120 10 2 GENERIC HEADERS Table 10 5below shows the generic header connections 19 way generic Header 20 way generic Header Pin Generic 3DK Signal Name Generic Header 3DK Signal Micon Number Header Name Pin Number Name Name Pin 1 Supply Supply NA T
9. EE RE EE E RR E a 10 I0 MICON HEADERS uei edi eie eed e d eia d nce dcn Cac eee d 10 GENERICCHEADERS 5 tr on tm repe tg etr e E wis RE Re Ee 12 11 CODE DEVELOPMENT eere rennen rennen rennen nre i i i S I 12 TET OVERVIEW e ede RO er Bede t Na v Peta 12 112 MODE SUPPORT ten tette tet bete Rott tenete ced Rt rn tte oda 12 1 3 50 ate te e a tete n e Pe i Mah 13 1 4 CODE LOCATED RAM s icc eint eter ettet e D eet in neis 13 11 5 HMON CODE SIZE dcn teta inh tameii ect vnd e ED RR vdd edit 13 11 06 MEMORY MAD iint tritt inh i rt cen 13 117 BAUD RATE SETTING r intr tacet ito decedere itane hc ta sc tt t ecd reed 14 11 8 INTERRUPT MASK SECTIONS eae ctn dic osea Pee 15 11 9 ADDITIONAL INFORMATION iro am n e tm o erret 15 1 PowER REQUIREMENTS All 3DK boards are centre positive with a 2 5mm barrel power jack The diode D1 provides reverse polarity protection A 9V centre positive supply is suitable for use with this board Warning Check the silkscreen around the power jack J 9 for the minimum and maximum voltage input levels for this 3DK The 3DK is neither under nor over voltage protected Always use a centre positive supply for this board DO NOT USE AN E6000 POWER SUPPLY with this 3DK 2 POWER UP BEHAVIOUR The 3DK board has code pre programmed into the Renesas microco
10. PORT The microcontroller programming serial port SCI4 is connected to the D type connector J8 via an RS232 transceiver secondary microcontroller serial port SCI1 is connected to generic header 6 via the second channel of the RS232 transceiver The serial baud rates supported by this 3DK are shown below Note these values are calculated from the frequency value of the main oscillating source fitted by default on this 3DK Baud Rate Register Settings for Serial Communication Rates Values are calculated for 29 4984MHz clock BRR Actual ERR BRR Actual ERR BRR Actual ERR BRR Actual ERR setting Rate 90 setting Rate setting Rate setting Rate invalid invalid invalid invalid invalid invalid invalid invalid invalid 111 0 70 invalid invalid invalid invalid invalid invalid 95 300 0 00 23 300 0 00 invalid invalid gt invalid 1200 0 00 23 1200 0 00 5 1200 0 00 191 2400 0 00 2400 0 00 2400 0 00 2 2400 0 00 95 4800 0 00 4800 0 00 4800 0 00 1 3600 25 00 47 9600 0 00 9600 0 00 9600 0 00 invalid invalid invalid 23 19200 0 00 19200 0 00 1 14400 25 00 invalid invalid invalid 38400 0 00 38400 0 00 invalid invalid invalid invalid invalid invalid 57600 0 00 57600 0 00 invalid invalid invalid invalid invalid invalid 115200 0 00 115200 0 00 invalid invalid invalid invalid invalid invalid Table 6 2 BRR Settings This serial port may be used as a debugging communication port or as a normal serial communication
11. V E 4 4 BOARD LAYOUT ie enrichir ice dre rura rre ree n ru Pup erba vore cene ro Ra aar on 4 BEOCK DIAGRAM scc i sees renis nrc fee desc rr nude RE cv v Er On dev Y n ou E Ee S v 5 6 USER CIRCUITRY 5 6 T SWITGCHES asic icd m t nma de hae d Rh RR RR dl m m dine Rada 5 6 21 LEDS P E O 6 0 3 POTENTIOMETER nte rc ped m a Br le a cd RR ERE ARR 6 0 4 SERIE PORT crus tot c P ER e ed dO FE d Rr ag 6 6 5 JUMPER Si itte abt e aite dde pta bro e E P ER b en e a vn e des 1 7 OSCILLATOR SOURCES enne eren rere 7 8 MODES 8 BOOT 8 82 USER esaet recreo tere e creed Re re 8 9 PROGRAMMING METHODS 8 91 PORT PROGRAMM ING ciii rccte tst tene recte eer eed ect nre eei 9 92 FOM HEADER ue ER ro pro ord to patrato Pe tont nc 9 9 3 ET HEADER orto nette rro mm etr t apr ar rc pet repens 9 04 iii cit eo re eto pa o PR T ta ts 9 10 HEADERS iiis rais ra aii i a a a
12. e POWER o o CLED2 JACK A z J J9 t BOOT LED BOOT SINGLE TURN HEADER POTENTIOMETER MICON DEBUG 20 WAY J4 HEADER HEADER GENERIC J1 HEADER J6 RS232 Transceiver HC74 dual ES D type logic 5 BLOCK DIAGRAM Generic Headers Flash Boot Header Micon Headers Serial Connector Debug Header IC BOOT LATCH C 2004 Renesas Technology Europe LTD U2 0 0000000000 000000000000 05 oo 900 oo igi 090 oo e go oo Crystal Oscillator 00000 000 Resonator Components 89 000 Footprints 000 000000000000 9 0000000000000 Diagram x 1 is representative of the 3DK components and their connectivity Power Jack amp Regulator IC Microcontroller Boot mode pins Boot Circuitry RESET pin D type latch BOOT amp BOOTn signals IRQ wakeup pin IRQ wakeup pin Sw2 SW3 RES BOOT Potentiometer SWITCHES LEDs 8 Red LEDS 1 Green LED 6 USER CIRCUITRY 6 1 SWITCHES There are four switches located on the 3DK These are
13. e moved Should the kernel need to be moved it must be re compiled CUser_Vectors Pointer used by HMON to point to the start of user code H 0000 0800 4 11 6 Memory Map The memory map shown in this section visually describes the locations of program code sections related to HMON the FDT kernels and the supporting code within the ROM RAM memory areas of the microcontroller gt H 0000 RESET Vector IUD Vectors H 0003 H0800 CUser_Vectors H 0803 H 1000 UGenU FDT Kernel H 1E63 H 3000 PHMON iod SCI Vectors A sud H 5863 X H 028B On Chip FLASH ROM H BFFFF H FF6000 On Chip RAM H FF6494 BHMON H FF66B2 Stack H FFBFFF H FFFB80 Internal I O REGISTERS 11 7 BAUD RATE SETTING HMON is initially set to connect at 115200 Baud The value set in the baud rate register for the microcontroller must be altered if the user wishes to change either the serial communication baud rate of the serial port or the operating frequency of the microcontroller This value is held in the HMONSserialconfiguser c file as 5 see the Serial Port section for baud rate register setting values The project must be re built and the resulting code downloaded to the microcontroller once the BRR value is changed Please refer to the HMON User Manual for further information 11 8 INTERRUPT MASK SECTIONS HMON has
14. held in their boot states while reset is pressed and released Then release the boot button The BOOT LED will be illuminated to indicate that the microcontroller is in boot mode 8 1 BOOT MODE The boot mode settings for this 3DK are shown in Table 8 1 below MDO MD1 MD2 LSI State after Reset End 1 1 1 User Mode 1 0 0 Boot Mode Table 8 1 Mode pin settings 8 2 USER BOOT MODE A Note on Mats The 85 1657 possesses two distinct areas of Flash User MAT 768KByte and User Boot MAT 8KByte The User Boot MAT is a separate area of FLASH from User MAT intended to hold user boot code A custom boot stub could be programmed into User Boot MAT which allows programming and erasing of the User MAT in User Mode without erasing the contents of the User Boot MAT Once User Boot Mode is entered code contained in the User Boot MAT is executed This differs to Boot mode as Boot mode erases all User MAT and requires an auto baud on a fixed SCI port to be performed The existence of the user boot Mat therefore allows alternative communications port to be used for further code download to the User MAT Programming of the user boot mat may only be performed in boot mode The user may place the H8SX 1657 device provided on a 3DK1657 board in user boot mode by fitting jumper J 13 The Boot procedure must then be performed for entry into user boot mode The Boot LED should light suggesting a transition to user boot m
15. ld perform the following steps e Connecta cable between the 3DK programming header and that located on the secondary board e Slide switch SEL to the off board programming position OFF This holds the microcontroller on the 3DK in reset preventing it from being programmed 10 HEADERS 10 1 HEADERS Table 10 1 to Table 10 4 shows the micon headers and their corresponding microcontroller connections The header pins connect directly to the micon pin unless otherwise stated Table 10 1 J1 J1 Circuit Net Name J1pin Circuit Net Name U1 pin Pin number number number I PB1 1 2 PB2 2 3 PB3 3 4 MD2 4 5 PF7 5 6 PF6 6 7 PF5 1 8 PF4 8 9 PF3 9 10 GROUND 10 11 PF2 11 12 1 12 13 PFO 13 14 7 14 15 15 16 5 16 17 GROUND 17 18 PE4 18 19 BOARD VCC 19 20 PE3 20 21 PE2 21 22 1 22 23 PEO 23 24 PD7 24 25 PD6 25 26 GROUND 26 27 PD5 21 28 PD4 28 29 PD3 29 30 PD2 30 Table 10 2 12 J2 Circuit Net Name Ulpin J2pin Circuit Net Name U1 pin Pin number number number 1 PD1 31 2 PDO 32 3 EMLE 33 4 P20 34 5 P21 35 6 P22 36 7 P23 37 8 P24 38 9 RXD1 39 10 TXD1 40 11 P27 41 12 GROUND 42 13 P30 43 14 BOARD VCC 44 15 P31 45 16 P32 46 17 P33 47 18 P34 48 19 P35 49 20 P36 50 21 P37 51 22 NMI 52 23 PHO 53 24 PH1 54 25 PH2 55 26 PH3 56 21 GROUND 51 2
16. ntroller On powering up the board pressing Switch 2 will cause the red user LEDs to flash Switches 2 and 3 as well as the potentiometer can be used to modify the LED flashing pattern 3 PURPOSE This 3DK board is an evaluation tool for Renesas microcontrollers Features include a Renesas Microcontroller Programming b User Code Debugging C User Circuitry such as Switches LEDs and potentiometer s d User or Base Board Connectivity The 3DK board contains all the circuitry required for microcontroller operation 4 BOARD LAYOUT The following diagram shows top layer component layout of the board Note The diagram below is for illustrative purposes and does not accurately reflect the 3DK detailed in this manual MICON 19 WAY MICON GENERIC FLASH HEADER HEADER USER HEADER J5 HEADER J3 SWITCHES o Y u P bs 66 c 8 15 MCU a SELECT LJS SWITCH uU Sw3 SERIAL DARAN DU so E PORT E wi ED p Rm Microcontroller o se USER J8 ES au LEDS PEN n H SW1 BOOT T
17. ode The user boot mode settings for this 3DK are shown in Table 8 1 below MDO MD1 MD2 LSI State after Reset End 0 1 0 User Boot Mode Table 8 2 Mode pin settings 8 3 USER MODE For the device to enter User Mode reset must be held active while the microcontroller mode pins are held in states specified for User Mode operation 100K pull up and pull down resistors are used to set the pin states during reset The H8SX 1657 supports 4 user modes The memory map in all of these modes is 16Mbyte in size The default user mode for 3DK1657 is 7 9 PROGRAMMING METHODS All of the Flash ROM on the device i e both MATs can be programmed when the device is in Boot mode Once in boot mode the bootloader program pre programmed into the microcontroller executes and attempts a connection with a host for example a PC The host on establishing a connection with the microcontroller may then transmit program data to the microcontroller via the appropriate programming port Table 9 1below shows the programming port for this Renesas Microcontroller and its associated pins Programming Table Programming port pins and their 3DK signal names SCM TXD4 PIN 89 RXD4 PIN 90 SCK4 PIN 91 3DK Signal Name PTXD PRXD PSCK Table 9 1 Serial Port Boot Channel 9 1 PORT PROGRAMMING The microcontroller must enter boot mode for programming and the programming port must be connected to a ho
18. st for program download To execute the boot transition and allow programs to download to the microcontroller the user must perform the following procedure 1 Connecta 1 1 serial cable between the host PC and the 3DK board 2 Depress the RESET switch and keep this held down 3 Depress the BOOT switch once and release 4 Release the RESET switch 92 FDM HEADER The Renesas FDM Flash Debug Module is a USB based programming tool for control and programming of Renesas microcontrollers available separately from Renesas The 3DK serial programming signals PTXD PRXD PSCK and the microcontroller mode pins as well as the microcontroller reset signal are all connected to this header The FDM when connected to the Flash Programming header is therefore capable of forcing the microcontroller into boot mode programming and resetting the 3DK microcontroller To utilise this header the user must make the following changes to the board configuration 1 Jumper link J 10 must be removed 9 3 E7 E10A AND E10T HEADERS This device does not currently support any of the E7 E10A or E10T programming tools 94 Orr BOARD PROGRAMMING All 3DKs are capable of programming an alternative microcontroller on a secondary board The user is responsible for providing this second board containing the alternative microcontroller its supporting circuitry and an FDM or FoUSB header for the microcontroller To program the alternative microcontroller the user shou

Download Pdf Manuals

image

Related Search

Related Contents

anios quick wipes  Téléchargez  Manual de instrucciones  Formulaire carte Parking Relais CA2RS    LG 55LV75A-5B  AOCEM 320 YESOS  User's Manual  Hoover S3612 Bagged Canister Vacuum  

Copyright © All rights reserved.
Failed to retrieve file