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)

Similar documents
SH69P21 EVB. Application Note for SH69P21 EVB SH69P21 EVB SH69P21

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.

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

8051 Microcontroller

Introduction to Embedded Systems

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

WT6510. USB Keyboard Controller (Mask ROM Type)

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.

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

3. The MC6802 MICROPROCESSOR

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

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

The Freescale MC908JL16 Microcontroller

Three criteria in Choosing a Microcontroller

MC68HC908GR8A MC68HC908GR4A Data Sheet

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

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

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

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

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

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

CEIBO FE-5111 Development System

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

SNC Four Channels Speech Controller

ET-BASE AVR ATmega64/128

CONTENTS BIGAVR2 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

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

XNUCLEO-F030R8, Improved STM32 NUCLEO Board

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

CEIBO FE-W7 Development System

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

TEMIC 51T (Temic) EMULATION

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features:

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

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

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

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

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

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

AKKON USB CONTROLLER BOARD

CEIBO FE-51RD2 Development System

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

Lecture (03) PIC16F84 (2)

EasyPIC5 Development System

BIGdsPIC6. Development System. User manual

SNC36060 Four Channels Speech Controller

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

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

UNISONIC TECHNOLOGIES CO., LTD 6621 Preliminary LINEAR INTEGRATED CIRCUIT

Laboratory: Introduction to Mechatronics

CONTENTS. dspicpro4 KEY FEATURES 4 CONNECTING THE SYSTEM 5 INTRODUCTION 6

DEV-1 HamStack Development Board

Embedded Systems and Software

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

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

acret Ameya Centre for Robotics & Embedded Technology Syllabus for Diploma in Embedded Systems (Total Eight Modules-4 Months -320 Hrs.

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

KPIC-0818P (V050919) Devices Included in this Data sheet: KPIC-0818P

Chapter 7 Central Processor Unit (S08CPUV2)

The Atmel ATmega328P Microcontroller

Interconnects, Memory, GPIO

MC68HC908GR16 Data Sheet

Using the HT16K33 in DVD Player Panel Applications

8051 Microcontrollers

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

TTP226. Preliminary 8 KEYS TOUCH PAD DETECTOR IC GENERAL DESCRIPTION

BV511 Hardware Guide ByVac ByVac Revision 1.0

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

Breeze Board. Type B. User Manual.

Keywords Digital IC tester, Microcontroller AT89S52

Section 30. In-Circuit Serial Programming (ICSP )

SimPLC. User Manual.

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

Lecture (04) PIC 16F84A programming I

CN310 Microprocessor Systems Design

PIC Microcontroller Introduction

Lecture (02) PIC16F84 (I)

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

SX Device In-System Programming Specifications

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

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

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

Breeze Board. Type A. User Manual.

USB-4303 Specifications

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

DERTS Design Requirements (1): Microcontroller Architecture & Programming

National Semiconductor. SC/MP and SC/MP II. SC/MP CPU Test board User's Manual Jan-24 Ver.1.0 by molka

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

TP6825. USB Full Speed Game Pad Controller. Data Sheet. Tenx reserves the right to change or discontinue this product without notice.

PART 1 : MR-162. PART 2 : CPU Board. PART 3 : Software Tools. PART 4 : Compile and Download. 1. Introduction 2. Features

8051 MICROCONTROLLER

XC2000 Family AP Application Note. Microcontrollers. XC2236N Drive Card Description V1.0,

Mega128-DEVelopment Board Progressive Resources LLC 4105 Vincennes Road Indianapolis, IN (317) (317) FAX

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

PAK-XI PS/2 Coprocessor Data Sheet by AWC

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

OMEN Alpha / issue 4. Technical Documentation

Transcription:

SH69P48A EVB Application Notes for SH69P48A EVB The SH69P48A EVB is used to evaluate the SH69P48A chip's function for the development of application program. It contains of a SH69V48A chip to evaluate the functions of SH69P48A including the ADC input and the PWM output. The following figure shows the placement diagram of SH69P48A EVB. J1 VCC_EXT J2 GND JP1 5V 3V EXT JP2 J4(ICE_J4) S1 IDD TEST ON 1 2 3 4 5 6 7 8 OSC3 OSC2 OSC1 OSC0 WDT LVR LVR0 RST POWER PWM ADC LVR STOP HALT J6 74HC273 SH69V48A J3 U2 U3 74HC273 U1 STAND ALONE WITH_ICE JP3 JP6 STKOVE J5(ICE_J5) Y1 JP4 RESET OSCI OSCO JP7 SW1 RESET Ver0.0 1/9

There are two configurations of SH69P48A EVB in application development: ICE mode and stand-alone mode. In the ICE mode, the SH66xx ICE (motherboard) is connected to the SH69P48A EVB by the ICE interface. USB port Application Evaluation USB RICE Power PC Application Evaluation IDE66 Emulator LPT port Power PC (a) ICE mode In the standalone mode, the SH69P48A EVB is no longer connected to the motherboard. But the EPROM chip has must be connected to EPROM sockets of the SH69P48A EVB. The EPROM stores the application program; they may be the 27512. DC 5V Application Evaluation board (b) Stand-alone mode 2/9

The process of your program s evaluation on SH69P48A EVB SH69P48A EVB User can use Sino Wealth Rice66 Integrated Development Environment (IDE) to emulate the program and produce the obj file. Rice66 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 Rice66 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/9

SH69P48A EVB Interface Connector: (Top View from EVB): User s interface connector: J6 (Top View from EVB): PORTD2 PORTD3 PORTC2 PORTC3 RESET/PORTE1 GND PORTA0 PORTA1 PORTA2 PORTA3 PORTD1 PORTD0 PORTC1 OSCO/PORTC0 OSCI/PORTE0 VDD PORTB3 PORTB2 PORTB1 PORTB0 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.) JP4 (OSCO/PORTC0, OSCI/PORTE0 port type select): If select Internal RC oscillator, short OSCI end and OSCO end of JP4, PORTC0 and PORTE0 can be acquired. If select External RC oscillator, short OSCO end of JP4, PORTC0 can be acquired. If select Crystal oscillator or Ceramic resonator, do not short any end. JP8, JP9 (Package select): If select 20 pin package, short the GND end of the JP8 and JP9. If select 16 pin package, short the GND end of the JP8 and the VDD1 end of the JP9. 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 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.) JP6 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 4/9

S1 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Remarks RST LVR0 LVR WDT OSC0 OSC1 OSC2 OSC3 X X X X X X X Off Oscillator range is 2 ~ 10MHz X X X X X X X On Oscillator range is 30KHz ~ 2MHz X X X X Off Off Off X Select External clock as OSC clock X X X X On Off Off X Select Internal RC oscillator as OSC clock X X X X Off On Off X Select Internal RC oscillator as OSC clock X X X X On On Off X Select Internal RC oscillator as OSC clock X X X X Off Off On X Select External RC oscillator as OSC clock X X X X On Off On X Select Ceramic resonator as OSC clock X X X X Off On On X Select Crystal oscillator as OSC clock X X X X On On On X Select 32.768KHz Crystal oscillator as OSC clock X X X Off X X X X Enable WDT X X X On X X X X Disable WDT X X Off X X X X X Disable LVR X X On X X X X X Enable LVR X Off X X X X X X High LVR voltage X On X X X X X X Low LVR voltage Off X X X X X X X Enable Reset pin On X X X X X X X Disable Reset pin SW1 (RESET): Reset the EVB when push the button. Diagnostic LED: Power LED: PWM LED: ADC LED: LVR LED: STOP LED: HALT LED: The LED will be turned on when the EVB is powered. The LED will be turned on when the PWM function is enabled. The LED will be turned on when the ADC function is enabled. The LED will be turned on when the VDD is lower than LVR voltage. The LED will be turned on when the system is in STOP mode. The LED will be turned on when the system is in HALT mode. 5/9

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=69p48a and romsize=4096 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 eight levels. If an interrupt is enabled, there will be only seven levels that can be used. 6/9

2.7.7 It is recommended that the last line of program is END. 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 7/9

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. 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. 2.10 Refer to the ADC programming notes in the SH69P48A data sheet. 2.11 Refer to the PWM programming notes in the SH69P48A data sheet. 8/9

Application notes Revision History Revision No. History Date 0.0 Original JAN.2008 9/9