HT8 UL60730 Safety Library -- Program Counter Register Test

Similar documents
HT8 UL60730 Safety Library -- Frequency Monitoring Via External LXT Clock Source Frequency

HT8 UL60730 Safety Library -- Comparator Test

HT8 UL60730 Safety Library --CPU Registers Test

HT8 UL60730 Safety Library -- ALU Test

Using the Library to jump from the User Code to the Bootloader Code in the HT66FB5x0 and HT68FB5x0

Chapter 9. Programming Framework

I/O Emulated UART Baud Rate Calibration Application Note

Interrupts. EE4380 Fall 2001 Class 9. Pari vallal Kannan. Center for Integrated Circuits and Systems University of Texas at Dallas

Chapter 2. Overview of Architecture and Microcontroller-Resources

Chapter 7 Subroutines. Richard P. Paul, SPARC Architecture, Assembly Language Programming, and C

Mechatronics and Microcomputers. Stipendium Hungaricum 2018/2019 Autumn Semester Szilárd Aradi, PhD

2003 LXI H, 42F2H ; this instruction store 42F2 in to the HL pair POP H ; store data from top of the stack to HL pair

Hello and welcome to this Renesas Interactive course that covers the Watchdog timer found on RX MCUs.

e-pg Pathshala Subject : Computer Science Paper: Embedded System Module: Interrupt Handling Module No: CS/ES/13 Quadrant 1 e-text

SOEN228, Winter Revision 1.2 Date: October 25,

88 Dugald Campbell. Making Industrial Systems Safer Meeting the IEC standards

Chapter 7 Central Processor Unit (S08CPUV2)

Embedded Systems and Software

Microcomputer Architecture and Programming

8051 Overview and Instruction Set

Assembly Language programming (3)

EEPROM Watchdog Timer

Today s Menu. >Use the Internal Register(s) >Use the Program Memory Space >Use the Stack >Use global memory

Hello and welcome to this Renesas Interactive module that covers the Independent watchdog timer found on RX MCUs.

Course Introduction. Purpose: Objectives: Content: 27 pages 4 questions. Learning Time: 20 minutes

Using the HT48R008 to Control a Bidirectional LED Array and Touch Keys

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I.

3. Applications. 1. General Description. 4. Pin Assignment. 2. Features M D T10P509ST2611 PB0 1 6 PB3 M D T10P509ST2613 PB0 1 6 /MCLR

icroprocessor istory of Microprocessor ntel 8086:

AN427 Timer I in non-i 2 C applications of the 83/87C751/752 microcontrollers

PIC Discussion By Eng. Tamar Jomaa

Micro computer Organization

Module Introduction. PURPOSE: The intent of this module is to explain MCU processing of reset and interrupt exception events.

Module 8: Atmega32 Stack & Subroutine. Stack Pointer Subroutine Call function

8-Bit AP Application Note. Microcontrollers. Microcontroller. XC878 Class B Software Library V

CHAPTER ASSEMBLY LANGUAGE PROGRAMMING

Programming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote

PIC16F87X 13.0 INSTRUCTION SET SUMMARY INSTRUCTIONS DESCRIPTIONS

Grundlagen Microcontroller Processor Core. Günther Gridling Bettina Weiss

AVR Microcontrollers Architecture

Application Note, V1.0, Aug AP08064 XC866/886/888. Safeguarding the Microcontroller under Out-of-Spec Noise Conditions.

CPEG300 Embedded System Design. Lecture 6 Interrupt System

Chapter 09. Programming in Assembly

Digital Blocks Semiconductor IP

PROGRAM CONTROL UNIT (PCU)

Tutorial 1: Programming Model 1

The CS5600 micro-computer

System Faults. Chapter 9. Controller Faults. The controller stored different fault information: Publication 1756-QR107C-EN-P - June 2005

CoE3DJ4 Digital Systems Design. Chapter 6: Interrupts

Digital IP Cell 8-bit Microcontroller PE80

SECTION 5 PROGRAM CONTROL UNIT

real-time kernel documentation

EE 308: Microcontrollers

Digital Blocks Semiconductor IP

CPU: SOFTWARE ARCHITECTURE INSTRUCTION SET (PART

VARDHAMAN COLLEGE OF ENGINEERING (AUTONOMOUS) Shamshabad, Hyderabad

Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:

Nano102/112 Series Errata Sheet

Instruction Unit Group: Program Sequencer. Vlad Branzoi Jerry Kao

Digital Blocks Semiconductor IP

Introduction to Embedded Systems

Programming Model 2 A. Introduction

12. Interrupts and Programmable Multilevel Interrupt Controller

System Monitoring and Troubleshooting

Program Control Instructions

Figure 4-18: ADAM channel Relay Output w/di Module

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

Section 9. Watchdog Timer (WDT)

MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION (Autonomous) (ISO/IEC Certified) MODEL ANSWER

8-bit Microcontroller with 4K Bytes In-System Programmable Flash. ATtiny40. Preliminary

8-bit Microcontroller with 2K Bytes of In-System Programmable Flash. ATtiny22 ATtiny22L. Preliminary. Features. Description

Three criteria in Choosing a Microcontroller

Z8ICE001ZEM Z8PLUS EMULATOR PRODUCT SPECIFICATION KIT CONTENTS OPTIONAL ITEMS NOT SUPPLIED

Grundlagen Microcontroller Interrupts. Günther Gridling Bettina Weiss

UNIT- 5. Chapter 12 Processor Structure and Function

HT48RAx/HT48CAx Software Application

UMBC. contain new IP while 4th and 5th bytes contain CS. CALL BX and CALL [BX] versions also exist. contain displacement added to IP.


MSMF GATE CENTRE. Sub: MICROPROCESSORS. Time: 50min Date: Marks:33

8051 microcontrollers

Chapter Introduction Chapter 1. a) Address translation b) Protection c) Program relocation. type's "««"** ***** ** various

8085 INSTRUCTION SET INSTRUCTION DETAILS

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

Embedded Systems Design (630470) Lecture 4. Memory Organization. Prof. Kasim M. Al-Aubidy Computer Eng. Dept.

6 THE ETRAX Introduction. Special registers. 6 The ETRAX 4

MB ds90455-ds e-corr-x1-00. Fujitsu Microelectronics Europe GmbH

8086 INTERNAL ARCHITECTURE

CREATING LOOP-BASED TIME DELAYS IN MICROPROCESSOR SYSTEMS

ME 4447/6405. Microprocessor Control of Manufacturing Systems and Introduction to Mechatronics. Instructor: Professor Charles Ume LECTURE 6

Last Time. Think carefully about whether you use a heap Look carefully for stack overflow Especially when you have multiple threads

Assembly Language Programming of 8085

Instruction set of 8085

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store.

Memory organization Programming model - Program status word - register banks - Addressing modes - instruction set Programming examples.

AN3181 Application note Guidelines for obtaining IEC60335 Class B certification in an STM8 application Introduction

Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip.

MDT90P General Description. 3. Applications. 2. Features. 4. Pin Assignment

Description of the Simulator

EKT222 Miroprocessor Systems Lab 5

Transcription:

HT8 UL60730 Safety Library -- Program Counter Register Test D/N: AN0385E Introduction In general, the UL/CSA 60730 safety standard applies to automatic electrical controls for use in, on, or in association with equipment for household and similar use, including controls for heating, air-conditioning and similar applications. The equipment may use electricity, gas, oil, solid fuel, solar thermal energy, etc., or a combination thereof. This Standard applies to the inherent safety; to the operating values, operating times, and operating sequence where such are associated with equipment safety; and to the testing of automatic electrical control devices used in, or in association with, household or similar equipment. Annex H of the UL/CSA 60730 safety standard defines three classes of control software for appliances: 1. Class A control functions which are not intended to be relied upon for the safety of the equipment. 2. Class B software that includes code intended to prevent hazards if a fault, other than a software fault, occurs in the appliance. 3. Class C software that includes code intended to prevent hazards without the use of other protective devices. 1 / 5 AN0385E

Class B Safety Library The HT8 UL60730 Safety Library is open-source software intended be integrated in the end product application software and called upon power-on initialization and/or periodically within the application to achieve the periodic self-test safety requirements in UL/CSA 60730-1 Annex H.11.12 for software/control Class B. 2 / 5 AN0385E

Program Counter Register Test Introduction The device contains a WDT function, which is provided to prevent Program Counter malfunction or program sequences from jumping to unknown locations, due to certain uncontrollable external events such as electrical noise. When the Program Counter malfunctions, a Watchdog Timer time-out will occur which will initialise a device reset and set the status bit TO. The program will set I/O port pf2 output high to inform users that a Program Counter malfunction has occurred. MCU Internal Function Description Program Counter Principle The Program Counter is an MCU internal register which is used to indicate the present instruction sequence execution. The Program counter may store the present instruction or keep track of the address of the next instruction to be executed. It is automatically incremented by one each time an instruction is executed, so instructions can be properly fetched from memory. For instructions, such as jump and call instructions, the program sequence will be interrupted and new data content will be loaded into the Program Counter. The Program Counter is immediately incremented after fetching the program instruction. This means that the destination address of the jump instruction is obtained by the operator of the jump instruction adding the next instruction address. The actual operation situation of the Program Counter is illustrated in the following figure: The main program will call the sub subroutine when executing the aa line, the PC aa address. Push the bb address onto the stack. The program will jump to execute the sub subroutine, PC yy Execute the return instruction (RET) at the end of the sub subroutine. Pop the bb address from the stack. Return to the main program at location bb to continue with program execution, PC bb 3 / 5 AN0385E

Program Counter Error Detection Flowchart 4 / 5 AN0385E

Program Counter Error Detection Flowchart Description Step 1 Set _wdtc = 0x50 to enable the Watchdog Timer function and to select a Watchdog Timer timeout period of 7.8125ms. Jump to step 2. (Note: Users can select different Watchdog Timer time-out periods according to their requirements.) Step 2 Is Watchdog time-out flag (TO) =1? Yes, set pf2=1. Watchdog Timer overflow occurs due to a Program Counter malfunction. Jump to step 3. No, jump to step 3. Step 3 Program Counter malfunctions or jumps to an unknown location? Yes, Watchdog Timer overflows which automatically resets the device and sets the TO flag. Jump to step 1. No, jump to step 4. Step 4 Use the CLR WDT instruction to clear the Watchdog Timer. Jump to step 5. Step 5 Execute user code first and then jump back to step 3. 5 / 5 AN0385E