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

Similar documents
SH67P33A / SH66K33A EVB

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)

SH69P21 EVB. Application Note for SH69P21 EVB SH69P21 EVB SH69P21

SH69P55A EVB. Application Note for SH69P55A EVB SH69P55A EVB SH69V55A

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.

WT6510. USB Keyboard Controller (Mask ROM Type)

8051 Microcontroller

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.

Introduction to Embedded Systems

Lecture (03) PIC16F84 (2)

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

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

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

AVR XMEGA TM. A New Reference for 8/16-bit Microcontrollers. Ingar Fredriksen AVR Product Marketing Director

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Lecture (04) PIC 16F84A programming I

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

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

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

3. The MC6802 MICROPROCESSOR

ET-BASE AVR ATmega64/128

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

Freescale Semiconductor, I

GUIDE OF POWER ON RESET

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

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

The Freescale MC908JL16 Microcontroller

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

BIGdsPIC6. Development System. User manual

Introduction to Microcontrollers

SNC36060 Four Channels Speech Controller

EE6008-Microcontroller Based System Design Department Of EEE/ DCE

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

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

Quick Start Guide for the Turbo upsd DK3300-ELCD Development Kit- RIDE

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

epsp6000 Product Specification RISC II Series Microcontroller DOC. VERSION 1.0

CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet... 4

ecog1kg Microcontroller Product Brief

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

DEV-1 HamStack Development Board

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

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

SNC Four Channels Speech Controller

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

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 Flash. ATtiny11. ATtiny12

OSC Ring Type Ring or Resonator type (optional) RESET Pin No Yes

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

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

NH-67, TRICHY MAIN ROAD, PULIYUR, C.F , KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL

Using the HT16K33 in DVD Player Panel Applications

ONYX-MM-XT PC/104 Format Counter/Timer & Digital I/O Module

EasyPIC5 Development System

TEMIC 51T (Temic) EMULATION

PC3 PC4 PC5 PC6 PC7 VSS VPP1 PB0 PB1 PB2 PB3 PB4 PB5

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet Example Application...

UNISONIC TECHNOLOGIES CO., LTD 6621 Preliminary LINEAR INTEGRATED CIRCUIT

AVR134: Real Time Clock (RTC) Using the Asynchronous Timer. Features. Introduction. AVR 8-bit Microcontrollers APPLICATION NOTE

Section 30. In-Circuit Serial Programming (ICSP )

M68HC705L4 PROGRAMMER BOARD APPLICATION NOTE

Basic Express BX-01. BX-01 Hardware Reference. Version 1.46

Table of Contents COMPANY PROFILE 1-1 SECTION 1. INTRODUCTION 1-1

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

Flash Microcomputer Programmer

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

AVR XMEGA Product Line Introduction AVR XMEGA TM. Product Introduction.

Module 2: Introduction to AVR ATmega 32 Architecture

_ V1.3. Motorola 68HC11 AE/AS POD rev. F. POD Hardware Reference

Chapter 7 Central Processor Unit (S08CPUV2)

Gottlieb Universal Test Board

CEIBO FE-W7 Development System

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

8-bit Microcontroller with 2K Bytes of In-System Programmable Flash AT90S2323 AT90LS2323 AT90S2343 AT90S/LS2323. Features.

Laboratory 10. Programming a PIC Microcontroller - Part II

COMP2121 Experiment 4

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

Advance Information TM8999. Demo Board Specification. User s Manual. tenx technology, inc. 0 tenx technology, inc. Preliminary Rev 1.

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

Embedded Systems and Software

ECE 571 Advanced Microprocessor-Based Design Lecture 3

MC68HC908GR8A MC68HC908GR4A Data Sheet

Breeze Board. Type A. User Manual.

Z8ICE001ZEM Z8PLUS EMULATOR PRODUCT SPECIFICATION KIT CONTENTS OPTIONAL ITEMS NOT SUPPLIED

Getting Started with STK200 Dragon

Three criteria in Choosing a Microcontroller

µpad: Microprocessor for Academic Development

Input/Output Ports and Interfacing

ATMega128 Rapid Robot Controller Board [RKI-1148]

PMC156/PMS156 Series 8-bit IO-Type Controller

Microcontroller Overview

EM MICROELECTRONIC - MARIN SA

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

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

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

How2Use DT-AVR ATMEGA128L BMS. Oleh: IE Team. Picture 1 The layout of DT-AVR ATMEGA128L BMS

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

AVRminiV3.1 Manual. 1. AVRminiV3.1 Overview. 2. AVRminiV3.1 Features and Specifications Standard Features: 2.2. Optional Features:

Transcription:

SH69P25/P23/P20B EVB Application Note for SH69P25/P23/P20B EVB The SH69P25/P23/P20B EVB is used to evaluate the SH69P25/P23/P20B chip's function for the development of application program It contains of a SH69V25 chip to evaluate the functions of SH69P25/P23/P20B The following figure shows the placement diagram of SH69P25/P23/P20B EVB J4 VCC J5 GND J6 5V 3V EXT J POWER STOP HALT U2 74HC245 U3 74HC245 J3 ROML ROMH U4 U5 U6 U7 74HC273 74HC273 U J8 SH69V25 ICE ST-AL R J7 X RC OSC S2 S ON 2 3 4 5 6 7 8 J2 RESET Ver /7

There are two configurations of SH69P25/P23/P20B EVB in application development: ICE mode and stand-alone mode In the ICE mode, the SH66xx ICE (motherboard) is connected to the SH69P25/P23/P20B EVB by the ICE interface Power SH69P25 Evaluation Board PC 66 series RICE User Application Board Keyboard Array (a) ICE mode In the standalone mode, the SH69P25/P23/P20B EVB is no longer connected to the motherboard But the EPROM board has must be connected to the SH69P25/P23/P20B EVB by the EPROM interface The EPROMs which may be the 2752 or 27256 store the application program; Power SH69P25 Evaluation Board User Application Board Keyboard Array (b) Stand-alone mode The process of your program s evaluation on SH69P25/P23/P20B EVB Uasm66exe: assemble the program, and get binary (*obj) file and the other files Depart the one 6 bits obj file to the two 8 bits files by convertexe Usage example (for example: aaaasm): Run the SH66 series assemble program: C: >uasm66 aaaasm ; to produce the obj file: aaaobj 2 Depart the aaaobj to two 8 bits files aaahobj and aaalobj, for example: C: > convert Input the 6 bits (obj) file aaaobj Then aaahobj and aaalobj will be created 3 Write the aaahobj to EPROM (ROMH) Write the aaalobj to EPROM (ROML) 4 Put the two EPROMs (ROML and ROMH) on the EV board U4,U5 2/7

Programming Notes: SH69P25/P23/P20B EVB Clear data RAM and initialize all system registers at the beginning 2 Do not perform logical operation with I/O ports Especially when the I/O ports have external connections 3 Do not perform arithmetic operation with those registers only have, 2 or 3 bits This kind of operation may not get the result you expected 4 Never use reserved registers 5 If IE instruction (interrupt enable) is set outside the interrupt processing program and there is HALT or STOP instruction, this two instructions should be followed IE instruction closely 6 After CPU responding to an interrupt, IRQ should be cleared before resetting IE in order to avoid many responses to one interrupt 7 Interrupt Enable instruction will be automatically cleared after entering interrupt-processing program If setting IE too early, there is a possibility of re-entry the interrupt So the Interrupt Enable instruction should be placed at the end and followed closely by two instructions include RTNI 8 During the two successive instruction cycles next to Interrupt Enable instruction, CPU will not respond to any interrupts 9 After CPU responding to interrupts, each bit of IE will be cleared by hardware while IRQ should be cleared by software 0 It is necessary to add before or after the HALT instruction, else the CPU will execute error instruction when it wakes up from the HALT HALT It is wise to set Interrupt Enable flag before you return from subroutine in two instruction LDI IE, 04H ; Enable timer0 interrupt LDA Temp,0 RTNI 2 When you set Interrupt enable flag as the following and your subroutine do not set Interrupt Enable flag, then your system will never wake up if an interrupt entered between the s Sample: incorrect use! LDI IE, B; IE = Interrupt enable flag HALT 3 To add p=66xx and romsize=xxxx at the beginning of a program If any problem is found in compiling the program, check if the SH6566dev is located at the program directory 4 When setting Timer Counter, first fill TOL, then TOH 5 After setting TM0, TOL, TOH, it is unnecessary to reset them after interrupt each time If TM0, TOL, TOH are reset after each TIMER interrupt, interrupt interval time will not equal because the interrupt timing is not successive 6 Any instruction containing writing to or reading from memory, it should not be used to operate with I/O Port It is best to avoid using those instructions such as SUB, ADD which do not contain Write operation with I/O Port but have computation operation 7 When the internal pull-up resistor is on, must be written to I/O Port before Reading And when the internal pull-low resistor is on, 0 must be written to I/O Port before Reading 8 Directly reading PORT states ensure the count is correct 9 Interrupt activating from STOP at the first time can save power 20 When the Compiler of old version compiles program, the last line will be read twice So, if the last line is an instruction, two same operations will be occurred If there is Label in the last line, compiler will give an error named repeated definition This will happen in main program or included files and it is recommended that the last line should be a blank line or END 2 The stack has four layers, if an interrupt is enabled, there only have three layers can be used Otherwise, if an interrupt comes, the stack will be overflowed that will cause CPU Reset or other errors 3/7

22 Key De-bounce time is recommended to be 50ms If a user use Rubber Key, it is best to test Rubber Key s De-bounce time 23 Index register DPH and DPM both have three bits only, so pay attention to the referred address when using them 24 It takes about 03 second to wake up from STOP when using 32768Hz crystal So, if the system is waked up by key pressing, the key may have been released when the program begins to read Key value Please pay more attention to this problem 25 The instruction should be added at the beginning of the program to ensure the IC is stability 26 When SH69P25/P23/P20B EVB is used to evaluate the SH69P23, $0B-$0C must be always kept as 00h and $9-$A must be always kept as 0Fh in user s program 27 SH69P25/P23/P20B EV board is designed for SH69P25, SH69P23 and SH69P20B 4/7

SH69P25/P23/P20B interface connector: J3 (TOP View from EVB) PORTE[2] PORTE[3] PORTF[] PORTA[2] PORTA[3] T0 RESETB GND PORTB[0] PORTB[] PORTB[2] PORTB[3] PORTD[0] PORTD[] PORTE[] PORTE[0] PORTF[0] PORTA[] PORTA[0] EXOSC_IN SH69P20B interface VDD_EXT PORTC[3] PORTC[2] PORTC[] PORTC[0] PORTD[3] PORTD[2] SH69P23 interface SH69P25 interface External Vcc input : J4,J5 (The external power input when the EV Board worked in stand-alone mode The voltage of Vcc must be 5V±5%) 5/7

Jumper setting: J6 (EVB power select):! Short the 5V positions, the voltage (5V) of SH69V25 is internal source! Short the 3V positions, the voltage (3V) of SH69V25 is internal source! Short the EXT positions, the external power (24~60V, refer to SH69P25 or SH69P23 or SH69P20B spec) of SH69V25 is input from VDD PIN of J3 (J3/6) J8 (SH69P25/P23/P20B EVB ICE/Stand-alone mode select):! If you short the ICE position (only for ICE mode), the clock of SH69P25/P23/P20B EVB is fed from the ICE! If you short the Stand alone positions (only for stand-alone mode), the system clock is selected by S(bit 6, 7, 8) and J7 Switch setting: S: If you turn on bit (STKOF) of this switch, then enable the stack overflow function in ICE mode; else disable it 2 If you turn on bit 2 (LVRV) of this switch, then select the low level LVR(25V), else select the high level LVR(4V) Note: the low level LVR(25V) is not used for SH69P20B (Please reference to the SH69P20B datasheet) 3 If you turn on bit 3 (LVR) of this switch, then enable the LVR function, else disable the LVR function 4 If you turn on bit 4 (WDT) of this switch, then enalbe the Watch Dog function, else disable the Watch Dog function 5 If you turn on bit 5 (OSC3) of this switch, then select the high frequency clock; else select the low frequency clock 6 OSC2, OSC, OSC0: Off, off, off select external clock from OSCI; On, off, off select RC oscillator; On, on, off select 400K~4MHz Crystal or ceramic resonator; On, on, on select 32768K Crystal resonator; S2: Reset the whole system when push the button LED declare: Power: HALT: STOP: Green LED is lighted when power of the EVB is on Yellow LED is lighted when the system has gone into the HALT mode Red LED is lighted when the system has gone into the STOP mode 6/7

Note: Evaluate your program with ICE indicate: After enter to RICE66 and successfully download the user program, push the F5 (Reset) on PC keyboard before run your program when you evaluate your program with ICE If there were abnormal response, the user should power off the ICE, quit RICE66 and wait for a few seconds before restart 2 First time run RICE66, need to select an appropriate MCU type, clock frequency save the settings and restart RICE66 again 3 Can t Step (F8) or Over (F9) a HALT and STOP instruction 4 When you want to escape from HALT or STOP (in ICE mode), you should press the F5 key on PC keyboard twice 5 The maximum current limit of the 3V power is 00mA, when the user uses internal 3V power to drive external device such as LED 6 When EV Board worked in with ICE mode, you can input the clock from EXOSC_IN (JP3/8) as the system clock (refer to the RICE66 User s Guide) 7/7