HT95R6x CPT (Call Progress Tone) Decoder Function

Size: px
Start display at page:

Download "HT95R6x CPT (Call Progress Tone) Decoder Function"

Transcription

1 HT95R6x CPT (Call Progress Tone) Decoder Function D/N:AN0227E Introduction The CPT (Call Progress Tone), is a group of voice tones sent from the switchboard to the caller to indicate the call condition, such as Dial Tone, Busy Tone, Ring-back Tone, Record Tone etc. These tones and the information that they contain can be used by auto-dialing systems. After the auto-dialing system dials a number, the received CPT signals will determine the status of the called party and then act accordingly. For example, a Ring-back Tone indicates that the called party is in a connected status. Holtek s HT95R64/HT95R65 includes an internal CPT detector. The following describes how to use the CPT detector in the HT95R6x. Operation Principles Using switched capacitor technology, the internal band-pass filter with a band range of 305Hz to 640Hz (call progress tone zone) in the HT95R6x shows excellent performance as the figure shows below. When a CPT signal is detected by the CPT detector, corresponding envelope signals will be sent to the external device to distinguish which CPT signal it is from the Dial Tone, Busy Tone, Ring-back Tone and Recorder Tone. 1

2 The relevant CPT detector pins are CPTSIN, CPTENB, CPTVREF, CPTENV, CPTX1, CPTX2, VDD4 and VSS4. No register is related to the CPT. CPTSIN AC coupled analog signal input pin for CPT detector. CPTENB CPT detector enable bit. When CPTENB=VSS, the CPT detector is enabled, or disabled when CPTENB=VDD. Power consumption can be reduced when the CPT detector is disabled. CPTVREF 1/2 VDD reference voltage output pin. When CPTENB=VDD, CPTVREF is disabled. CPTENV When an input signal for the CPT detector is within specification, this pin will output the envelope relative to the input signal with a typical 40ms timing delay. CPTX1 and CPTX2 CPTX1 and CPTX2 are connected to an external 32768Hz crystal or resonator for the CPT detector clock source. VDD4 and VSS4 Power supply for the CPT detector. Users may connect CPTENB with a common I/O pin to enable or disable the CPT detector and another I/O pin to detect the CPT detector output signals and then through the specification of the CPT distinguish the CPT type by software applications. The following table describes the general CPT specifications. 2

3 Application Circuits HT95R6x CPT (Call Progress Tone) Decoder Function Pin PA7 connects to CPTENB in the figure above to enable/disable the CPT detector. Pin PA6 connects to CPTENV to detect the envelopes from the CPTENV output. 3

4 S/W Flowchart Start Enable CPT detector, set Timer0 as 2ms timer mode, enable Timer0 interrupt N CPTENV low -> High? Y N Flag1=1? Timer0 Interrupt Y T0ON=0, Flag1=0, count2=count0 Count0++ Check count1 and count2, Determine CPT type Check count0 T0ON=1, flag0=1 Return N CPTENV high -> Low and flag0=1? T0ON=0, flag0=0 Count1=count0, Flag1=1, T0ON=1 Y user_sub() 4

5 Program Description HT95R6x CPT (Call Progress Tone) Decoder Function The program will decide the the CPT type by detecting the high and low level time of the envelope signals out of one output cycle from the CPTENV pin. Set Timer0 to a 2ms timer mode and enable the interrupt. Count0 will add 1 at every interrupt. When the device detects the CPTENV pin changing from low to high, Timer0 will be enabled. When CPTENV changes from high to low, disable Timer0 first, save the Count0 values in Count1 (high level width,) and then set Count0 to zero, enable Timer0. Wait for another detection of CPTENV shifting from low to high, disable Timer0 and save Count0 values to Count2 (low level width.) Compare the specifications of count1 and count2, and then decide which type of Call Progress Tone the detected signal belongs to. If both count1 and count2 are larger than 245 and smaller than 255, it will be Busy Tone. The tolerance of the time from the program is ±10ms. Users may adjust this according to actual situations. The program uses the HCLK 3.58MHz as the system clock yet when the HT95R6x is reset, the default system clock will be 32768Hz, so it is necessary to set the UPEN and MODE1 in MODE register as 1. Program Example //Option :WDT Disable #include "HT95R65.h" #define cpt_en _12_7 //CPT Enable #define cpt_enc _13_7 #define cpt_in _12_6 //CPT CPTENV #define cpt_inc _13_6 #pragma vector #pragma vector #pragma vector #pragma vector #pragma vector #pragma vector typedef unsigned char uint8; typedef signed char int8; typedef unsigned long uint16; typedef signed long int16; #pragma rambank0 bit dial_tone; // detected flag for Precision Dial Tone and Old Dial Tone bit busy_tone; // detected flag for Precision Busy Tone and Old busy Tone bit pr_tone; // detected flag for Precision Recorder Tone bit or_tone; // detected flag for Old Recorder Tone bit rb_tone; // detected flag for Precision Ring-back Tone and Old Ring-back Tone bit flag0; // detected flag for cpt_in rising edge bit p_flag; // cpt_in previous state bit flag1; uint16 count0; 5

6 uint16 count1; // high pulse width counter uint16 count2; // low pulse width counter #pragma norambank //******************interrupt subroutine*******************// void ext_int(void) void tmr0_int(void) count0++; if(count0>1010&&flag0==1) flag0=0; count0=0; dial_tone=1; // Dial Tone was detected _t0on=0; if(count0>2100) // Anomalies happened _t0on=0; flag0=0; flag1=0; count0=0; count1=0; count2=0; void tmr1_int(void) void per_int(void) void rtc_int(void) void multi_int(void) void clear_ram(uint8 start_addr,uint8 end_addr,uint8 bankn) _tblp=end_addr; if(bankn==0) for(_mp0=start_addr;_mp0<_tblp;_mp0++) _iar0=0; else _tmr0l=bankn; for(_mp1=start_addr;_mp1<_tblp;_mp1++) _bp=_tmr0l;_iar1=0; void cpt_init_sub() cpt_enc=0; cpt_en=0; // enable cpt module cpt_inc=1; _emi=1; _et0i=1; _tmr0l=0x01; _tmr0h=0xf9; // Timer0 clock source:fsys/4,fsys=3.58mhz _tmr0c=0x80; // Timer0 used timer mode, generates interrupt every 2ms 6

7 void cpt_type_sub() //with count1 and count2,determines CPT type if((count1>120&&count1<130&&count2>120&&count2<130) (count1>95&&count1<105&&count2>1 45&&count2<155)) or_tone=1; if(count1>145&&count1<155&&count2>95&&count2<105) pr_tone=1; if(count1>245&&count1<255&&count2>245&&count2<255) busy_tone=1; if(count1>990&&count1<1010&&count2>1980&&count2<2020) rb_tone=1; void cpt_detect_sub() if(p_flag==0&&cpt_in==1) if(flag1==1) _t0on=0; count2=count0; //measure low pulse width flag1=0; count0=0; cpt_type_sub(); _t0on=1; flag0=1; if(p_flag==1&&cpt_in==0&&flag0==1) _t0on=0; flag0=0; count1=count0; //measure high pulse width count0=0; flag1=1; _t0on=1; p_flag=cpt_in; void user_sub() //user subroutine void main() _upen=1; // enable frequency up conversion to generate HCLK _delay(165); // 32768Hz->HCLK, execute 20ms delay,165*4/ 約 20ms _mode1=1; // select HCLK as as CPU clock system 7

8 _f0=0;_f1=0; clear_ram(0x40,0xff,0); cpt_init_sub(); while(1) cpt_detect_sub(); user_sub(); // select HCLK=3.58MHz as CPU clock system Conclusion The program provides users with a reference of how to use Timer0 as an interrupt timer counter to detect the time of an envelope high and low level out of one output cycle from the CPT detector so as to distinguish the type of CPT. 8

Using the HT16K33 in DVD Player Panel Applications

Using the HT16K33 in DVD Player Panel Applications Using the HT16K33 in DVD Player Panel Applications D/N:AN0363E Introduction The HT16K33 is a memory mapping and multi-function LED controller driver. The maximum display capacity in the device is 128 dots

More information

Bachelor of Engineering in Computer and Electronic Engineering

Bachelor of Engineering in Computer and Electronic Engineering Bachelor of Engineering in Computer and Electronic Engineering Computer Engineering 1 Year 2 Semester 3 Autumn 08 Niall O Keeffe Instructions to Candidates: - 2 hours duration Answer 4 out of 6 questions.

More information

8051 Microcontroller Interrupts

8051 Microcontroller Interrupts 8051 Microcontroller Interrupts There are five interrupt sources for the 8051, which means that they can recognize 5 different events that can interrupt regular program execution. Each interrupt can be

More information

MCU: Interrupts and Timers. Ganesh Pitchiah

MCU: Interrupts and Timers. Ganesh Pitchiah MCU: Interrupts and Timers Ganesh Pitchiah What s an MCU? Frequency = 8 MHz Time Period = 1/f = 0.125 us Code for Switching LED int a; voltage while(1) { a = PINA.0; input) If (a==1) PORTA.1=1; else PORTA.1=0;

More information

8051 Peripherals. On-Chip Memory Timers Serial Port Interrupts. Computer Engineering Timers

8051 Peripherals. On-Chip Memory Timers Serial Port Interrupts. Computer Engineering Timers 8051 Peripherals On-Chip Memory Timers Serial Port Interrupts Computer Engineering 2 2-1 8051 Timers 8051 Timers The 8051 has 2 internal 16-bit timers named Timer 0 and Timer 1 Each timer is a 16-bit counter

More information

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

HT8 UL60730 Safety Library -- Frequency Monitoring Via External LXT Clock Source Frequency HT8 UL60730 Safety Library -- Frequency Monitoring Via External LXT Clock Source Frequency D/N: AN0382E Introduction In general, the UL/CSA 60730 safety standard applies to automatic electrical controls

More information

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text

e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text e-pg Pathshala Subject: Computer Science Paper: Embedded System Module: Interrupt Programming in Embedded C Module No: CS/ES/20 Quadrant 1 e-text In this lecture embedded C program for interrupt handling

More information

PIC Microcontroller Introduction

PIC Microcontroller Introduction PIC Microcontroller Introduction The real name of this microcontroller is PICmicro (Peripheral Interface Controller), but it is better known as PIC. Its first ancestor was designed in 1975 by General Instruments.

More information

HT1611/HT1611C Timer with Dialer Interface

HT1611/HT1611C Timer with Dialer Interface Features Operating voltage: 1.2V~1.7V Low operating current: 3µA (typ.) Dialing number and conversation time display Conversation timer (59 mins and 59 secs max.) 8 or 10-digit LCD display driver, 3V,

More information

Interrupts, timers and counters

Interrupts, timers and counters Interrupts, timers and counters Posted on May 10, 2008, by Ibrahim KAMAL, in Micro-controllers, tagged Most microcontrollers come with a set of ADD-ONs called peripherals, to enhance the functioning of

More information

1. Attempt any three of the following: 15

1. Attempt any three of the following: 15 (2½ hours) Total Marks: 75 N. B.: (1) All questions are compulsory. (2) Make suitable assumptions wherever necessary and state the assumptions made. (3) Answers to the same question must be written together.

More information

Embedded Systems. October 2, 2017

Embedded Systems. October 2, 2017 15-348 Embedded Systems October 2, 2017 Announcements Read pages 267 275 The Plan! Timers and Counter Interrupts A little review of timers How do we keep track of seconds using a timer? We have several

More information

Systems Programming. Lecture 4 Z16 Architecture and Programming

Systems Programming.   Lecture 4 Z16 Architecture and Programming Systems Programming www.atomicrhubarb.com/systems Lecture 4 Z16 Architecture and Programming Section Topic Where in the books Zilog Zilog Zilog Zilog UM197 (ZNEO Z16F Series Flash Microcontroller Contest

More information

Using the HT16C2x I 2 C Interface for LCD Driving and Control

Using the HT16C2x I 2 C Interface for LCD Driving and Control Using the HT16C2x I 2 C Interface for LCD Driving and Control D/N:AN0280E Introduction The Holtek HT16C2x is a series of I 2 C interface, RAM mapping LCD drivers. They include the HT16C22/HT16C22G, HT16C23/HT16C23G,

More information

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

HT1621. RAM Mapping 32 4 LCD Controller for I/O µc. Features. General Description. Selection Table RAM Mapping 32 4 LCD Controller for I/O µc Features Operating voltage : 2.4V~5.2V Built-in 256kHz RC oscillator External 32.768kHz crystal or 256kHz frequency source input Selection of 1/2 or 1/3 bias,

More information

TTP226. Preliminary 8 KEYS TOUCH PAD DETECTOR IC GENERAL DESCRIPTION

TTP226. Preliminary 8 KEYS TOUCH PAD DETECTOR IC GENERAL DESCRIPTION 8 KEYS TOUCH PAD DETECTOR IC GENERAL DESCRIPTION The TTP222 is a touch pad detector IC which offers 8 touch keys. The touching detection IC is designed for replacing traditional direct button key with

More information

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

8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer Features Real-Time Clock with Very Low Power Consumption (4µA @ 3.3V) Very Low Cost Solution Adjustable Prescaler to Adjust Precision Counts Time,

More information

Write LED display data, in accordance with the address from the display from low to high, from low to high data byte operation.

Write LED display data, in accordance with the address from the display from low to high, from low to high data byte operation. The register stores transferred from an external device via the serial interface to the TM1637 data address 00H-05H bytes of six units, respectively, and SGE and GRID pin chip LED lights are connected

More information

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices,

Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, Understanding the basic building blocks of a microcontroller device in general. Knows the terminologies like embedded and external memory devices, CISC and RISC processors etc. Knows the architecture and

More information

Lecture (03) PIC16F84 (2)

Lecture (03) PIC16F84 (2) Lecture (03) PIC16F84 (2) By: Dr. Ahmed ElShafee ١ PIC16F84 has a RISC architecture, or Harvard architecture in another word ٢ PIC16F84 belongs to a class of 8 bit microcontrollers of RISC architecture.

More information

LCD. Configuration and Programming

LCD. Configuration and Programming LCD Configuration and Programming Interfacing and Programming with Input/Output Device: LCD LCD (liquid crystal display) is specifically manufactured to be used with microcontrollers, which means that

More information

Introduction to Embedded Systems

Introduction to Embedded Systems Stefan Kowalewski, 4. November 25 Introduction to Embedded Systems Part 2: Microcontrollers. Basics 2. Structure/elements 3. Digital I/O 4. Interrupts 5. Timers/Counters Introduction to Embedded Systems

More information

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar

Clock and Fuses. Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar Clock and Fuses Prof. Prabhat Ranjan Dhirubhai Ambani Institute of Information and Communication Technology, Gandhinagar Reference WHY YOU NEED A CLOCK SOURCE - COLIN O FLYNN avrfreaks.net http://en.wikibooks.org/wiki/atmel_avr

More information

By the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab

By the end of Class. Outline. Homework 5. C8051F020 Block Diagram (pg 18) Pseudo-code for Lab 1-2 due as part of prelab By the end of Class Pseudo-code for Lab 1-2 due as part of prelab Homework #5 on website due before next class Outline Introduce Lab 1-2 Counting Timers on C8051 Interrupts Laboratory Worksheet #05 Copy

More information

8051 Microcontroller

8051 Microcontroller 8051 Microcontroller The 8051, Motorola and PIC families are the 3 leading sellers in the microcontroller market. The 8051 microcontroller was originally developed by Intel in the late 1970 s. Today many

More information

The MCU s Pulse. Internal clock or oscillator to synchronize operation. One clock cycle = 1 TOSC = 1/fOSC. t TOSC

The MCU s Pulse. Internal clock or oscillator to synchronize operation. One clock cycle = 1 TOSC = 1/fOSC. t TOSC The MCU s Pulse Internal clock or oscillator to synchronize operation V 0 t TOSC One clock cycle = 1 TOSC = 1/fOSC Clock Cycle The minimum time to perform any operation is one instruction cycle TCY 1 TCY

More information

PSoC Designer Quick Start Guide

PSoC Designer Quick Start Guide Installation PSoC Designer Quick Start Guide PSoC Designer is available for download at http://www.cypress.com/go/designer. You can also download an ISO image to create an installation CD. Each Starter

More information

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

OSC Ring Type Ring or Resonator type (optional) RESET Pin No Yes General Description Features est Series is a series of 3 to 340 seconds single chip high quality voice synthesizer IC which contains one 4-bit Input port (provided for est005 and above); three 4-bit I/O

More information

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.

1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085. (1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic

More information

Freescale Semiconductor, I

Freescale Semiconductor, I nc. Application Note Rev. 0, 4/2004 Software Drivers for Tango3 RF Transmitter and Romeo2 RF Receiver ICs By John Logan 8/16-Bit Division East Kilbride, Scotland Introduction This application note describes

More information

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers

Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Lecture (4) Computer Hardware Requirements for ERTSs: Microprocessors & Microcontrollers Prof. Kasim M. Al-Aubidy Philadelphia University-Jordan DERTS-MSc, 2015 Prof. Kasim Al-Aubidy 1 Lecture Outline:

More information

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

HT49R10A-1/HT49C10-1 LCD Type 8-Bit MCU LCD Type 8-Bit MCU Technical Document Tools Information FAQs Application Note HA007E Controlling the Read/Write Function of the HT24 Series EEPROM Using the HT49 Series MCUs HA0024E Using the RTC in the

More information

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

EXPERIMENT NO.1. A Microcontroller is a complete computer system built on a single chip. EXPERIMENT NO.1 AIM: Study of 8051 Microcontroller TOOLS: 8051 kit THEORY: Salient Features of 8051 A Microcontroller is a complete computer system built on a single chip. It contains all components like

More information

SECTION 5 RESETS AND INTERRUPTS

SECTION 5 RESETS AND INTERRUPTS SECTION RESETS AND INTERRUPTS Resets and interrupt operations load the program counter with a vector that points to a new location from which instructions are to be fetched. A reset immediately stops execution

More information

Introduction to ARM LPC2148 Microcontroller

Introduction to ARM LPC2148 Microcontroller Introduction to ARM LPC2148 Microcontroller Dr.R.Sundaramurthy Department of EIE Pondicherry Engineering College Features of LPC2148 in a Nut Shell CPU = ARM 7 Core Word Length = 32 Bit ROM = 512 KB RAM

More information

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

University of Texas at El Paso Electrical and Computer Engineering Department. EE 3176 Laboratory for Microprocessors I. University of Texas at El Paso Electrical and Computer Engineering Department EE 3176 Laboratory for Microprocessors I Fall 2016 LAB 03 Low Power Mode and Port Interrupts Goals: Bonus: Pre Lab Questions:

More information

ELEG3923 Microprocessor Ch.9 Timer Programming

ELEG3923 Microprocessor Ch.9 Timer Programming Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.9 Timer Programming Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Programming 8051 Timers Counter programming Timer programming

More information

HT46R53A/HT46R54A A/D Type 8-Bit OTP MCU

HT46R53A/HT46R54A A/D Type 8-Bit OTP MCU A/D Type 8-Bit OTP MCU Features Low-power fully static CMOS design Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V Program Memory: 2K5 OTP (HT46R53A) 4K5 OTP (HT46R54A) Data memory: 928

More information

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software!

TEVATRON TECHNOLOGIES PVT. LTD Embedded! Robotics! IoT! VLSI Design! Projects! Technical Consultancy! Education! STEM! Software! Summer Training 2016 Advance Embedded Systems Fast track of AVR and detailed working on STM32 ARM Processor with RTOS- Real Time Operating Systems Covering 1. Hands on Topics and Sessions Covered in Summer

More information

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

Embedded Systems. PIC16F84A Internal Architecture. Eng. Anis Nazer First Semester Embedded Systems PIC16F84A Internal Architecture Eng. Anis Nazer First Semester 2017-2018 Review Computer system basic components? CPU? Memory? I/O? buses? Instruction? Program? Instruction set? CISC,

More information

Application Note. Watchdog Timer

Application Note. Watchdog Timer Application Note Watchdog Timer For H8/36077 series Contact Info: Brazen Tek, Inc. 20121 Ventura Blvd. Suite 310 Woodland Hills, CA 91364 USA Tel/Fax: (818) 710-9262 E-mail: info@brazentek.com August 2008

More information

ILI2303. ILI2303 Capacitive Touch Sensor Controller. Specification

ILI2303. ILI2303 Capacitive Touch Sensor Controller. Specification Capacitive Touch Sensor Controller Specification Version: V1.03 Date: 2014/9/17 ILI TECHNOLOGY CORP. 8F, No.38, Taiyuan St., Jhubei City, Hsinchu County 302, Taiwan, R.O.C. Tel.886-3-5600099; Fax.886-3-5600055

More information

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

EU bit MCU with 10-bit A/D Converter. Features. Description. Ordering Information 8-bit MCU with 10-bit A/D Converter Features 2.2V to 5.5V Input Voltage Range 14 I/O ports in RAM size: 128 x 8 bits The STACK RAM is included. Program ROM size: 4K x 8 bits OTP 10 bits A/D Converter input

More information

Capture Mode of Pic18F252

Capture Mode of Pic18F252 Capture Mode of Pic18F252 PIC18F253 has two Capture/Compare/Pulse Width Modulation modules. Some devices such as ADCs, Sensors (position, velocity, accelearstion, temperature [MAX6577 converts the ambient

More information

Application Note. Motorola MC to CMX865A Migration. CML Microcircuits

Application Note. Motorola MC to CMX865A Migration. CML Microcircuits CML Microcircuits COMMUICATIO SEMICODUCTORS A/Telecom/CMX865A Migration/1 February 2007 Application ote Motorola MC145443 to CMX865A Migration 1 Introduction Many designs have used the Motorola/Freescale

More information

Application Note. Synchronous Operation Mode

Application Note. Synchronous Operation Mode Application Note Synchronous Operation Mode For H8/3694 series Contact Info: Brazen Tek, Inc. 20121 Ventura Blvd. Suite 310 Woodland Hills, CA 91364 USA Tel/Fax: (818) 710-9262 E-mail: info@brazentek.com

More information

ECE/CE 3720: Embedded System Design

ECE/CE 3720: Embedded System Design Basic Components of Input Capture Slide 1 ECE/CE 3720: Embedded System Design Chris J. Myers Lecture 12: Input Capture Slide 3 Basic Principles of Input Capture Basic Principles of Input Capture (cont)

More information

Supply voltage. Input current. Encoder supply. Memory SIMATIC S7-200, CPU 221 COMPACT UNIT, DC POWER SUPPLY 6 DI DC/4 DO DC, 4 KB CODE/2 KB DATA,

Supply voltage. Input current. Encoder supply. Memory SIMATIC S7-200, CPU 221 COMPACT UNIT, DC POWER SUPPLY 6 DI DC/4 DO DC, 4 KB CODE/2 KB DATA, Data sheet SIMATIC S7-200, CPU 221 COMPACT UNIT, DC POWER SUPPLY 6 DI DC/4 DO DC, 4 KB CODE/2 KB DATA, Supply voltage Rated value (DC) 24 V DC Load voltage L+ Rated value (DC) permissible range, lower

More information

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

SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR. ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 SANKALCHAND PATEL COLLEGE OF ENGINEERING, VISNAGAR ELECTRONICS & COMMUNICATION DEPARTMENT Question Bank- 1 Subject: Microcontroller and Interfacing (151001) Class: B.E.Sem V (EC-I & II) Q-1 Explain RISC

More information

RTC Interface 89C51 DS M. Krishna Kumar MAM/M7/LU17/V1/ Vcc VCC 5 SDA P1.0 6 SCL P KHz 3 BAT 3.

RTC Interface 89C51 DS M. Krishna Kumar MAM/M7/LU17/V1/ Vcc VCC 5 SDA P1.0 6 SCL P KHz 3 BAT 3. RTC Interface 89C51 Vcc P1.0 10k 10k 5 SDA DS 1307 8 VCC P1.1 6 SCL X1 1 + 3 BAT X2 2 32.768KHz - 3.6V 4 GND INTB\SQW 7 M. Krishna Kumar MAM/M7/LU17/V1/2004 1 RTC Interface contd. DS 1307 is a real time

More information

DTMF BASED INDUSTRIAL AUTOMATION

DTMF BASED INDUSTRIAL AUTOMATION DTMF BASED INDUSTRIAL AUTOMATION Shobhnendra Kumar 1, Shrishti Srivastava 2, Pallavi Gupta 3 1, 2 Students, Electrical Engineering Department, Greater Noida Institutes of Technology, Gr.Noida, (India)

More information

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK

CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK 134 CHAPTER 6 CONCLUSION AND SCOPE FOR FUTURE WORK 6.1 CONCLUSION Many industrial processes such as assembly lines have to operate at different speeds for different products. Process control may demand

More information

I/O Emulated UART Baud Rate Calibration Application Note

I/O Emulated UART Baud Rate Calibration Application Note I/O Emulated UART Baud Rate Calibration Application Note D/N: AN0475E Introduction Not every HOLTEK MCU contains a Universal Asynchronous Receiver/Transmitter function, otherwise known as a UART. If this

More information

I/O Type 8-Bit OTP MCU with High Current LED Driver

I/O Type 8-Bit OTP MCU with High Current LED Driver I/O Type 8-Bit OTP MCU with 66 High Current LED Driver Features Operating voltage: f SYS =32768Hz: 2.2V~5.5V f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V 2k4 program memory ROM 888 data memory RAM 8 bidirectional

More information

Pin Assignment 2 ) # 2 ) % 2 ) $ 2 )! 2 ) 6 2 ) 2 )! " 4 # $ % /, & ' ' & % $ # "! 2 ) " : /, * ) 6 8,, * $ * 2 ) # 2 ) %

Pin Assignment 2 ) # 2 ) % 2 ) $ 2 )! 2 ) 6 2 ) 2 )!  4 # $ % /, & ' ' & % $ # ! 2 )  : /, * ) 6 8,, * $ * 2 ) # 2 ) % RF One Channel Mouse 8-bit OTP MCU Technical Document Tools Information FAQs Application Note HA0075E MCU Reset and Oscillator Circuits Application Note Features Operating voltage: f SYS = 27MHz: 2.0V~3.3V

More information

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B

ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE Standard. DATA SHEET Version B ZMD400-A01 ZigBee Compliant Platform 2.4G RF Low Power Transceiver Module for IEEE 802.15.4 Standard DATA SHEET Version B Quan International Co., Ltd., ZMD400 Features Fully compliant 802.15.4 Standard

More information

UNISONIC TECHNOLOGIES CO., LTD 6621 Preliminary LINEAR INTEGRATED CIRCUIT

UNISONIC TECHNOLOGIES CO., LTD 6621 Preliminary LINEAR INTEGRATED CIRCUIT UNISONIC TECHNOLOGIES CO., LTD 6621 Preliminary LINEAR INTEGRATED CIRCUIT RAM MAPPLING 32 4 LCD CONTROLLER FOR I/O μc DESCRIPTION The UTC 6621 is a 128 patterns (32 4), memory mapping, and multi-function

More information

2-Oct-13. the world s most energy friendly microcontrollers and radios

2-Oct-13.  the world s most energy friendly microcontrollers and radios 1 2 3 EFM32 4 5 LESENSE Low Energy Sensor Interface Autonomous sensing in Deep Sleep LESENSE with central control logic ACMP for sensor input DAC for reference generation Measure up to 16 sensors Inductive

More information

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

TP6825. USB Full Speed Game Pad Controller. Data Sheet. Tenx reserves the right to change or discontinue this product without notice. Advance Information TP6825 USB Full Speed Game Pad Controller Data Sheet Tenx reserves the right to change or discontinue this product without notice. tenx technology, inc. Contain 1. GENERAL DESCRIPTION...

More information

Hong Kong Institute of Vocational Education Digital Electronics & Microcontroller. 8. Microcontroller

Hong Kong Institute of Vocational Education Digital Electronics & Microcontroller. 8. Microcontroller 8. Microcontroller Textbook Programming Robot Controllers, Myke Predko, McGraw Hill. Reference PIC Robotics: A Beginner's Guide to Robotics Projects Using the PIC Micro, John Iovine, McGraw Hill. Embedded

More information

Table 1 Brief Specifications

Table 1 Brief Specifications Rev.1.1 MICROCOMPUTER WITH BUILT-IN PAGING DECODER The microcomputer incorporates a decoder conforming to CCIR Radio Paging Decode 1(POCSA Code), a melody generator, an LCD driver and a timer. Only attaching

More information

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to?

2. (2 pts) If an external clock is used, which pin of the 8051 should it be connected to? ECE3710 Exam 2. Name _ Spring 2013. 5 pages. 102 points, but scored out of 100. You may use any non-living resource to complete this exam. Any hint of cheating will result in a 0. Part 1 Short Answer 1.

More information

A 3-SPEED STEPPER MOTOR

A 3-SPEED STEPPER MOTOR ECE 36 Projects; Stepper Motor 1 of 5 A 3-SPEED STEPPER MOTOR 1. Design a microprocessing system to implement a 3-speed stepper motor. Your design is constrained to use the parts shown in Fig. 1 and described

More information

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

C and Embedded Systems. So Why Learn Assembly Language? C Compilation. PICC Lite C Compiler. PICC Lite C Optimization Results (Lab #13) C and Embedded Systems A µp-based system used in a device (i.e, a car engine) performing control and monitoring functions is referred to as an embedded system. The embedded system is invisible to the user

More information

NJU keys input key-scan IC GENERAL DESCRIPTION PACKAGE OUTLINE FEATURES BLOCK DIAGRAM PIN CONFIGURATION

NJU keys input key-scan IC GENERAL DESCRIPTION PACKAGE OUTLINE FEATURES BLOCK DIAGRAM PIN CONFIGURATION 24 keys input key-scan IC GENERAL DESCRIPTION The NJU6010 is 24 keys input key-scan IC with internal oscillation. It scans the maximum 4x6 key matrix. And the key data transmit to CPU. The microprocessor

More information

SquareWear Programming Reference 1.0 Oct 10, 2012

SquareWear Programming Reference 1.0 Oct 10, 2012 Content: 1. Overview 2. Basic Data Types 3. Pin Functions 4. main() and initsquarewear() 5. Digital Input/Output 6. Analog Input/PWM Output 7. Timing, Delay, Reset, and Sleep 8. USB Serial Functions 9.

More information

(Embedded) Systems Programming Overview

(Embedded) Systems Programming Overview System Programming Issues EE 357 Unit 10a (Embedded) Systems Programming Overview Embedded systems programming g have different design requirements than general purpose computers like PC s I/O Electro-mechanical

More information

I/O Devices & Debugging. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University

I/O Devices & Debugging. Jin-Soo Kim Computer Systems Laboratory Sungkyunkwan University I/O Devices & Debugging Jin-Soo Kim (jinsookim@skku.edu) Computer Systems Laboratory Sungkyunkwan University http://csl.skku.edu I/O Devices Jasmine Block Diagram ICE3028: Embedded Systems Design (Spring

More information

Topic 11: Timer ISMAIL ARIFFIN FKE UTM SKUDAI JOHOR

Topic 11: Timer ISMAIL ARIFFIN FKE UTM SKUDAI JOHOR Topic 11: Timer ISMAIL ARIFFIN FKE UTM SKUDAI JOHOR Introduction Timer s objective Timer features Timer Registers - Understand function of each bit Initialization Introduction o In micro-p, we use counter

More information

TP6836. USB 2.4G RF Dongle. Data Sheet

TP6836. USB 2.4G RF Dongle. Data Sheet TP6836 Data Sheet tenx reserves the right to change or discontinue the manual and online documentation to this product herein to improve reliability, function or design without further notice. tenx does

More information

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address

More information

CN310 Microprocessor Systems Design

CN310 Microprocessor Systems Design CN310 Microprocessor Systems Design Microcontroller Nawin Somyat Department of Electrical and Computer Engineering Thammasat University Outline Course Contents 1 Introduction 2 Simple Computer 3 Microprocessor

More information

M16C/26 APPLICATION NOTE. Implementing Real Time Clock and WAIT Mode. 1.0 Abstract. 2.0 Introduction. 3.0 Real-Time Clock Setup and Implementation

M16C/26 APPLICATION NOTE. Implementing Real Time Clock and WAIT Mode. 1.0 Abstract. 2.0 Introduction. 3.0 Real-Time Clock Setup and Implementation APPLICATION NOTE M16C/26 1.0 Abstract The following article describes the implementation of a low-power, real time clock using the sub-clock circuit with a 32.768 khz crystal and Wait mode of the M16C/26

More information

Pin Description, Status & Control Signals of 8085 Microprocessor

Pin Description, Status & Control Signals of 8085 Microprocessor Pin Description, Status & Control Signals of 8085 Microprocessor 1 Intel 8085 CPU Block Diagram 2 The 8085 Block Diagram Registers hold temporary data. Instruction register (IR) holds the currently executing

More information

THINK FAST, THINK FIVE

THINK FAST, THINK FIVE ST FIVE Intelligent Controller Unit (ICU) Product Presentation April 2003 Edition STMicroelectronics www.st. com/five www.stmcu.com www.stmcu.com THINK FAST, THINK FIVE FIVE ICUs Concept Analog Analog

More information

HT36B0 8-Bit Music Synthesizer MCU

HT36B0 8-Bit Music Synthesizer MCU 8-Bit Music Synthesizer MCU Features Operating voltage: 3.6V~5.0V Operating frequency: 3.58MHz~12MHz, RC typ. 11.059MHz 36 bidirectional I/O lines Two 16-bit programmable timer/event counters with overflow

More information

In this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors.

In this tutorial, we will discuss the architecture, pin diagram and other key concepts of microprocessors. About the Tutorial A microprocessor is a controlling unit of a micro-computer, fabricated on a small chip capable of performing Arithmetic Logical Unit (ALU) operations and communicating with the other

More information

Lecture (04) PIC 16F84A programming I

Lecture (04) PIC 16F84A programming I Lecture (04) PIC 16F84A programming I Dr. Ahmed M. ElShafee ١ Agenda Introduction to PIC16F84A programming using C language Preprocessors and, Compiler directives Constants Variables and data types Pointers

More information

8051 MICROCONTROLLER

8051 MICROCONTROLLER 8051 MICROCONTROLLER Mr.Darshan Patel M.Tech (Power Electronics & Drives) Assistant Professor Department of Electrical Engineering Sankalchand Patel College of Engineering-Visnagar WHY DO WE NEED TO LEARN

More information

Microprocessors & Interfacing

Microprocessors & Interfacing Lecture Overview Microprocessors & Interfacing Interrupts (I) Lecturer : Dr. Annie Guo Introduction to Interrupts Interrupt system specifications Multiple sources of interrupts Interrupt priorities Interrupts

More information

HT1628 RAM Mapping LCD Driver

HT1628 RAM Mapping LCD Driver RAM Mapping 116 2 LCD Driver Features Logic voltage 2.4V~5.5V LCD operating voltage (VLCD) 2.4V~5.5V LCD display 2 commons, 116 segments Support a maximum of 58 4 bit Display RAM Duty Static, 1/2; Bias

More information

Supply voltage. Input current. Encoder supply. Memory

Supply voltage. Input current. Encoder supply. Memory Data sheet SIMATIC S7-200, CPU 224XP COMPACT UNIT, DC POWER SUPPLY 14 DI DC/10 DO DC, 2 AI, 1 AO 12/16 KB CODE/10 KB DATA, 2 PPI/FREEPORT PORTS Supply voltage Rated value (DC) 24 V DC Load voltage L+ Rated

More information

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

8-bit Microcontroller with 2K Bytes of Flash. ATtiny28L ATtiny28V Features Utilizes the AVR RISC Architecture AVR High-performance and Low-power RISC Architecture 90 Powerful Instructions Most Single Clock Cycle Execution 32 x 8 General-purpose Working Registers Up to

More information

24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales FEATURES APPLICATIONS S8550 VFB. Analog Supply Regulator. Input MUX.

24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales FEATURES APPLICATIONS S8550 VFB. Analog Supply Regulator. Input MUX. 24-Bit Analog-to-Digital Converter (ADC) for Weigh Scales DESCRIPTION Based on Avia Semiconductor s patented technology, HX711 is a precision 24-bit analogto-digital converter (ADC) designed for weigh

More information

EE 354 Fall 2013 Lecture 9 The Sampling Process and Evaluation of Difference Equations

EE 354 Fall 2013 Lecture 9 The Sampling Process and Evaluation of Difference Equations EE 354 Fall 2013 Lecture 9 The Sampling Process and Evaluation of Difference Equations Digital Signal Processing (DSP) is centered around the idea that you can convert an analog signal to a digital signal

More information

HT46R64/HT46C64 A/D with LCD Type 8-Bit MCU

HT46R64/HT46C64 A/D with LCD Type 8-Bit MCU A/D with LCD Type 8-Bit MCU Features Operating voltage: f SYS =4MHz: 2.2V~5.5V f SYS =8MHz: 3.3V~5.5V 24 bidirectional I/O lines Two external interrupt input One 8-bit and one 6-bit programmable timer/event

More information

General Specification

General Specification KOSTAC PZ Manual General Specification Items Input Voltage Range DC22-24V (DC Type ) AC85-264V 50 60Hz(AC Type) Operating Temperature 0 C to 55 C Storage Temperature -20 C to 70 C Specification Ambient

More information

A Low-Cost Energy Management System That Compares Power Consumption of Electronic Home Appliances

A Low-Cost Energy Management System That Compares Power Consumption of Electronic Home Appliances IOSR Journal of Engineering (IOSRJEN) e-issn: 2250-3021, p-issn: 2278-8719, Volume 2, Issue 9 (September 2012), PP 06-10 A Low-Cost Energy Management System That Compares Power Consumption of Electronic

More information

Central processing units CPU 221, CPU 222, CPU 224, CPU 224 XP, CPU 224 XPsi, CPU 226

Central processing units CPU 221, CPU 222, CPU 224, CPU 224 XP, CPU 224 XPsi, CPU 226 Overview CPU 226 The high-performance package for complex technical tasks With additional PPI port for more flexibility and communication options With 40 inputs/outputs on board Expansion capability for

More information

Interrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1

Interrupts (I) Lecturer: Sri Notes by Annie Guo. Week8 1 Interrupts (I) Lecturer: Sri Notes by Annie Guo Week8 1 Lecture overview Introduction to Interrupts Interrupt system specifications Multiple Sources of Interrupts Interrupt Priorities Interrupts in AVR

More information

TouchCore351-ML16IP. Capacitive Touch Sensor Controller

TouchCore351-ML16IP. Capacitive Touch Sensor Controller Total Solution of MCU TouchCore351-ML16IP Capacitive Touch Sensor Controller CORERIVER Semiconductor reserves the right to make corrections, modifications, enhancements, improvements, and other changes

More information

PMS165C. 8bit IO-Type Controller

PMS165C. 8bit IO-Type Controller 8bit IO-Type Controller Data Sheet Version 0.01 Aug. 31, 2017 Copyright 2017 by PADAUK Technology Co., Ltd., all rights reserved Copyright 2016, PADAUK Technology Co. Ltd Page 1 of 11 -EN-V001 Aug. 31,

More information

EE4390 Microprocessors. Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System

EE4390 Microprocessors. Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System EE4390 Microprocessors Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System 1 Overview 68HC12 hardware overview Subsystems Memory System 2 68HC12 Hardware Overview "Copyright of Motorola,

More information

Lecture-50 Intel 8255A: Programming and Operating Modes

Lecture-50 Intel 8255A: Programming and Operating Modes Lecture-50 Intel 8255A: Programming and Operating Modes Operation Description: There are three basic modes of operation that can be selected by the system software. Mode 0: Basic Input/output Mode 1: Strobes

More information

Micro-Research Finland Oy Välitalontie 83 C, FI Helsinki, Finland. Four-Channel Timer 4CHTIM Technical Reference Contents

Micro-Research Finland Oy Välitalontie 83 C, FI Helsinki, Finland. Four-Channel Timer 4CHTIM Technical Reference Contents Date: 03 June 2005 Issue: 1 Page: 1 of 17 Author: Jukka Pietarinen Four-Channel Timer 4CHTIM Technical Reference Contents Introduction...3 Four-Channel Timer Block Diagrams...3 Delay Channel...3 RF Clock

More information

SH67P33A / SH66K33A EVB

SH67P33A / SH66K33A EVB SH67P33A / SH66K33A EVB SH67P33A / SH66K33A EVB Application Notice for SH67P33A / SH66K33A EVB The SH67P33A / SH66K33A EVB is used to evaluate the SH67P33A / SH66K33A chip's function for the development

More information

CPU ONE PLC PLC USER S MANUAL

CPU ONE PLC PLC USER S MANUAL CPU ONE PLC PLC USER S MANUAL A. GENERAL FEATURES CPU One is the programmable control devices which are designed according to the automation needs by considering the tough conditions of the industry. CPU

More information

PTB O165CXXS 8bit IO-Type Controller Data Sheet

PTB O165CXXS 8bit IO-Type Controller Data Sheet PTB O165CXXS 8bit IOType Controller Data Sheet 1 2017831 Table of Contents 1. Introduction... 4 1.1. Function Compare Table... 4 2. Pin Definition... 4 3. RF Inverters Functional Description... 5 3.1.

More information

Interrupts. Embedded Systems Interfacing. 08 September 2011

Interrupts. Embedded Systems Interfacing. 08 September 2011 08 September 2011 An iterrupt is an internal or external event that forces a hardware call to a specified function called an interrupt service routine Interrupt enable must be set (initialization) The

More information

Microcontroller Overview

Microcontroller Overview Microcontroller Overview Microprocessors/Microcontrollers/DSP Microcontroller components Bus Memory CPU Peripherals Programming Microcontrollers vs. µproc. and DSP Microprocessors High-speed information

More information