SH69P21 EVB. Application Note for SH69P21 EVB SH69P21 EVB SH69P21

Similar documents
SH69P48A EVB. Application Notes for SH69P48A EVB SH69V48A JP2 J4(ICE_J4) S1 IDD TEST JP1 74HC273 JP4 JP3 74HC273 JP6 STKOVE JP7 SW1 J5(ICE_J5)

SH69P55A EVB. Application Note for SH69P55A EVB SH69P55A EVB SH69V55A

SH69P25/P23/P20B EVB. Application Note for SH69P25/P23/P20B EVB SH69P25/P23/P20B EVB SH69V25

SH67P33A / SH66K33A EVB

SH67K93/90 EVB ROM H ROM L. Application Notices for SH67K93/90 EVB SH69V93 SH67K93/90 EVB J2 GND. Port & CID interface Tele Line Plug.

EEE3410 Microcontroller Applications Department of Electrical Engineering Lecture 4 The 8051 Architecture

AN ELNEC EN ISP-HC08. Application note for In-System Programming of Motorola/Freescale HC08 microcontrollers

8051 Microcontroller

Three criteria in Choosing a Microcontroller

WT6510. USB Keyboard Controller (Mask ROM Type)

_ V Intel 8085 Family In-Circuit Emulation. Contents. Technical Notes

SH69K20A is a single-chip micro-controller integrated with SRAM, ROM, Timer and I/O port, with a built-in 2MHz/4MHz/6MHz RC oscillator.

HT1621. RAM Mapping 32 4 LCD Controller for I/O µc. Features. General Description. Selection Table

CMS-8GP32. A Motorola MC68HC908GP32 Microcontroller Board. xiom anufacturing

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

CEIBO FE-5111 Development System

Unit I. Introduction Microcontrollers and Embedded processors Overview of the 8051 Inside the 8051 Addressing Modes

3. The MC6802 MICROPROCESSOR

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester

The Freescale MC908JL16 Microcontroller

POD 51EH C541U 12 EA ALE PSEN XH0 XH1 XH2 XH3 XH4 XH5 XH6 XH7 XL7 XL6 XL5 XL4 XL3 XL2 XL1 XL0. Figure 1. POD 51EH C541U 12

POD 51EH C517A 24 XH0 XH1 XH2 XH3 XH4 XH5 XH6 XH7 XL7 XL6 XL5 XL4 XL3 XL2 XL1 XL0 PE EA ALE PSEN JP1. Figure 1. POD 51EH C517A 24

CEIBO FE-W7 Development System

TEMIC 51T (Temic) EMULATION

MC68HC05J1A/D Rev. 1.0 HC 5 MC68HC05J1A MC68HCL05J1A MC68HSC05J1A. HCMOS Microcontroller Units TECHNICAL DATA

Introduction to Embedded Systems

CEIBO FE-51RD2 Development System

POD 51EH C505L XH0 XH1 XH2 XH3 XH4 XH5 XH6 XH7 XL7 XL6 XL5 XL4 XL3 XL2 XL1 XL0. Figure 1. POD 51EH C505L 20

8-bit Microcontroller with 1K Byte of In-System Programmable Flash AT90S1200

ET-BASE AVR ATmega64/128

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

EU bit MCU with 10-bit A/D Converter. Features. Description. Ordering Information

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

OMEN Alpha / issue 4. Technical Documentation

AN1239. HC05 MCU Keypad Decoding Techniques Using the MC68HC705J1A. Introduction

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6

EasyPIC5 Development System

Section 30. In-Circuit Serial Programming (ICSP )

UNISONIC TECHNOLOGIES CO., LTD 6621 Preliminary LINEAR INTEGRATED CIRCUIT

8051 MICROCONTROLLER

Using the HT16K33 in DVD Player Panel Applications

epsp6000 Product Specification RISC II Series Microcontroller DOC. VERSION 1.0

8-bit Microcontroller with 2K Bytes of Flash. ATtiny28L ATtiny28V

TTP226. Preliminary 8 KEYS TOUCH PAD DETECTOR IC GENERAL DESCRIPTION

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: 8051 Architecture Module No: CS/ES/5 Quadrant 1 e-text

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

Nuvoton 4T 8051-based Microcontroller NuTiny-SDK-N78E715 User Manual

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Interconnects, Memory, GPIO

ET-BASE AVR (ATmega8535)

Product Update. Errata to Z8 Encore! 8K Series Silicon. Z8 Encore! 8K Series Silicon with Date Codes 0402 and Later

8-bit Microcontroller with 1K Byte Flash. ATtiny11. ATtiny12

8-bit Microcontroller with 1K Bytes Flash. ATtiny10 ATtiny11 ATtiny12. Preliminary. Features. Pin Configuration

USB-4303 Specifications

AN-HK-32. In-Circuit Programming of FLASH Memory in the MC68HC908GP32. nc... Freescale Semiconductor, I. PART 1 Introduction

8-bit Microcontroller with 8K Bytes In-System Programmable Flash AT89S52

ET2640 Microprocessors

SC73C0302. Silan Semiconductors Û 4-BIT MICROCONTROLLER HANGZHOU SILAN MICROELECTRONICS JOINT-STOCK CO.,LTD FOR REMOTE CONTROLLER DESCRIPTIONS

8051 Microcontrollers

Nuvoton 1T 8051-based Microcontroller NuTiny-SDK-N76E885 User Manual

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features

CS/ECE 5780/6780: Embedded System Design

1. Pin diagram of 8051 and ports

P&E Microcomputer Systems, Inc. P.O. Box 2044, Woburn, MA 01888, USA

MICROPROCESSOR AND MICROCONTROLLER BASED SYSTEMS

BV511 Hardware Guide ByVac ByVac Revision 1.0

Embedded World Television, Radio, CD player, Washing Machine Microwave Oven Card readers, Palm devices

SNC Four Channels Speech Controller

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad

MDT10P General Description. 2. Features. 3. Applications

History of the Microprocessor. ECE/CS 5780/6780: Embedded System Design. Microcontrollers. First Microprocessors. MC9S12C32 Block Diagram

SNC36060 Four Channels Speech Controller

DEV-1 HamStack Development Board

indart -HC08 In-Circuit Debugger/Programmer for Freescale HC08 Family FLASH Devices User s Manual Rev. 2.0 Copyright 2006 SofTec Microsystems DC01027

Product Brief M68340EVS EVALUATION SYSTEM

Emulating an asynchronous serial interface (USART) via software routines

Revision: May 11, E Main Suite D Pullman, WA (509) Voice and Fax LED. Doc: page 1 of 6

Lecture (03) PIC16F84 (2)

HT48R30A-1/HT48C30-1 I/O Type 8-Bit MCU

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1

C and Embedded Systems. So Why Learn Assembly Language? C Compilation. PICC Lite C Compiler. PICC Lite C Optimization Results (Lab #13)

CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

WICE-SPI Hardware Operation Manual

Clicker 2 for Kinetis

AN-HK-33. In-Circuit Programming of FLASH Memory in the MC68HC908JL3. Roger Fan Applications Engineering Microcontroller Division Hong Kong

Bolt 18F2550 System Hardware Manual

AN1745. Interfacing the HC705C8A to an LCD Module By Mark Glenewinkel Consumer Systems Group Austin, Texas. Introduction

============ CONTENTS ============

PCI bit Digital Input/ Output Card for PCI Bus. User s Manual

AX-12. PIC12F675 microcontroller Activity board

DEPARTMENT OF ECE QUESTION BANK SUBJECT: MICROPROCESSOR AND MICROCONTROLLER UNIT-1 PART-A (2 MARKS)

HT49R10A-1/HT49C10-1 LCD Type 8-Bit MCU

AN10210 Using the Philips 87LPC76x microcontroller as a remote control transmitter

MC68HC908GR8A MC68HC908GR4A Data Sheet

Reprinted by permission of T&L Publications Inc. Copyright 2001 USB MICROCONTROLLERS FOR THE MASSES

CN310 Microprocessor Systems Design

Basics of Microprocessor

ECE 571 Advanced Microprocessor-Based Design Lecture 3

Chapter 7 Central Processor Unit (S08CPUV2)

Section 1 Introduction

Transcription:

SH69P21 EVB Application Note for SH69P21 EVB The SH69P21 EVB is used to evaluate the SH69P21 chip's function for the development of application program. It contains of a SH69V21 chip to evaluate the functions of SH69P21.The following figure shows the placement diagram of SH69P21 EVB. J1 VCC J2 GND JP1 5V 3V EXT JP2 IDD TEST S1 ON 1 2 3 4 5 6 7 8 J3 POWER U2 ROMH HALT STOP LVR T0GO 74HC273 Y1 JP7 JP6 JP5 K2 PA3_RESET J4 SH69P21 1 U3 ROML 74HC273 U1 JP4 Stand Alone With ICE JP3 STKOVF K1 RESET Ver1.0 1/10

There are two configurations of SH69P21 EVB in application development: ICE mode and stand-alone mode. In the ICE mode, the ICE (motherboard) is connected to the EVB by the ICE interface. USB port Application Board Evaluation Board USB RICE Power PC Application Board Evaluation Board IDE66 Emulator LPT port Power PC (a) ICE mode In the standalone mode, the SH69P21 EVB is no longer connected to the motherboard, but the Flash (or EPROM) must be inserted to the socket that stored the application program. DC 5V Application Board Evaluation board (b) Stand-alone mode 2/10

The process of your program s evaluation on SH69P21 EVB SH69P21 EVB User can use Sino Wealth IDE66 Integrated Development Environment (IDE) to emulate the program and produce the obj file. IDE66 IDE is a real-time in-circuit emulator program. It provides real-time and transparent emulation support for the SH6X series 4-bit microcontroller. And integrate assembler can create binary (*.obj) file and the other files. Use Flash (or EPROM) In standalone mode IDE66 IDE is built-in with an object file depart function. The command Split object file can separate the one 16 bits object file into two 8 bits files, which contain the high and low bytes respectively. Write the high/low byte obj file to Flash (or EPROM) and insert them to EVB (ROMH and ROML). Then, user can evaluate the program in standalone mode. 3/10

SH69P21 EVB Interface Connector: (Top View from EVB): User s interface connector: J4 (Top View from EVB): PA2 PA1 PA0 GND PB3 PC3 PC2 J4 PA3 PB0 PB1 EXT PB2 PC0 PC1 Most important: Incorrect power input (The GND is connected to VCC pin J1, and VCC is connected to GND pin J2) will hurt or breakdown the EV board permanently. External VCC input for stand alone mode: J1, J2 -The external power input when the EVB worked in stand-alone mode. The voltage of Vcc must be 5V±5%. Interface to test the EV chip operating current JP2 - User can test the EV chip current through JP2 Note: In ICE mode, the current value is correct only when the IDE66 runs in external clock from EVB mode. (Select the external clock from EVB in OSC Frequency configuration manual.) Jumper setting: JP1 Short at 3V position Short at 5V position Short at EXT position EV chip power supply select The power of EV chip is set as internal 3V power source The power of EV chip is set as internal 5V power source The EV chip use external power supply that was input from EXT pin. JP3 Short Open STACK overflow select The stack overflow function in the ICE mode will on The stack overflow function in the ICE mode will off JP4 Short at Stand-alone position Short at With-ICE position EVB ICE/Stand-alone mode select Select stand-alone mode. (The system clock is provided by the on board oscillator.) Select with-ice mode. (The system clock is provided by the ICE.) Note: When Internal RC Frequency division function is used (refer to system register $1A in SH69P21 spec),please make sure the system clock is provided by the on board oscillator but not by the ICE. 4/10

Note: JP5 Short Open PORTA3 will be connecter to Reset Circuit PA3/RESET select PORTA3 will not be connecter to Reset Circuit When S1 Option select RST as 0, PORTA.3 is used as Reset, so JP5 must be short. When S1 Option select RST as 1, PORTA.3 is used as I/O, so JP5 must be open. JP6 Short Open PORTB1 will be used as I/O PORT PORTB1 will be used as OSCI OSCI/PB1 select JP7 Short Open PORTB0 will be used as I/O PORT PORTB0 will be used as OSCO OSCO/PB0 select Note: When OSC2-OSC0 select as 000,001,010,011, the system clock is provided by Internal RC, so it is better to short JP6 and JP7 to use PORTB0, PORTB1 as I/O. When OSC2-OSC0 select as 100,101,110,111, the system clock is provided by External Clock or Crystal/Ceramic Oscillator, so it is better to open JP6 and JP7 to use PORTB0,PORTB1 as OSCO, OSCI. 5/10

S1 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Remarks OSCO OSC1 OSC2 RST OSC3 LVR0 LVR WDT X X X X X X X On Enable WDT X X X X X X X Off Disable WDT X X X X X X On X Enable LVR X X X X X X Off X Disable LVR X X X X X On X X LVR select 2.5V X X X X X Off X X LVR select 4V SH69P21 EVB X X X X On X X X Oscillator range is 30kHz~1MHz X X X X Off X X X Oscillator range is 1MHz~8MHz X X X Off X X X X PORTA.3 used as Reset X X X On X X X X PORTA.3 used as I/O Off Off Off X X X X X Select Internal 8MHz as Oscillator Off Off On X X X X X Select Internal 8MHz as Oscillator Off On Off X X X X X Select Internal 8MHz as Oscillator Off On On X X X X X Select Internal 8MHz as Oscillator On Off Off X X X X X Select External Clock as Oscillator On Off On X X X X X Select Crystal/Ceramic 400kHz~8MHz as Oscillator, driving ability is normal On On Off X X X X X Select Crystal/Ceramic 400kHz~8MHz as Oscillator, driving ability is strong On On On X X X X X Select Crystal 32.768kHz as Oscillator Note: In the S1 Option, 0 represents Off (when the button pushed down) 1 represents On (when the button pushed up) K1 (RESET): Reset the whole EVB system by pressing the button. K2 (PA3_RESET): Reset the EV Chip by pressing the button. (Only when PORTA.3 used as Reset) Diagnostic LED: Power LED(D2): The LED will be turned on when the EVB is powered. STOP LED (D3): The LED will be turned on when the system is in STOP mode. HALT LED (D4): The LED will be turned on when the system is in HALT mode. LVR LED (D5): The LED will be turned on when the VDD is lower than LVR voltage T0GO LED(D6): The LED will be turned on when the Timer0 function is enabled. 6/10

Notes: Application notes: 1.1 After entering into the IDE66 and successfully downloaded the user program, use the F5 key on the PC keyboard to reset the EVB before running the program. If abnormal response occurs, the user must switch off the ICE power and quit IDE66, then wait for a few seconds before restarting. 1.2 When running the IDE66 for the first time, the user needs to select the correct MCU type, clock frequency... then save the settings and restart IDE66 again. 1.3 Can t Step (F8) or Over (F9) a HALT and STOP instruction. 1.4 Can t emulate the interrupt function in Step (F8) operating mode. 1.5 When you want to escape from HALT or STOP (in ICE mode), please press F5 key on the PC keyboard twice. 1.6 The maximum current limit supplied from EVB to the target is 100mA. When the current in the target is over 100mA, please use external power supply. 1.7 Can t emulate the timer function in Step (F8) operating mode. Programming notes: 2.1 Clear the data RAM and initialize all system registers during the initial programming. 2.2 The instruction should be added at the beginning of the program to ensure the IC is stable. 2.3 Never use the reserved registers. 2.4 Do not execute arithmetic operation with those registers that only have 1, 2 or 3 bits. This kind of operation may not produce the result you expected. 2.5 To add p=sh69p21 and romsize=1024 at the beginning of a program. If any problem occurs during the compilation of the program, check the device and set if it was set correctly. 2.6 Both index register DPH and DPM have three bits; so pay attention to the destination address when using them. 2.7 Notes for interrupt: 2.7.1 Please make sure that the IE flag is enabled before entering into a HALT or a STOP mode. It means that the HALT or STOP instruction must follow the set IE instruction closely. 2.7.2 After the CPU had responded to an interrupt, IRQ should be cleared before resetting IE in order to avoid multi-responses. 2.7.3 Interrupt Enable instruction will be automatically cleared after entering into the interrupt-processing subroutine. If setting IE is too early, it is possible to reenter into the interrupt. So the Interrupt Enable instruction should be placed at the last 3 instructions of the subroutine. 2.7.4 CPU will not respond to any interrupt during the next two instructions after the Interrupt Enable flag be set from 0 to 1. 2.7.5 After CPU has responded to an interrupt, IE will be cleared by the hardware. It is recommended to clear the IRQ at the end of interrupt subroutine. 2.7.6 The stack has four levels. If an interrupt is enabled, there will be only three levels that can be used. 7/10

2.7.7 It is recommended that the last line of program is EN Examples: 1> Description: CPU can not wakeup after executing the HALT or STOP instruction. Program: Interrupt Enable instruction is set outside the interrupt subroutine <Wrong example> <Correct example > LDI IE, 0FH ; enable interrupt LDI IE, 0FH ; enable interrupt HALT HALT Analysis: After two instructions, if an interrupt request comes or IRQ is non-zero during the third instruction cycle, CPU will respond to the interrupt and IE will be cleared. Then when returning to main program, CPU starts to execute HALT or STOP and will not be activated, because IE is cleared to zero and all interrupts are disabled. Solution: HALT or STOP are being followed closely by the LDI IE, 0FH 2> Description: CPU responds to one interrupt several times. Program: Interrupt Enable instruction is placed outside the interrupt subroutine. <Wrong example> L1:.. LDI IE, 0FH ; enable interrupts JUMP L1 Analysis: After executing this two instructions, and IRQ is not cleared in time, CPU will respond to the interrupt again when it executes the two instructions followed by LDI IE, 0FH. This will happen again and again. So CPU responds to one interrupt several times. Solution: The relative IRQ flag is cleared in time after responding to the interrupt. 3> Description: CPU is running dead in the interrupt-processing program. Program: an interrupt subroutine. <Wrong example> ENTERINT:.. LDI IE, 0FH LDA STACK, 0 RTNI Analysis: After executing LDI IE, 0FH and the following two instructions, an interrupt request comes or the last relative IRQ flag is not cleared in time, then CPU will respond to the interrupt again, so the interrupt is nesting again. When the stack exceeds over 8 levels, it will run into a dead loop. Solution: Make sure that the CPU can quit from interrupt subroutine within two instruction cycles after interrupt is enabled; After the interrupt is responded, the relative IRQ flag should be cleared before enabling the interrupt. 2.8 Notes for TIMER 2.8.1 When setting the Timer Counter, write first T0L, then T0H 2.8.2 After setting TM0, T0L, T0H, there is no need to rewrite after the Timer counts overflow, otherwise it will cause a time error every time. The timer is interrupted by the reload registrar that was set in different time. 8/10

2.9 Notes for I/O 2.9.1 Each I/O port (excluding those open drain output ports) contains pull-high MOS controllable by the program. Each pull-high MOS is controlled by the value of the corresponding bit in the port pull-high control register (PPCR), independently. When the port is selected as an input port (Write 1 to the relevant bit in the port pull-high control register (PPCR) could turn on the pull-high MOS and write 0 could turn off the pull-high MOS). So the pull-high MOS can be turned on and off individually. But when the port is selected as output port, the pull-high MOS must be turned off automatically, regardless the value of the corresponding bit in the port pull-high control register (PPCR). 2.9.2 When a digital I/O is selected to be an output port, the reading of the associated port bit actually represents the value of the output data latch, not the status on the pad. Only when a digital I/O is selected to be an input port, the reading of the associated port bit represents the status on the corresponding pad. 2.9.3 Setting those I/O ports with open drain output type as input will cause leakage current ranging from tens to hundreds micro-ampere. So do not forget to enable the pull-high MOS or connect these input ports with external resistors (pull-high or pull-low) to prevent the I/O Floating. 2.9.4 The Key De-bounce time is recommended to be 50ms. But in the Rubber Key application, it is best to test Rubber Key s De-bounce time. 9/10

Application notes Revision History Revision No. History Date 1.0 Original Dec.2009 10/10