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

Size: px
Start display at page:

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

Transcription

1 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 C Programming and the Microchip PIC, Richard H. Barnet, Delmar Learning. PIC Microcontroller: An Introduction to Software & Hardware Interfacing, Han-Way Huang, Delmar Learning. MCU 2 / page Page

2 Microchip PICmicroMicrocontroller MCU 2 / page 2 Page 2

3 Microchip PICmicroMicrocontroller Also known as PIC Advantages: Easy to find parts from numerous distributors Many version of PIC function, size, package, I/O Free IDE tools e.g. MPLAB Free C compiler mikroelektronika mikroc (limited to 2K program) HI-TECH PICC Lite(limited to 6F84 and 6F627) Microchip / BurnonMPLAB C8 (time limited) MCU 2 / page 3 Page 3

4 PIC Experimental Board MCU 2 / page 4 Page 4

5 Basic Circuit Requirements Stable +5V supply Reset line input (MCLR) Clock Internal Resistor/capacitor (RC) Crystal oscillator MCU 2 / page 5 Page 5

6 Pin assignment PIC 6F627 MCU 2 / page 6 PIC6F62X PINOUT DESCRIPTION RA/AN RA Bi-directional I/O port AN Analog comparator input RA/AN RA Bi-directional I/O port AN Analog comparator input RA2/AN2/VREF RA2 Bi-directional I/O port AN2 Analog comparator input VREF AN VREF output RA3/AN3/CMP RA3 Bi-directional I/O port AN3 Analog comparator input CMP Comparator output RA4/TCKI/CMP2 RA4 Bi-directional I/O port TCKI Timer clock input CMP2 OD Comparator 2 output RA5/MCLR/VPP RA5 Input port MCLR Master clear VPP Programming voltage input. When configured as MCLR, this pin isan active low RESET to the device. Voltage on MCLR/VPP must not exceed VDD during normal device operation. RA6/OSC2/CLKOUT RA6 Bi-directional I/O port OSC2 XTAL Oscillator crystal output. Connects to crystal or resonator in Crystal Oscillator mode. CLKOUT In ER/INTRC mode, OSC2 pin can output CLKOUT, which has /4 thefrequency of OSC RA7/OSC/CLKIN RA7 Bi-directional I/O port OSC XTAL Oscillator crystal input CLKIN External clock source input. ER biasing pin. RB/INT RB Bi-directional I/O port. INT External interrupt. RB/RX/DT RB Bi-directional I/O port. RX USART receive pin DT Synchronous data I/O. RB2/TX/CK RB2 Bi-directional I/O port. TX USART transmit pin CK Synchronous clock I/O. RB3/CCP RB3 Bi-directional I/O port. CCP Capture/Compare/PWM I/O RB4/PGM RB4 Bi-directional I/O port. PGM Low voltage programming input pin. RB5 RB5 Bi-directional I/O port. RB6/TOSO/TCKI/PGC RB6 Bi-directional I/O port. TOSO XTAL Timer oscillator output. TCKI ST Timer clock input. PGC ST ICSP Programming Clock. RB7/TOSI/PGD RB7 Bi-directional I/O port. TOSI XTAL Timer oscillator input. Wake-up from SLEEP on pin change. PGD ST CMOS ICSP Data I/O Page 6

7 Block Diagram MCU 2 / page 7 Block diagram The PIC6F62X devices contain an 8-bit ALU and working register. The ALU is a general purpose arithmetic unit. It performs arithmetic and Boolean functions between data in the working register and any register file. Depending on the instruction executed, the ALU may affect the values of the Carry (C), Digit Carry (DC), and Zero (Z) bits in the STATUS register. The C and DC bits operate as a Borrow and Digit Borrow out bit, respectively, bit in subtraction. Two types of data memory are provided on the PIC6F62X devices. Non-volatile EEPROM data memory is provided for long term storage of data such as calibration values, lookup table data, and any other data which may require periodic updating in the field. This data is not lost when power is removed. The other data memory provided is regular RAM data memory. Regular RAM data memory is provided for temporary storage of data during normal operation. It is lost when power is removed. Page 7

8 Configuration Register Give the application developer flexibility in how the PIC are used in application. If register are not set correctly, PIC will not run properly. Register is written when the PIC is being programmed. Register content is accessed in PIC bootup process to select the hardware options required for application. MCU 2 / page 8 Configuration register define for: [details refer to textbook Table3-5] Code / data protection (CP / CPD) -normally set OFF Low voltage programming (LVP) -normally set disable Brown-out detect (BODEN) -normally set enable Reset parameters (MCLR) use _MCLR as reset pin Power-up timer -normally set enable Watchdog timer (WDT) -normally set disable Oscillator mode used (FOSC-2) normally set HS (high speed) For mikroc, default setting is: Oscillator mode = HS WDT = disable LVP = disable Page 8

9 Input/Output (I/O) Registers TRISx(where x = A or B) To control the input/output of the I/O pin Register load with, I/O pin set as input Register load with, I/O pin set as output e.g. TRISA.F = will set port A pin (i.e. RA) as input TRISB.F7 = will set port B pin 7 (i.e. RB7) as output PORTx(where x = A or B) Directly store data sending out or received from I/O pin e.g. PORTA.F = will send high to port A pin (RA) temp = PORTB.F3 will assign data received from port B pin3 (RB3) to temp MCU 2 / page 9 I/O convention for mikroc and PICC-Lite: mikroc TRISA TRISA.F PORTB PORTB.F PICC-Lite TRISA TRISA PORTB or RB PORTB. or PORTB or RB Page 9

10 Input/Output Registers How to make RB2 I/O pin a digital output and drive a high value? TRISB.F2 = ; // RB2 set as output pin PORTB.F2 = ; // RB2 drives a high value out How to make RA I/O pin a digital output and drive a low value? TRISA.F = ; // RA set as output pin PORTA.F = ; // RA drives a low value out How to make RA7 I/O pin a digital input and receive a data? TRIS.F = ; // RA7 set as input pin temp = PORT.F ; // Receive from RA7 and assign to temp MCU 2 / page Page

11 Input/Output Registers How to drive entire Port B to high values? TRISB = ; PORTB = xff; How to make RA I/O pin digital inputs and store the received data to temp? TRISA = x ; temp = ; MCU 2 / page Page

12 Workshop mikrocstartup and burn PIC LED flashing void main() { PORTB = ; TRISB = ; while() { PORTB = ~PORTB; Delay_ms(); MCU 2 / page 2 Page 2

13 Workshop 2 -PIC input and output void main() { PORTB = ; TRISB = ; CMCON = x7; /* enable digital I/O for PORTA */ TRISA.F = ; /* set RA as input */ while() { if (PORTA.F) PORTB = xff; else PORTB = ; Delay_ms(); /* set ms delay */ MCU 2 / page 3 Page 3

14 Page 4 Hong Kong Institute of Vocational Education Hong Kong Institute of Vocational Education MCU 2 / page 4 7-segment LED display 8 e c 24 9e 2 value dp g f e d c b a Char

15 Workshop 3 -PIC output to 7-segment display void main() { PORTB = ; TRISB = ; while() { PORTB = x2; /**/ Delay_ms(); PORTB = x9e; /**/ Delay_ms(); PORTB = x24; /*2*/ Delay_ms(); PORTB = xc; /*3*/ Delay_ms(); PORTB = x98; /*4*/ Delay_ms(); PORTB = x48; /*5*/ Delay_ms(); PORTB = x4; /*6*/ Delay_ms(); PORTB = xe; /*7*/ Delay_ms(); PORTB = x; /*8*/ Delay_ms(); PORTB = x8; /*9*/ Delay_ms(); MCU 2 / page 5 Page 5

16 Workshop 4 -PIC interactive I/O void main() { int seg7[] = {x2, x9e, x24, xc, x98, x48, x4, xe, x, x8; /* to 9*/ int index = ; /* for store the current display digit */ PORTB = seg7[]; TRISB = ; CMCON = x7; /* enable digital I/O for PORTA */ TRISA.F = ; TRISA.F = ; while () { if (PORTA.F = = ) /* when RA is pressed */ { index = index + ; if (index == ) index = ; PORTB = seg7[index]; Delay_ms(); MCU 2 / page 6 Page 6

17 Workshop 5 -PIC input decode void main() { int seg7[] = {x2, x9e, x24, xc, x98, x48, x4, xe, x, x8; /* to 9*/ int index = ; /* for store the current display digit */ PORTB = seg7[]; TRISB = ; CMCON = x7; /* enable digital I/O for PORTA */ TRISA.F = ; /* set all 4 inputs for PORTA */ TRISA.F = ; TRISA.F2 = ; TRISA.F3 = ; while () { index = ; if (PORTA.F == ) index = index + ; /* calculate weighting */ if (PORTA.F == ) index = index + 2; if (PORTA.F2 == ) index = index + 4; if (PORTA.F3 == ) index = index + 8; if (index > 9) /* Display to 9 */ index = ; PORTB = seg7[index]; Delay_ms(); MCU 2 / page 7 Page 7

18 Music Frequency Tone do re me fa so la ti Frequency Period / MCU 2 / page 8 Page 8

19 Workshop 6 -PIC output to speaker void main() { int i; PORTB = xff; TRISB = ; CMCON = x7; /* enable digital I/O for PORTA */ TRISA.F = ; TRISA.F = ; TRISA.F2 = ; TRISA.F3 = ; while () { if (PORTA.F == ) { for (i=; i<5; i++) { PORTB.F = ; Delay_us(478); /* do */ PORTB.F = ; Delay_us(478); MCU 2 / page 9 Page 9

20 Interrupt setting void main() { TRISB = x; /* RB as interrupt */ INTCON.GIE = ; /* enable global interrupt */ INTCON.INTE = ; /* enable RB/INT pin interrupt */ while() { void interrupt () { INTCON.INTE = ; /* disable interrupt avoid interrupt again */ if (INTCON.INTF) { /* check interrupt from RB */ INTCON.INTF = ; /* reset interrupt flag */ INTCON.INTE = ; /* enable interrupt again */ MCU 2 / page 2 Page 2

21 Workshop 7 -PIC interrupt void interrupt () { int i, j; INTCON.INTE = ; if (INTCON.INTF) { PORTB = x55; Delay_ms(); PORTB = xaa; Delay_ms(); PORTB = x55; Delay_ms(); PORTB = xaa; Delay_ms(); INTCON.INTF = ; /* reset interrupt flag */ PORTB = ; /* reset pattern */ INTCON.INTE = ; void main() { PORTB = ; TRISB = x; /* RB as interrupt */ INTCON.GIE = ; /* enable global interrupt */ INTCON.INTE = ; /* enable RB/INT pin interrupt */ while() { PORTB = ~PORTB; Delay_ms(); MCU 2 / page 2 Page 2

22 Baud Rate Generator In Asynchronous mode bit Baud Rate Generator controls the baud rate. Given the desired baud rate and Fosc, the nearest integer value for the SPBRG register can be calculated using the following formula: When BRGH =, SYNC =, Desired Baud rate = Fosc/ (64 (X + )) Fosc= 6 MHz, Desired Baud Rate = = 6 / (64(X+ )) X = Calculated Baud Rate = 6 / (64(25 + )) = 965 Error = (Calculated Baud Rate -Desired Baud Rate) / Desired Baud Rate = (965-96)/ 96 =.6% MCU 2 / page 22 Page 22

23 Workshop 8 -Serial Comm. void main() { unsigned char temp; OPTION_REG = xd; /* assign prescalar to TMR */ TMR = ; /* reset timer for start */ INTCON.TIE = ; /* enable timer interrupt */ INTCON.GIE = ; /* enable global interrupt */ SPBRG = 2; /* 5 : baud rate = 4MHz */ /* 2 : baud rate = 48 */ TXSTA.TXEN = ; /* enable usart */ RCSTA.CREN = ; /* enable continuous receive*/ RCSTA.SPEN = ; /* serial port enable */ PIR.RCIF = ; /* clear receive flag */ while () { if (PIR.RCIF) { /* wait char received */ temp = RCREG; /* get char */ TXREG = temp -; /* modify char */ PIR.RCIF = ; /* clear flag */ MCU 2 / page 23 Page 23

24 L293 Motor Driver MCU 2 / page 24 Page 24

25 Workshop 9 -Motor control void main() { PORTB = ; TRISB.F5 = ; /* motor enable */ TRISB.F6 = ; /* motor direction */ TRISB.F7 = ; /* RB6, RB7 =, or, = no motion */ /*, one direction */ /*, other direction */ CMCON = x7; /* enable digital I/O for PORTA */ TRISA.F = ; TRISA.F = ; PORTB.F5 = ; /* enable motor */ while () { if (PORTA.F == ) { /* RA press */ PORTB.F6 = ; PORTB.F7 = ; Delay_ms(); if (PORTA.F == ) { /* RA press */ PORTB.F6 = ; PORTB.F7 = ; Delay_ms(); PORTB.F6 = ; PORTB.F7 = ; MCU 2 / page 25 Page 25

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

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

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet Example Application... Overview of the PIC 16F648A Processor: Part 1 EE 361L Lab 2.1 Last update: August 19, 2011 Abstract: This report is the first of a three part series that discusses the features of the PIC 16F684A processor,

More information

EE 361L Digital Systems and Computer Design Laboratory

EE 361L Digital Systems and Computer Design Laboratory EE 361L Digital Systems and Computer Design Laboratory University of Hawaii Department of Electrical Engineering by Galen Sasaki and Ashok Balusubramaniam Quick Overview of PIC16F8X Version 1.0 Date: 9/4/01

More information

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

1 Introduction to Computers and Computer Terminology Programs Memory Processor Data Sheet... 4 Overview of the PIC 16F648A Processor: Part 1 EE 361L Lab 2.1 Last update: August 1, 2016 Abstract: This report is the first of a three part series that discusses the features of the PIC 16F648A processor,

More information

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

Table of Contents COMPANY PROFILE 1-1 SECTION 1. INTRODUCTION 1-1 COMPANY PROFILE 1-1 SECTION 1. INTRODUCTION 1-1 Introduction... 1-2 Manual Objective... 1-3 Device Structure... 1-4 Development Support... 1-6 Device Varieties... 1-7 Style and Symbol Conventions... 1-12

More information

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

PIC16F87X. 28/40-pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features: PIC16F7X 2/40-pin -Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: PIC16F7 PIC16F74 PIC16F76 PIC16F77 Microcontroller Core Features: High-performance RISC CPU Only 5 single word instructions

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

EET203 MICROCONTROLLER SYSTEMS DESIGN Serial Port Interfacing

EET203 MICROCONTROLLER SYSTEMS DESIGN Serial Port Interfacing EET203 MICROCONTROLLER SYSTEMS DESIGN Serial Port Interfacing Objectives Explain serial communication protocol Describe data transfer rate and bps rate Describe the main registers used by serial communication

More information

n/a PIC12F629-I/P (RC) n/a PIC12F629-I/SN (RC) n/a PIC12F675-I/P (RC) n/a PIC12F675-I/SN MICROCONTROLLER (RC)

n/a PIC12F629-I/P (RC) n/a PIC12F629-I/SN (RC) n/a PIC12F675-I/P (RC) n/a PIC12F675-I/SN MICROCONTROLLER (RC) DATA SHEET PIC Microcontrollers Order code Manufacturer code Description 73-36 n/a PICF69-I/P (RC) 73-364 n/a PICF69-I/SN (RC) 73-34 n/a PICF675-I/P (RC) 73-36 n/a PICF675-I/SN MICROCONTROLLER (RC) PIC

More information

Dept. of Computer Engineering Final Exam, First Semester: 2016/2017

Dept. of Computer Engineering Final Exam, First Semester: 2016/2017 Philadelphia University Faculty of Engineering Course Title: Embedded Systems (630414) Instructor: Eng. Anis Nazer Dept. of Computer Engineering Final Exam, First Semester: 2016/2017 Student Name: Student

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

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

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

PIC-P67J60 development board Users Manual

PIC-P67J60 development board Users Manual PIC-P67J60 development board Users Manual Rev.A, July 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved INTRODUCTION: If you want to build your own Internet enabled device this is the board for you.

More information

Outlines. PIC Programming in C and Assembly. Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University

Outlines. PIC Programming in C and Assembly. Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University PIC ming in C and Assembly Outlines Microprocessor vs. MicroController PIC in depth PIC ming Assembly ming Krerk Piromsopa, Ph.D. Department of Computer Engineering Chulalongkorn University Embedded C

More information

Section 4. Architecture

Section 4. Architecture M Section 4. Architecture HIGHLIGHTS This section of the manual contains the following major topics: 4. Introduction...4-2 4.2 Clocking Scheme/Instruction Cycle...4-5 4.3 Instruction Flow/Pipelining...4-6

More information

Future PICmicro Microcontroller Products Guide 2000

Future PICmicro Microcontroller Products Guide 2000 Future PICmicro Microcontroller Products Guide 2000 2000 Microchip Technology Inc. DS00168C DATA SHEET MARKINGS Microchip uses various data sheet markings to designate each document phase as it relates

More information

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor

MicroProcessor. MicroProcessor. MicroProcessor. MicroProcessor 1 2 A microprocessor is a single, very-large-scale-integration (VLSI) chip that contains many digital circuits that perform arithmetic, logic, communication, and control functions. When a microprocessor

More information

PIC 16F84A programming (II)

PIC 16F84A programming (II) Lecture (05) PIC 16F84A programming (II) Dr. Ahmed M. ElShafee ١ Introduction to 16F84 ٣ PIC16F84 belongs to a class of 8-bit microcontrollers of RISC architecture. Program memory (FLASH) EEPROM RAM PORTA

More information

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

Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad Embedded Systems Lab Lab 1 Introduction to Microcontrollers Eng. Dalia A. Awad Objectives To be familiar with microcontrollers, PIC18F4550 microcontroller. Tools PIC18F4550 Microcontroller, MPLAB software,

More information

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

NH-67, TRICHY MAIN ROAD, PULIYUR, C.F , KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL NH-67, TRICHY MAIN ROAD, PULIYUR, C.F. 639 114, KARUR DT. DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING COURSE MATERIAL Subject Name : Embedded System Class/Sem : BE (ECE) / VII Subject Code

More information

Embedded System Design

Embedded System Design ĐẠI HỌC QUỐC GIA TP.HỒ CHÍ MINH TRƯỜNG ĐẠI HỌC BÁCH KHOA KHOA ĐIỆN-ĐIỆN TỬ BỘ MÔN KỸ THUẬT ĐIỆN TỬ Embedded System Design : Microcontroller 1. Introduction to PIC microcontroller 2. PIC16F84 3. PIC16F877

More information

JX-12. JX-12 : PIC12F6xx/PIC16F630/676 Project board 1

JX-12. JX-12 : PIC12F6xx/PIC16F630/676 Project board 1 JX- PICF9/7, PICF0/7 Project board On-Board PICF7, can use with PICF0/7.00 x. Prototype area with 94 pads Downloading of program via PC parallel port Selection of RUN/PROG mode by switch Built in RS- interface

More information

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. Advance Information DS39564A

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. Advance Information DS39564A Data Sheet High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D 2001 Microchip Technology Inc. Advance Information DS39564A te the following details of the code protection feature on PICmicro

More information

Embedded Systems Programming and Architectures

Embedded Systems Programming and Architectures Embedded Systems Programming and Architectures Lecture No 10 : Data acquisition and data transfer Dr John Kalomiros Assis. Professor Department of Post Graduate studies in Communications and Informatics

More information

University of Hawaii EE 361L MPLab Quick Tutorial and Project 2.1 Last updated September 1, 2011

University of Hawaii EE 361L MPLab Quick Tutorial and Project 2.1 Last updated September 1, 2011 University of Hawaii EE 361L MPLab Quick Tutorial and Project 2.1 Last updated September 1, 2011 This is a quick tutorial of programming the PIC 16F684A processor using the MPLab Integrated Development

More information

which means that writing to a port implies that the port pins are first read, then this value is modified and then written to the port data latch.

which means that writing to a port implies that the port pins are first read, then this value is modified and then written to the port data latch. Introduction to microprocessors Feisal Mohammed 3rd January 2001 Additional features 1 Input/Output Ports One of the features that differentiates a microcontroller from a microprocessor is the presence

More information

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. DS39564B

PIC18FXX2 Data Sheet. High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D Microchip Technology Inc. DS39564B M PIC18FXX2 Data Sheet High Performance, Enhanced FLASH Microcontrollers with 10-Bit A/D 2002 Microchip Technology Inc. DS39564B te the following details of the code protection feature on PICmicro MCUs.

More information

Development Hardware. Target Board and In-circuit Debugger

Development Hardware. Target Board and In-circuit Debugger Development Hardware Target Board and In-circuit Debugger Development Hardware :: Slide 1 of 32 Microchip PICDEM 2 Plus Target Board Development Hardware :: Slide 2 of 32 PICDEM 2 Plus Demo Board Development

More information

AX-12. PIC12F675 microcontroller Activity board

AX-12. PIC12F675 microcontroller Activity board AX- PICF67 microcontroller Activity board Optional of AX- board DC adaptor 9-V Small stepper motor Microcontroller unit features : Microchip s 8-pin PIC microocntroller PICF67 on-board KWord Program memory

More information

ELCT 912: Advanced Embedded Systems

ELCT 912: Advanced Embedded Systems ELCT 912: Advanced Embedded Systems Lecture 10: Applications for Programming PIC18 in C Dr. Mohamed Abd El Ghany, Department of Electronics and Electrical Engineering Programming the PIC18 to transfer

More information

EE6008-Microcontroller Based System Design Department Of EEE/ DCE

EE6008-Microcontroller Based System Design Department Of EEE/ DCE UNIT- II INTERRUPTS AND TIMERS PART A 1. What are the interrupts available in PIC? (Jan 14) Interrupt Source Enabled by Completion Status External interrupt from INT INTE = 1 INTF = 1 TMR0 interrupt T0IE

More information

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27)

Lesson 14. Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27) Lesson 14 Title of the Experiment: Introduction to Microcontroller (Activity number of the GCE Advanced Level practical Guide 27) Name and affiliation of the author: N W K Jayatissa Department of Physics,

More information

MOD-ZIGBEE-PIR sensor development board USER S MANUAL All boards produced by Olimex LTD are ROHS compliant

MOD-ZIGBEE-PIR sensor development board USER S MANUAL All boards produced by Olimex LTD are ROHS compliant sensor development board USER S MANUAL All boards produced by Olimex LTD are ROHS compliant Revision B, Januray 2013 Designed by OLIMEX Ltd, 2011 Disclaimer: 2012 Olimex Ltd. Olimex, logo and combinations

More information

Capacitive Touch Remote Control Reference Design User s Guide

Capacitive Touch Remote Control Reference Design User s Guide Capacitive Touch Remote Control Reference Design User s Guide Microchip Korea V0.8-page 1 Capacitive Touch Remote Control Reference Design User s Guide Table of Contents Chapter 1. Introduction 1.1 Introduction

More information

PIC-LCD-3310 development board Users Manual

PIC-LCD-3310 development board Users Manual PIC-LCD-3310 development board Users Manual Rev.A, July 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved INTRODUCTION: PIC-LCD-3310 is development board with PIC18F67J50, NOKIA 3310 BW 84x48 pixels

More information

Embedded Systems Module. 6EJ505. C Tutorial 3: using the ICD3 rev tjw

Embedded Systems Module. 6EJ505. C Tutorial 3: using the ICD3 rev tjw Embedded Systems Module. 6EJ505 C Tutorial 3: using the ICD3 rev. 27.9.16 tjw Images are reproduced from Reference 1. Microchip permits the use of its images for educational purposes. Main Learning Points

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

Target Board PIC877-TB - Reference Manual

Target Board PIC877-TB - Reference Manual Target Board PIC877-TB - Reference Manual 40-100-2 Target Board PIC877-TB Reference Manual 40-100-2 Feedback Feedback Instruments Ltd, Park Road, Crowborough, E. Sussex, TN6 2QR, UK. Telephone: +44 (0)

More information

ME 515 Mechatronics. A microprocessor

ME 515 Mechatronics. A microprocessor ME 515 Mechatronics Microcontroller Based Control of Mechanical Systems Asanga Ratnaweera Department of Faculty of Engineering University of Peradeniya Tel: 081239 (3627) Email: asangar@pdn.ac.lk A microprocessor

More information

PIC16C52. EPROM-Based 8-Bit CMOS Microcontroller PIC16C52. Pin Diagrams. Feature Highlights. High-Performance RISC CPU. Peripheral Features

PIC16C52. EPROM-Based 8-Bit CMOS Microcontroller PIC16C52. Pin Diagrams. Feature Highlights. High-Performance RISC CPU. Peripheral Features This document was created with FrameMaker 404 PIC16C52 EPROM-Based 8-Bit CMOS Microcontroller Feature Highlights Pin Diagrams Program Memory Data Memory I/O PDIP, SOIC 384 25 12 High-Performance RISC CPU

More information

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform.

Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform. Introduction to Microcontroller Apps for Amateur Radio Projects Using the HamStack Platform www.sierraradio.net www.hamstack.com Topics Introduction Hardware options Software development HamStack project

More information

DERTS Design Requirements (1): Microcontroller Architecture & Programming

DERTS Design Requirements (1): Microcontroller Architecture & Programming Lecture (5) DERTS Design Requirements (1): Microcontroller Architecture & Programming Prof. Kasim M. Al-Aubidy Philadelphia University 1 Lecture Outline: Features of microcomputers and microcontrollers.

More information

PIC-I/O Multifunction I/O Controller

PIC-I/O Multifunction I/O Controller J R KERR AUTOMATION ENGINEERING PIC-I/O Multifunction I/O Controller The PIC-I/O multifunction I/O controller is compatible with the PIC-SERVO and PIC-STEP motor control modules and provides the following

More information

CHAPTER 1 - World of microcontrollers

CHAPTER 1 - World of microcontrollers CHAPTER 1 - World of microcontrollers One Time Programmable ROM (OTP ROM) One time programmable ROM enables you to download a program into it, but, as its name states, one time only. If an error is detected

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

ELCT706 MicroLab Session #4 UART Usage for Bluetooth connection PC - PIC

ELCT706 MicroLab Session #4 UART Usage for Bluetooth connection PC - PIC ELCT706 MicroLab Session #4 UART Usage for Bluetooth connection PC - PIC USART in PIC16F877A Universal Synchronous/Asynchronous Receiver Transmitter - Can receive and transmit - Can be synchronous or Asynchronous

More information

ELCT706 MicroLab Session #4 UART Usage for Bluetooth connection PC - PIC

ELCT706 MicroLab Session #4 UART Usage for Bluetooth connection PC - PIC ELCT706 MicroLab Session #4 UART Usage for Bluetooth connection PC - PIC USART in PIC16F877A Universal Synchronous/Asynchronous Receiver Transmitter - Can receive and transmit - Can be synchronous or Asynchronous

More information

Explanation of PIC 16F84A processor data sheet Part 1: overview of the basics

Explanation of PIC 16F84A processor data sheet Part 1: overview of the basics Explanation of PIC 16F84A processor data sheet Part 1: overview of the basics This report is the first of a three part series that discusses the features of the PIC 16F94A processor. The reports will refer

More information

Speed Control of a DC Motor using Digital Control

Speed Control of a DC Motor using Digital Control Speed Control of a DC Motor using Digital Control The scope of this project is threefold. The first part of the project is to control an LCD display and use it as part of a digital tachometer. Secondly,

More information

ME 6405 Introduction to Mechatronics

ME 6405 Introduction to Mechatronics ME 6405 Introduction to Mechatronics Fall 2006 Instructor: Professor Charles Ume Microchip PIC Manufacturer Information: Company: Website: http://www.microchip.com Reasons for success: Became the hobbyist's

More information

Introduction to Arduino. Wilson Wingston Sharon

Introduction to Arduino. Wilson Wingston Sharon Introduction to Arduino Wilson Wingston Sharon cto@workshopindia.com Physical computing Developing solutions that implement a software to interact with elements in the physical universe. 1. Sensors convert

More information

Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel. I/O Pins. 10-bit A/D (ch) EEPROM

Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel. I/O Pins. 10-bit A/D (ch) EEPROM Enhanced FLASH Microcontrollers with Single Phase Induction Motor Control Kernel High Performance RISC CPU: Linear program memory addressing to 24 Kbytes Linear data memory addressing to 1.4 Kbytes 20

More information

Section 11. Timer0. Timer0 HIGHLIGHTS. This section of the manual contains the following major topics:

Section 11. Timer0. Timer0 HIGHLIGHTS. This section of the manual contains the following major topics: M 11 Section 11. HIGHLIGHTS This section of the manual contains the following major topics: 11.1 Introduction...11-2 11.2 Control Register...11-3 11.3 Operation...11-4 11.4 TMR0 Interrupt...11-5 11.5 Using

More information

Lecture (02) PIC16F84 (I)

Lecture (02) PIC16F84 (I) Lecture (02) PIC16F84 (I) By: Dr. Ahmed ElShafee ١ Review of Memory Technologies The PIC 16 Series PIC 16F84A The PIC 16F84A Memory The Oscillator Instruction Cycle Power up and Reset Parallel ports Technical

More information

PIC16F5X Data Sheet. Flash-Based, 8-Bit CMOS Microcontroller Series

PIC16F5X Data Sheet. Flash-Based, 8-Bit CMOS Microcontroller Series Data Sheet Flash-Based, 8-Bit CMOS Microcontroller Series Note the following details of the code protection feature on Microchip devices: Microchip products meet the specification contained in their particular

More information

Chapter 10 Sections 1,2,9,10 Dr. Iyad Jafar

Chapter 10 Sections 1,2,9,10 Dr. Iyad Jafar Starting with Serial Chapter 10 Sections 1,2,9,10 Dr. Iyad Jafar Outline Introduction Synchronous Serial Communication Asynchronous Serial Communication Physical Limitations Overview of PIC 16 Series The

More information

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

Reprinted by permission of T&L Publications Inc. Copyright 2001 USB MICROCONTROLLERS FOR THE MASSES Reprinted by permission of T&L Publications Inc. Copyright 2001 USB MICROCONTROLLERS FOR THE MASSES By Don L. Powrie Microcontroller, Flash programmer, and high speed USB-to-PC interface all in one tidy

More information

University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory

University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory University of Jordan Faculty of Engineering and Technology Department of Computer Engineering Embedded Systems Laboratory 0907334 6 Experiment 6:Timers Objectives To become familiar with hardware timing

More information

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

ET-PIC 24 WEB-V1. o Central Processing Unit (CPU) o System. o nanowatt Power Managed Modes. o Analog Features ET-PIC 24 WEB-V1 ET-PIC 24 WEB-V1 is PIC Board Microcontroller from Microchip that uses 16 Bit No.PIC24FJ128GA008 Microcontroller for processing data and develops board. The remarkable specification of

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

PIC18CXX2. High Performance Microcontrollers with 10-bit A/D. High Performance RISC CPU: Pin Diagrams PIC18C4X2. Analog Features: Peripheral Features:

PIC18CXX2. High Performance Microcontrollers with 10-bit A/D. High Performance RISC CPU: Pin Diagrams PIC18C4X2. Analog Features: Peripheral Features: High Performance Microcontrollers with 10-bit A/D High Performance RISC CPU: C compiler optimized architecture/instruction set - Source code compatible with the PIC16CXX instruction set Linear program

More information

PIC16C84. 8-bit CMOS EEPROM Microcontroller PIC16C84. Pin Diagram. High Performance RISC CPU Features: CMOS Technology: Peripheral Features:

PIC16C84. 8-bit CMOS EEPROM Microcontroller PIC16C84. Pin Diagram. High Performance RISC CPU Features: CMOS Technology: Peripheral Features: 8-bit CMOS EEPROM Microcontroller High Performance RISC CPU Features: Only 35 single word instructions to learn All instructions single cycle (400 ns @ 10 MHz) except for program branches which are two-cycle

More information

#pragma config Usage. #pragma config Settings. #pragma config <setting>=<named value>

#pragma config Usage. #pragma config Settings. #pragma config <setting>=<named value> 1 z 6 27.3.2015 17:21 #pragma config Usage #pragma config = // Oscillator Selection bits: 11XX External RC oscillator, CLKO function on RA6 // Fail-Safe Clock Monitor Enable bit:

More information

PIC-IO development board User's Manual

PIC-IO development board User's Manual PIC-IO development board User's Manual Rev.C, October 0 Copyright(c) 0, OLIMEX Ltd, All rights reserved All boards produced by Olimex are ROHS compliant INTRODUCTION: PIC-IO board was designed as simple

More information

Breeze Board. Type A. User Manual.

Breeze Board. Type A. User Manual. Breeze Board Type A User Manual www.dizzy.co.za Contents Introduction... 3 Overview Top... 4 Overview Bottom... 5 Getting Started (Amicus Compiler)... 6 Power Circuitry... 7 USB... 8 Microcontroller...

More information

Section 28. WDT and SLEEP Mode

Section 28. WDT and SLEEP Mode Section 28. WDT and SLEEP Mode HIGHLIGHTS This section of the manual contains the following major topics: 28 28.1 Introduction... 28-2 28.2 Control Register... 28-3 28.3 Watchdog Timer (WDT) Operation...

More information

Laboratory 9. Programming a PIC Microcontroller - Part I

Laboratory 9. Programming a PIC Microcontroller - Part I Laboratory 9 Programming a PIC Microcontroller - Part I Required Components: 1 PIC16F84 (4MHz) or PIC16F84A (20MHz) or compatible (e.g., PIC16F88) microcontroller 1 4MHz microprocessor crystal (20 pf),

More information

PIC16C432 OTP 8-Bit CMOS MCU with LIN bus Transceiver

PIC16C432 OTP 8-Bit CMOS MCU with LIN bus Transceiver OTP 8-Bit CMOS MCU with LIN bus Transceiver Devices included in this Data Sheet: High Performance RISC CPU: Only 35 instructions to learn All single cycle instructions (200 ns), except for program branches

More information

PIC16F5X Data Sheet. Flash-Based, 8-Bit CMOS Microcontroller Series Microchip Technology Inc. DS41213D

PIC16F5X Data Sheet. Flash-Based, 8-Bit CMOS Microcontroller Series Microchip Technology Inc. DS41213D Data Sheet Flash-Based, 8-Bit CMOS Microcontroller Series 2007 Microchip Technology Inc. DS41213D Note the following details of the code protection feature on Microchip devices: Microchip products meet

More information

PIC18CXX2 Data Sheet. High Performance Microcontrollers with 10-bit A/D Microchip Technology Inc. DS39026C

PIC18CXX2 Data Sheet. High Performance Microcontrollers with 10-bit A/D Microchip Technology Inc. DS39026C Data Sheet High Performance Microcontrollers with 10-bit A/D 2001 Microchip Technology Inc. DS39026C All rights reserved. Copyright 2001, Microchip Technology Incorporated, USA. Information contained in

More information

PIC16F5X Data Sheet. Flash-Based, 8-Bit CMOS Microcontrollers Microchip Technology Inc. Preliminary DS41213B

PIC16F5X Data Sheet. Flash-Based, 8-Bit CMOS Microcontrollers Microchip Technology Inc. Preliminary DS41213B Data Sheet Flash-Based, 8-Bit CMOS Microcontrollers 2004 Microchip Technology Inc. Preliminary DS41213B Note the following details of the code protection feature on Microchip devices: Microchip products

More information

PIC-MAXI-WEB development board Users Manual

PIC-MAXI-WEB development board Users Manual PIC-MAXI-WEB development board Users Manual Rev.B, February 2009 Copyright(c) 2009, OLIMEX Ltd, All rights reserved INTRODUCTION: This board allows you to easily develop Ethernet connectivity applications.

More information

PIC16C Pin, 8-Bit CMOS Microcontroller. Device included in this Data Sheet: Special Microcontroller Features: High-Performance RISC CPU:

PIC16C Pin, 8-Bit CMOS Microcontroller. Device included in this Data Sheet: Special Microcontroller Features: High-Performance RISC CPU: 14-Pin, 8-Bit CMOS Microcontroller Device included in this Data Sheet: PIC16C505 High-Performance RISC CPU: Only 33 instructions to learn Operating speed: - DC - 20 MHz clock input - DC - 200 ns instruction

More information

Breeze Board. Type B. User Manual.

Breeze Board. Type B. User Manual. Breeze Board Type B User Manual www.dizzy.co.za Contents Introduction... 3 Overview Top... 4 Overview Bottom... 5 Getting Started (USB Bootloader)... 6 Power Circuitry... 7 USB... 8 Microcontroller...

More information

M PIC16F84A. 18-pinEnhanced FLASH/EEPROM 8-Bit Microcontroller. High Performance RISC CPU Features: Pin Diagrams. Peripheral Features:

M PIC16F84A. 18-pinEnhanced FLASH/EEPROM 8-Bit Microcontroller. High Performance RISC CPU Features: Pin Diagrams. Peripheral Features: M PIC6F84A 8-pinEnhanced FLASH/EEPROM 8-Bit Microcontroller High Performance RISC CPU Features: Pin Diagrams Only 35 single word instructions to learn All instructions single-cycle except for program branches

More information

Outline. Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware:

Outline. Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware: HCMIU - DEE Subject: ERTS RISC MCU Architecture PIC16F877 Hardware 1 Outline Micriprocessor vs Microcontroller Introduction to PIC MCU PIC16F877 Hardware: Program Memory Data memory organization: banks,

More information

THE LAB WORKSHOP MODELS ON MICROCHIP s PIC MICROCONTROLLERS IN EET PROGRAM

THE LAB WORKSHOP MODELS ON MICROCHIP s PIC MICROCONTROLLERS IN EET PROGRAM Session: FC2-2 THE LAB WORKSHOP MODELS ON MICROCHIP s PIC MICROCONTROLLERS IN EET PROGRAM Muhammad M. Baig, Rafiqul Islam Dept. of Engineering Technology Northwestern State University Natchitoches, LA

More information

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad

Lecture 14. Ali Karimpour Associate Professor Ferdowsi University of Mashhad Lecture 14 AUTOMATIC CONTROL SYSTEMS Ali Karimpour Associate Professor Ferdowsi University of Mashhad Lecture 4 The AVR Microcontroller Introduction to AVR CISC (Complex Instruction Set Computer) Put as

More information

EEPROM Memory Programming Specification

EEPROM Memory Programming Specification EEPROM Memory Programming Specification This document includes the programming specifications for the following devices: PIC16F627 PIC16F628 PIC16LF627 PIC16LF628 1.0 PROGRAMMING THE PIC16F62X The PIC16F62X

More information

PIC18CXX2. High-Performance Microcontrollers with 10-Bit A/D * * High Performance RISC CPU: Pin Diagrams PIC18C4X2.

PIC18CXX2. High-Performance Microcontrollers with 10-Bit A/D * * High Performance RISC CPU: Pin Diagrams PIC18C4X2. High-Performance Microcontrollers with 10-Bit A/D * * * * High Performance RISC CPU: C-compiler optimized architecture/instruction set - Source code compatible with the PIC16CXX instruction set Linear

More information

EXPERIMENT 5. Oven Temperature Control Using Open loop and Closed Loop Methods

EXPERIMENT 5. Oven Temperature Control Using Open loop and Closed Loop Methods 1 2 3 4 5 6 7 8 9 10 11 12 13 14 VDD VEE RS RW E D0 D1 D2 D3 D4 D5 D6 D7 68% EXPERIMENT 5 Oven Temperature Control Using Open loop and Closed Loop Methods Aim: To learn how to use the interrupt, ADC and

More information

Section 21. Addressable USART

Section 21. Addressable USART 21 Section 21. Addressable USART Addressable USART HIGHLIGHTS This section of the manual contains the following major topics: 21.1 Introduction... 21-2 21.2 Control Registers... 21-3 21.3 USART Baud Rate

More information

PIC-MICRO-WEB development board User's manual

PIC-MICRO-WEB development board User's manual PIC-MICRO-WEB development board User's manual Rev. E, January 2014 Copyright(c) 2011, OLIMEX Ltd, All rights reserved Page 1 INTRODUCTION: This small and compact board will give you the opportunity to

More information

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd.

RFID: Read and Display V2010. Version 1.1. Sept Cytron Technologies Sdn. Bhd. PR8-B RFID: Read and Display V2010 Version 1.1 Sept 2010 Cytron Technologies Sdn. Bhd. Information contained in this publication regarding device applications and the like is intended through suggestion

More information

PIC16F8X 18-pin Flash/EEPROM 8-Bit Microcontrollers

PIC16F8X 18-pin Flash/EEPROM 8-Bit Microcontrollers 18-pin Flash/EEPROM 8-Bit Microcontrollers Devices Included in this Data Sheet: PIC16F83 PIC16F84 PIC16CR83 PIC16CR84 Extended voltage range devices available (PIC16LF8X, PIC16LCR8X) High Performance RISC

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

PIC16F8X. 8-Bit CMOS Flash/EEPROM Microcontrollers PIC16F8X PIC16CR8X. Pin Diagram. Devices Included in this Data Sheet:

PIC16F8X. 8-Bit CMOS Flash/EEPROM Microcontrollers PIC16F8X PIC16CR8X. Pin Diagram. Devices Included in this Data Sheet: This document was created with FrameMaker 404 PIC16F8X 8-Bit CMOS Flash/EEPROM Microcontrollers Devices Included in this Data Sheet: PIC16F83 PIC16CR83 PIC16F84 PIC16CR84 Extended voltage range devices

More information

PICmicro MCU Multiprogrammer EB Technical datasheet

PICmicro MCU Multiprogrammer EB Technical datasheet PICmicro MCU Multiprogrammer EB006-00-5 Technical datasheet Contents 1. About this document...2 2. General information...3 3. Board layout...5 4. Testing this product...6 5. Circuit description...9 6.

More information

HI-TIDE Release Notes for Version 3.13

HI-TIDE Release Notes for Version 3.13 HI-TIDE Release Notes for Version 3.13 Copyright (C) 2007 HI-TECH Software. All Rights Reserved. Printed in Australia. Produced on: September 24, 2007 HI-TECH Software Pty. Ltd. ACN 002 724 549 45 Colebard

More information

Introduction to Mechatronics and the Mechatronic Design Center Microchip Technology Incorporated. All Rights Reserved. 1

Introduction to Mechatronics and the Mechatronic Design Center Microchip Technology Incorporated. All Rights Reserved. 1 Introduction to Mechatronics and the Mechatronic Design Center 2005 Microchip Technology Incorporated. All Rights Reserved. 1 What is Mechatronics? Implementing electronic controls in a mechanical system

More information

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

Mechatronics and Measurement. Lecturer:Dung-An Wang Lecture 6 Mechatronics and Measurement Lecturer:Dung-An Wang Lecture 6 Lecture outline Reading:Ch7 of text Today s lecture: Microcontroller 2 7.1 MICROPROCESSORS Hardware solution: consists of a selection of specific

More information

Microchip 18F4550 Interface, Signal conditioning, USB, USB- RS-232, 16x2 LCD Interface

Microchip 18F4550 Interface, Signal conditioning, USB, USB- RS-232, 16x2 LCD Interface Emtron Technologies Pvt. Ltd. Flat No-101, B3 Wing, 1 st Floor, Divyam Hights, Gilbert Hill, Shreenath Nagar, Andheri West, Mumbai-58 +91-8080181911 E-mail: emtron.tech@gmail.com, www.emtrontech.in Microchip

More information

PICmicro MCU multiprogrammer

PICmicro MCU multiprogrammer PICmicro MCU multiprogrammer www.matrixtsl.com EB006V9 Contents About this document General information Board layout Circuit description Protective cover PICmicro microcontroller pin out details Bus connections

More information

Laboratory Exercise 7 - Extended I/O & Parallel Processing

Laboratory Exercise 7 - Extended I/O & Parallel Processing Laboratory Exercise 7 - Extended I/O & Parallel Processing The purpose of this lab is to make an LED blink first by using the extended I/O function of the Microcontroller, and then by parallel processing

More information

Laboratory: Introduction to Mechatronics

Laboratory: Introduction to Mechatronics Laboratory: Introduction to Mechatronics Instructor TA: Edgar Martinez Soberanes (eem370@mail.usask.ca) 2017-02-9 Lab 3. LED Control and Interruptions. Lab Sessions Lab 1. Introduction to the equipment

More information

CENG-336 Introduction to Embedded Systems Development. Timers

CENG-336 Introduction to Embedded Systems Development. Timers CENG-336 Introduction to Embedded Systems Development Timers Definitions A counter counts (possibly asynchronous) input pulses from an external signal A timer counts pulses of a fixed, known frequency

More information

PIC16C Pin, 8-Bit CMOS Microcontroller. Device included in this Data Sheet: Special Microcontroller Features: High-Performance RISC CPU:

PIC16C Pin, 8-Bit CMOS Microcontroller. Device included in this Data Sheet: Special Microcontroller Features: High-Performance RISC CPU: 14-Pin, 8-Bit CMOS Microcontroller Device included in this Data Sheet: PIC16C505 High-Performance RISC CPU: Only 33 instructions to learn Operating speed: - DC - 20 MHz clock input - DC - 200 ns instruction

More information

Section 30. In-Circuit Serial Programming (ICSP )

Section 30. In-Circuit Serial Programming (ICSP ) Section 30. In-Circuit Serial Programming (ICSP ) HIGHLIGHTS This section of the manual contains the following major topics: 30. Introduction... 30-2 30.2 Entering In-Circuit Serial Programming Mode...

More information

Hardware Interfacing. EE25M Introduction to microprocessors. Part V. 15 Interfacing methods. original author: Feisal Mohammed

Hardware Interfacing. EE25M Introduction to microprocessors. Part V. 15 Interfacing methods. original author: Feisal Mohammed EE25M Introduction to microprocessors original author: Feisal Mohammed updated: 18th February 2002 CLR Part V Hardware Interfacing There are several features of computers/microcontrollers which have not

More information