ĐẠ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

Size: px
Start display at page:

Download "ĐẠ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"

Transcription

1 ĐẠ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 Chapter 7: Peripherals for embedded systems 7.1 Digital parallel input / output 7.2 LCD interfacing 7.3 Analog input /output 7.4 Serial communication Bộ Môn Kỹ Thuật Điện Tử - ĐHBK Analog Input Allows an external voltage to be converted to digital form, stored and processed This type of input occurs in data loggers, control systems, digital audio and signal processors The PIC microcontrollers is designed specifically for highspeed analog signal processing 2 1

2 Analog input with PIC 16 Series Device Pins Features 16F873A 16F876A 16F874A 16F877A 28 3 parallel ports, 3 counter/timers, 2 capture/compare/pwm, 2 serial, 5 10-bit ADC, 2 comparators 40 5 parallel ports, 3 counter/timers, 2 capture/compare/pwm, 2 serial, 8 10-bit ADC, 2 comparators 3 The PIC16F87XA ADC module Functional blocks for the A/D converter in medium-end PIC microcontrollers. A/D, successive approximation analog-to-digital converter; SHA, sample-and-hold 4 amplifier; AMUX, analog multiplexer. 2

3 Analog Setup The PIC 16F877 has eight analog inputs: RA0, RA1, RA2, RA3, RA5, RE0, RE1, RE2 being renamed AN0 to AN U1 OSC1/CLKIN RB0/INT OSC2/CLKOUT RB1 MCLR/Vpp/THV RB2 RB3/PGM RA0/AN0 RB4 RA1/AN1 RB5 RA2/AN2/VREF- RB6/PGC RA3/AN3/VREF+ RB7/PGD RA4/T0CKI RA5/AN4/SS RC0/T1OSO/T1CKI RC1/T1OSI/CCP2 RE0/AN5/RD RC2/CCP1 RE1/AN6/WR RC3/SCK/SCL RE2/AN7/CS RC4/SDI/SDA RC5/SDO RC6/TX/CK RC7/RX/DT PIC16F877 RD0/PSP0 RD1/PSP1 RD2/PSP2 RD3/PSP3 RD4/PSP4 RD5/PSP5 RD6/PSP6 RD7/PSP CCS C Analog Input Functions 6 3

4 CCS C Analog Input Functions 7 CCS C Analog Input Functions 8 4

5 9 Example RV1 1k U1 OSC1/CLKIN RB0/INT OSC2/CLKOUT RB1 MCLR/Vpp/THV RB2 RB3/PGM RA0/AN0 RB4 RA1/AN1 RB5 RA2/AN2/VREF- RB6/PGC RA3/AN3/VREF+ RB7/PGD RA4/T0CKI RA5/AN4/SS RC0/T1OSO/T1CKI RC1/T1OSI/CCP2 RE0/AN5/RD RC2/CCP1 RE1/AN6/WR RC3/SCK/SCL RE2/AN7/CS RC4/SDI/SDA RC5/SDO RC6/TX/CK RC7/RX/DT LCD1 VDD RD0/PSP0 RD1/PSP1 RD2/PSP2 RD3/PSP3 RD4/PSP4 RD5/PSP5 RD6/PSP6 RD7/PSP RXD VSS MILFORD-2X16-BKP PIC16F

6 Example 11 RV5(1) V= Voltage measurement R3 LCD1 VDD RV5 120R R1 680R MILFORD-2X16-BKP RXD VSS 1k RV6 1k RV4 1k RV7 1k RV3 1k RV8 1k RV1 1k D1 RV2 1k R2 4k7 BZX79C2V7 U1(RA3/AN3/VREF+) V= U1 OSC1/CLKIN RB0/INT OSC2/CLKOUT RB1 MCLR/Vpp/THV RB2 RB3/PGM RA0/AN0 RB4 RA1/AN1 RB5 RA2/AN2/VREF- RB6/PGC RA3/AN3/VREF+ RB7/PGD RA4/T0CKI RA5/AN4/SS RC0/T1OSO/T1CKI RC1/T1OSI/CCP2 RE0/AN5/RD RC2/CCP1 RE1/AN6/WR RC3/SCK/SCL RE2/AN7/CS RC4/SDI/SDA RC5/SDO RC6/TX/CK RC7/RX/DT PIC16F877 RD0/PSP0 RD1/PSP1 RD2/PSP2 RD3/PSP3 RD4/PSP4 RD5/PSP5 RD6/PSP6 RD7/PSP

7 Voltage measurement Analog Output Basic digital to analogue converter a) general DAC hardware b) output voltage 14 7

8 DAC 15 Typical application DAC Circuit V o 10V A1 2 A2 A

9 Ex: DAC0808 & Serial DAC 17 Waveform Generator 18 9

10 Waveform Generator Source Code (1/3) 19 Waveform Generator Source Code (2/3) 20 10

11 Waveform Generator Source Code (3/3) 21 Class Assignment Design a system to read temperature data from the sensor LM35, and show the result on LCD LCD1 LM016L VSS VDD VEE RS RW E D0 D1 D2 D3 D4 D5 D6 D

12 Serial communication Serial transmission of binary data consists of sending the bits of a word one by one in a consecutive form and using the same pins. Parallel vs. Serial IO 23 simplex vs half duplex vs full duplex 24 12

13 Serial Communication 1.PIC16 USART Serial Link 2.PIC16 SPI Serial Bus 3.I2C Serial Bus 25 USART The universal synchronous/asynchronous receive transmit (USART) device is typically used in asynchronous mode to implement off board, one to one connections. The term asynchronous means no separate clock signal is needed to time the data reception, so only a data send, data receive, and ground wires are needed. It is quick and simple to implement if a limited data bandwidth is acceptable. USART Operation 26 13

14 RS232 driver MAX232 USART USART RS232 Signal 27 USART with PIC microcontroller The PIC has a dedicated hardware RS232 port, but CCS C allows any pin to be set up as an RS232 port, providing functions to generate the signals in software. (a) Connection between two PICs in asynchronous mode (b) Synchronous mode connection. CK is the clock pin, output in the master device and input in the slave device 28 14

15 CCS RS232 Serial Port Functions 29 RS232 Periperal Simulation 30 15

16 The program 31 Outline 1.PIC16 UART Serial Link 2.PIC16 SPI Serial Bus 3.I2C Serial Bus 32 16

17 SPI Bus The serial peripheral interface (SPI) bus provides high speed synchronous data exchange over relatively short distances (typically within a set of connected boards), using a master/slave system with hardware slave selection One processor must act as a master, generating the clock. Others act as slaves, using the master clock for timing the data send and receive. The slaves can be other microcontrollers or peripherals with an SPI interface. The SPI signals are: Serial Clock (SCK) Serial Data In (SDI) Serial Data Out (SDO) Slave Select (!SS) 33 SPI Bus SPI Connection SPI Signals 34 17

18 SPI Operation To transfer data, the master selects a slave device to talk to, by taking its SS line low. Eight data bits are then clocked in or out of the slave SPI shift register to or from the master. No start and stop bits are necessary, and it is much faster than RS232. The clock signal runs at the same speed as the master instruction clock, that is, 5MHz when the chip is running at the maximum 20MHz (16 series MCUs). 35 SPI Driver Functions 36 18

19 SPI Test System Schematic 37 Master and slaves source code 38 19

20 Outline 1.PIC16 UART Serial Link 2.PIC16 SPI Serial Bus 3.I2C Serial Bus 39 I 2 C Bus The interintegrated circuit (I 2 C) bus is designed for short range communication between chips in the same system using a software addressing system. It requires only two signal wires and operates like a simplified local area network. I2C connection I 2 C signals 40 20

21 I 2 C Bus The I 2 C slave chips are attached to a two wire bus, which is pulled up to logic 1 when idle. Passive slave devices have their register or location addresses determined by a combination of external input address code pins and fixed internal decoding. As for SPI, the clock is derived from the instruction clock, up to 5MHz at the maximum clock rate of 20MHz. 41 I 2 C Bus To send a data byte, the master first sends a control code to set up the transfer, then the 8 bit or 10 bit address code, and finally the data. Each byte has a start and acknowledge bit, and each byte must be acknowledged before the next is sent, to improve reliability. The sequence to read a single byte requires a total of 5 bytes to complete the process, 3 to set the address, and 2 to return the data 42 21

22 I 2 C Functions 43 I 2 C Test System OSC1/CLKIN RB0/INT OSC2/CLKOUT RB1 MCLR/Vpp/THV RB2 RB3/PGM RA0/AN0 RB4 RA1/AN1 RB5 RA2/AN2/VREF- RB6/PGC RA3/AN3/VREF+ RB7/PGD RA4/T0CKI RA5/AN4/SS RC0/T1OSO/T1CKI RC1/T1OSI/CCP2 RE0/AN5/RD RC2/CCP1 RE1/AN6/WR RC3/SCK/SCL RE2/AN7/CS RC4/SDI/SDA RC5/SDO RC6/TX/CK RC7/RX/DT DSW1 ON OFF DIPSWC_8 9 +5V R1 4k7 R2 4k U2 SCK A0 SDA A1 WP A2 24FC RD0/PSP0 RD1/PSP1 RD2/PSP2 RD3/PSP3 RD4/PSP4 RD5/PSP5 RD6/PSP6 RD7/PSP SDA SCL TRIG I2C PIC16F877A U

23 I 2 C Test System 45 23

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 : Hardware design for an embedded system 2. Design block diagrams 3. Design detail

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

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

OPTICAL TRACKING METHOD FOR MECHATRONIC SYSTEMS

OPTICAL TRACKING METHOD FOR MECHATRONIC SYSTEMS OPTICAL TRACKING METHOD FOR MECHATRONIC SYSTEMS Rotar Dan Vasile Alecsandri University, Calea Marasesti, cod: 00, Bacau, Romania, drotar@ub.ro; drotarubro@yahoo.com Abstract Determining the position is

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

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY

INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY INTERNATIONAL JOURNAL OF PURE AND APPLIED RESEARCH IN ENGINEERING AND TECHNOLOGY A PATH FOR HORIZING YOUR INNOVATIVE WORK ELECTRONICALLY PROTECTED EXAMINATION PAPER MR. MANISH D. BONDE 1, MR. RAHUL D.

More information

EXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005

EXAMINATION PAPER EMBEDDED SYSTEMS 6EJ005 School of Arts, Design and Technology BSc/BSc (HONS) MUSIC TECHNOLOGY & AUDIO SYSTEM DESIGN BSc/BSc (HONS) SOUND, LIGHT AND LIVE EVENT TECHNOLOGY BSc/BSc (HONS) ELECTRICAL AND ELECTRONIC ENGINEERING DATE:

More information

EL9800 Base Board. Version: 1.9 Date:

EL9800 Base Board. Version: 1.9 Date: EL9800 Base Board Version: 1.9 Date: 2007-07-25 Table of contents Table of contents 1 Foreword 2 1.1 Notes on the documentation 2 1.1.1 Liability conditions 2 1.1.2 Delivery conditions 2 1.1.3 Copyright

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

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 : Embedded System Overview 1. What is an embedded system? 2. Embedded system models

More information

Interfacing Techniques in Embedded Systems

Interfacing Techniques in Embedded Systems Interfacing Techniques in Embedded Systems Hassan M. Bayram Training & Development Department training@uruktech.com www.uruktech.com Introduction Serial and Parallel Communication Serial Vs. Parallel Asynchronous

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 5. Software development for an embedded system 1. Software diagram 2. C Programming

More information

Growing Together Globally Serial Communication Design In Embedded System

Growing Together Globally Serial Communication Design In Embedded System Growing Together Globally Serial Communication Design In Embedded System Contents Serial communication introduction......... 01 The advantages of serial design......... 02 RS232 interface......... 04 RS422

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

Microcontrollers and Interfacing

Microcontrollers and Interfacing Microcontrollers and Interfacing Week 10 Serial communication with devices: Serial Peripheral Interconnect (SPI) and Inter-Integrated Circuit (I 2 C) protocols College of Information Science and Engineering

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

Parallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this?

Parallel Data Transfer. Suppose you need to transfer data from one HCS12 to another. How can you do this? Introduction the Serial Communications Huang Sections 9.2, 10.2, 11.2 SCI Block User Guide SPI Block User Guide IIC Block User Guide o Parallel vs Serial Communication o Synchronous and Asynchronous Serial

More information

Serial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses

Serial Peripheral Interface. What is it? Basic SPI. Capabilities. Protocol. Pros and Cons. Uses Serial Peripheral Interface What is it? Basic SPI Capabilities Protocol Serial Peripheral Interface http://upload.wikimedia.org/wikipedia/commons/thumb/e/ed/ SPI_single_slave.svg/350px-SPI_single_slave.svg.png

More information

JOURNAL OF ADVANCEMENT IN ENGINEERING AND TECHNOLOGY

JOURNAL OF ADVANCEMENT IN ENGINEERING AND TECHNOLOGY JOURNAL OF ADVANCEMENT IN ENGINEERING AND TECHNOLOGY Journal homepage: http://scienceq.org/journals/jaet.php Research Article Open Access Automatic Temperature Monitoring/Logging System with Computer USB

More information

PIC16F87XA Data Sheet

PIC16F87XA Data Sheet M Data Sheet 28/40-pin Enhanced FLASH Microcontrollers 2001 Microchip Technology Inc. Advance Information DS39582A 2001 Microchip Technology Inc. Advance Information DS39582A-page 3 Pin Diagram RB7/PGD

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 : Embedded System Overview 1. What is an embedded system? 2. Embedded system features

More information

1. Embedded System Design Process

1. Embedded System Design Process ĐẠ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 : Develop a project of embedded system design 1. Design Process 2. Design Issues

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

To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM).

To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM). Lab # 6 Serial communications & EEPROM Objectives To be familiar with the USART (RS-232) protocol. To be familiar with one type of internal storage system in PIC (EEPROM). Serial Communications Serial

More information

LIN bus board datasheet EB

LIN bus board datasheet EB LIN bus board datasheet EB027-00-1 Contents 1. About this document... 2 2. General information... 3 3. Board layout... 4 4. Testing this product... 5 5. Circuit description... 7 Appendix 1 Circuit diagram

More information

PIC Training System Manual Rev. 1-1

PIC Training System Manual Rev. 1-1 Introduction PIC Training System Manual Rev. 1-1 Department of Engineering Technology Electrical Engineering Technology Old Dominion University Norfolk, VA 23529 August 31, 2012 This is a revision (Rev1-1)

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

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: 28/40-pin 8-Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: PIC16F873 PIC16F874 PIC16F876 PIC16F877 Microcontroller Core Features: High-performance RISC CPU Only 35 single word instructions

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

ICP05 IBOARD LITE ICP05. - iboard lite

ICP05 IBOARD LITE ICP05. - iboard lite ICP05 - iboard lite 1. Introduction and overview icp05 offers unprecedented level of performance, reliability and scalability for Microchip PIC IO Kit solution. By the same time, it allows users to program

More information

PIC Serial Peripheral Interface (SPI) to Digital Pot

PIC Serial Peripheral Interface (SPI) to Digital Pot Name Lab Section PIC Serial Peripheral Interface (SPI) to Digital Pot Lab 7 Introduction: SPI is a popular synchronous serial communication protocol that allows ICs to communicate over short distances

More information

Eco friendly electric scooter for energy consumption

Eco friendly electric scooter for energy consumption Volume 119 No. 16 2018, 1619-1630 ISSN: 1314-3395 (on-line version) url: http://www.acadpubl.eu/hub/ Eco friendly electric scooter for energy consumption G. Priya, M.Tech [1],M.Vasantha moorthy, M.Tech

More information

Introduction to I2C & SPI. Chapter 22

Introduction to I2C & SPI. Chapter 22 Introduction to I2C & SPI Chapter 22 Issues with Asynch. Communication Protocols Asynchronous Communications Devices must agree ahead of time on a data rate The two devices must also have clocks that are

More information

Universität Dortmund. IO and Peripheral Interfaces

Universität Dortmund. IO and Peripheral Interfaces IO and Peripheral Interfaces Microcontroller System Architecture Each MCU (micro-controller unit) is characterized by: Microprocessor 8,16,32 bit architecture Usually simple in-order microarchitecture,

More information

PIC16F7X Data Sheet. 28/40-pin, 8-bit CMOS FLASH Microcontrollers Microchip Technology Inc. DS30325B

PIC16F7X Data Sheet. 28/40-pin, 8-bit CMOS FLASH Microcontrollers Microchip Technology Inc. DS30325B M PIC16F7X Data Sheet 28/40-pin, 8-bit CMOS FLASH Microcontrollers 2002 Microchip Technology Inc. DS30325B Note the following details of the code protection feature on PICmicro MCUs. The PICmicro family

More information

Vehicles In Highway Communication System Using ZigBee And Bluetooth Network

Vehicles In Highway Communication System Using ZigBee And Bluetooth Network Vehicles In Highway Communication System Using ZigBee And Bluetooth Network EiThuzarKhin, Chaw Myat New and Hla Myo Tun Department of Electronic Engineering, Mandalay Technological University, Mandalay

More information

or between microcontrollers)

or between microcontrollers) : Communication Interfaces in Embedded Systems (e.g., to interface with sensors and actuators or between microcontrollers) Spring 2016 : Communication Interfaces in Embedded Systems Spring (e.g., 2016

More information

Amarjeet Singh. January 30, 2012

Amarjeet Singh. January 30, 2012 Amarjeet Singh January 30, 2012 Website updated - https://sites.google.com/a/iiitd.ac.in/emsys2012/ Lecture slides, audio from last class Assignment-2 How many of you have already finished it? Final deadline

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

Keywords: PIC18F452 microcontroller, Stepper motor, Rotary encoder, Visual Basic. Net, MikroC Pro.

Keywords: PIC18F452 microcontroller, Stepper motor, Rotary encoder, Visual Basic. Net, MikroC Pro. www.semargroup.org, www.ijsetr.com ISSN - Vol.0,Issue.0 May-0, Pages:- PC Based Position Control for Robot Arm NGU WAH, KYAW THIHA Dept of Mechatronic Engineering, Mandalay Technological University, Mandalay,

More information

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso

Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso Design and development of embedded systems for the Internet of Things (IoT) Fabio Angeletti Fabrizio Gattuso Microcontroller It is essentially a small computer on a chip Like any computer, it has memory,

More information

Microcontroller basics

Microcontroller basics FYS3240 PC-based instrumentation and microcontrollers Microcontroller basics Spring 2017 Lecture #4 Bekkeng, 30.01.2017 Lab: AVR Studio Microcontrollers can be programmed using Assembly or C language In

More information

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang,

Network Embedded Systems Sensor Networks Fall Hardware. Marcus Chang, Network Embedded Systems Sensor Networks Fall 2013 Hardware Marcus Chang, mchang@cs.jhu.edu 1 Embedded Systems Designed to do one or a few dedicated and/or specific functions Embedded as part of a complete

More information

Serial Communications

Serial Communications April 2014 7 Serial Communications Objectives - To be familiar with the USART (RS-232) protocol. - To be able to transfer data from PIC-PC, PC-PIC and PIC-PIC. - To test serial communications with virtual

More information

Modtronix Engineering Modular Electronic Solutions SBC28DC. Single board computer for 28 pin DIP PICs

Modtronix Engineering Modular Electronic Solutions SBC28DC. Single board computer for 28 pin DIP PICs Modtronix Engineering Modular Electronic Solutions Single board computer for 28 pin DIP PICs Table of Contents 1 Introduction...2 2 Features...4 3 Expansion Connectors...5 3.1 Daughter Board Connectors...5

More information

1.3inch OLED User Manual

1.3inch OLED User Manual 1.3inch OLED User Manual 1. Key Parameters Table 1: Key Parameters Driver Chip SH1106 Interface 3-wire SPI 4-wire SPI I2C Resolution 128*64 Display Size 1.3 inch Dimension 29mm*33mm Colors Yellow, Blue

More information

USB/DMX512 Con. Jean-Marc Lienher A PIC16C745. Out of spec!

USB/DMX512 Con. Jean-Marc Lienher A PIC16C745. Out of spec! USB/DMX Con HANDS-ON DMX Jean-Marc Lienher All amateur disc jockeys and light jockeys dream about it: a DMX converter not bigger than an XLR connector! But at a retail price of more than 00 pounds for

More information

SPI Memory and D/A board datasheet EB

SPI Memory and D/A board datasheet EB SPI Memory and D/A board datasheet EB013-00-2 Contents 1. About this document...2 2. General information...3 3. Board layout...4 4. Testing this product...5 5. Circuit description...6 Appendix 1 Circuit

More information

Distributed by: www.jameco.com 1-800-831-4242 The content and copyrights of the attached material are the property of its owner. M PIC16F87XA Data Sheet 28/40-pin Enhanced FLASH Microcontrollers 2001 Microchip

More information

PIC Training System Manual Rev. 2

PIC Training System Manual Rev. 2 Introduction PIC Training System Manual Rev. 2 Department of Engineering Technology Electrical Engineering Technology Old Dominion University Norfolk, VA 23529 March 26, 2018 This is the PIC Training system

More information

Serial Peripheral Interface Bus SPI

Serial Peripheral Interface Bus SPI Serial Peripheral Interface Bus SPI SPI Bus Developed by Motorola in the mid 1980 s Full-duplex, master-slave serial bus suited to data streaming applications for embedded systems Existing peripheral busses

More information

PIC-P40 development board Users Manual

PIC-P40 development board Users Manual PIC-P40 development board Users Manual All boards produced by Olimex are ROHS compliant Rev.E, February 008 Copyright(c) 008, OLIMEX Ltd, All rights reserved Page INTRODUCTION: PIC-P40 board is development

More information

PICado Alpha Development Board V1.0

PICado Alpha Development Board V1.0 V1.0 Bluetooth Transceiver Module HC-05 Four onboard FET power output stage 34 freely assignable I/O pins ICSP interface 2015 Jan Ritschard, All rights reserved. V1.0 Table of Contents 1. Introduction...

More information

Interfacing SPI Serial EEPROMs to Microchip PICmicro Microcontrollers PIC16F877 VDD VSS. Vcc 25XXXXX HOLD SCK

Interfacing SPI Serial EEPROMs to Microchip PICmicro Microcontrollers PIC16F877 VDD VSS. Vcc 25XXXXX HOLD SCK Interfacing SPI Serial EEPROMs to Microchip PICmicro Microcontrollers Author: Martin Kvasnicka Microchip Technology Inc. INTRODUCTION There are many different microcontrollers on the market today that

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 Chapter 2: Microcontroller Series (Part 1) 1. Introduction to ARM processors 2.

More information

Environmental Data Acquisition Using (ENC28J60)

Environmental Data Acquisition Using (ENC28J60) Environmental Data Acquisition Using (ENC28J60) Joshi Vaibhav Abstract -- Ethernet is a local area technology, which is used for reliable and efficient transfer and access of information across the devices

More information

Introduction the Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications

Introduction the Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications Introduction the Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications o Asynchronous Serial (SCI, RS-232) o Synchronous Serial (SPI, IIC) The MC9S12

More information

Card Reader Board EB037-00

Card Reader Board EB037-00 Card Reader Board EB037-00 00-1 Contents 1. About this document... 2 2. General information... 3 3. Board layout... 4 4. Testing this product... 5 5. Circuit description... 6 Appendix 1 Circuit diagram

More information

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd.

Display Real Time Clock (RTC) On LCD. Version 1.2. Aug Cytron Technologies Sdn. Bhd. Display Real Time Clock (RTC) On LCD PR12 Version 1.2 Aug 2008 Cytron Technologies Sdn. Bhd. Information contained in this publication regarding device applications and the like is intended through suggestion

More information

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI

Embedded Systems and Software. Serial Interconnect Buses I 2 C (SMB) and SPI Embedded Systems and Software Serial Interconnect Buses I 2 C (SMB) and SPI I2C, SPI, etc. Slide 1 Provide low-cost i.e., low wire/pin count connection between IC devices There are many of serial bus standards

More information

UART TO SPI SPECIFICATION

UART TO SPI SPECIFICATION UART TO SPI SPECIFICATION Author: Dinesh Annayya dinesha@opencores.org Table of Contents Preface... 3 Scope... 3 Revision History... 3 Abbreviations... 3 Introduction... 3 Architecture... 4 Baud-rate generator

More information

Microcontroller Based Automatic Temperature Control System

Microcontroller Based Automatic Temperature Control System Human Journals Research Article December 2018 Vol.:11, Issue:2 All rights are reserved by May Zaw Tun Microcontroller Based Automatic Temperature Control System Keywords: PIC 16F887A, Microcontroller,

More information

Basics of UART Communication

Basics of UART Communication Basics of UART Communication From: Circuit Basics UART stands for Universal Asynchronous Receiver/Transmitter. It s not a communication protocol like SPI and I2C, but a physical circuit in a microcontroller,

More information

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

PIC16F /40-Pin 8-Bit CMOS FLASH Microcontrollers. Devices Included in this Data Sheet: Pin Diagram PDIP. Microcontroller Core Features: 28/40-Pin 8-Bit CMOS FLASH Microcontrollers Devices Included in this Data Sheet: PIC16F870 PIC16F871 Microcontroller Core Features: High-performance RISC CPU Only 35 single word instructions to learn All

More information

Digital Circuits Part 2 - Communication

Digital Circuits Part 2 - Communication Introductory Medical Device Prototyping Digital Circuits Part 2 - Communication, http://saliterman.umn.edu/ Department of Biomedical Engineering, University of Minnesota Topics Microcontrollers Memory

More information

IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4

IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4 IV B.Tech. I Sem (R13) ECE : Embedded Systems : UNIT -4 1 UNIT 4 4.1. Serial data communication basics ----------- 1 4.2. UART ------------------------------------------------ 4 4.3. Serial Peripheral

More information

Serial Communication

Serial Communication Serial Communication What is serial communication? Basic Serial port operation. Classification of serial communication. (UART,SPI,I2C) Serial port module in PIC16F887 IR Remote Controller Prepared By-

More information

11.4 THE SERIAL PERIPHERAL INTERFACE (SPI)

11.4 THE SERIAL PERIPHERAL INTERFACE (SPI) Synchronous Serial IO 331 TRISC6 TRISC[6] Must be 0 so that RC6/TX/CK pin is an output. TRISC7 TRISC[7] Must be 1 so that RC7/RX/DT pin is an input. 11.4 THE SERIAL PERIPHERAL INTERFACE (SPI) The Serial

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

Linux Kernel Hacking Free Course, 3rd edition. HWMPS: Hardware Monitor & Protection System

Linux Kernel Hacking Free Course, 3rd edition. HWMPS: Hardware Monitor & Protection System Andrea Sarro University of Rome Tor Vergata HWMPS: Hardware Monitor & Protection System April 5, 2006 Outline of the talk Project overview Developement phases and practical issues Hardware platform Microcontroller

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE Microcontroller Based System Design

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING. EE Microcontroller Based System Design DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING EE6008 - Microcontroller Based System Design UNIT III PERIPHERALS AND INTERFACING PART A 1. What is an

More information

PIC-P67J60 development board Users Manual. Rev. C, December 2009 Copyright(c) 2009, OLIMEX Ltd, All rights reserved. Page 1

PIC-P67J60 development board Users Manual. Rev. C, December 2009 Copyright(c) 2009, OLIMEX Ltd, All rights reserved. Page 1 PIC-P67J60 development board Users Manual Rev. C, December 2009 Copyright(c) 2009, OLIMEX Ltd, All rights reserved Page 1 INTRODUCTION: If you want to build your own Internet enabled device this is the

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

Raspberry Pi - I/O Interfaces

Raspberry Pi - I/O Interfaces ECE 1160/2160 Embedded Systems Design Raspberry Pi - I/O Interfaces Wei Gao ECE 1160/2160 Embedded Systems Design 1 I/O Interfaces Parallel I/O and Serial I/O Parallel I/O: multiple input/output simultaneously

More information

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved.

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved. Serial Communication Prof. James L. Frankel Harvard University Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved. Overview of the Serial Protocol Simple protocol for communicating

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

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

Temperature Sensor TMP2 PMOD Part 1

Temperature Sensor TMP2 PMOD Part 1 Temperature Sensor TMP2 PMOD Part 1 Overview of the Temperature Sensor and I 2 C Interfacing Reference Sites: Diligent Temp2 PMOD: http://www.digilentinc.com/products/detail.cfm?navpath=2,401,961&prod=pmod-tmp2

More information

An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus

An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus Application Note An SPI Temperature Sensor Interface with the Z8 Encore! SPI Bus AN012703-0608 Abstract This Application Note provides an overview of Zilog s Z8 Encore! Serial Peripheral Interface (SPI)

More information

McMaster University Embedded Systems. Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016

McMaster University Embedded Systems. Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016 McMaster University Embedded Systems Computer Engineering 4DS4 Lecture 6 Serial Peripherals Amin Vali Feb. 2016 Serial Peripherals I2C Inter-IC Bus X/Y Coord. RGB data LCD config controller LCD data controller

More information

1. INTRODUCTION 1.1 PROJECT OBJECTIVE 1.2 PROBLEM STATEMENT

1. INTRODUCTION 1.1 PROJECT OBJECTIVE 1.2 PROBLEM STATEMENT 1. INTRODUCTION Human beings have invented/adopted technology to their needs since their existence. Main purpose of innovation in technology has been in simplifying life on earth and making work easier

More information

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP

DEVBOARD3 DATASHEET. 10Mbits Ethernet & SD card Development Board PIC18F67J60 MICROCHIP DEVBOARD3 DATASHEET 10Mbits Ethernet & SD card PIC18F67J60 MICROCHIP Version 1.0 - March 2009 DEVBOARD3 Version 1.0 March 2009 Page 1 of 7 The DEVBOARD3 is a proto-typing board used to quickly and easily

More information

Development and research of different architectures of I 2 C bus controller. E. Vasiliev, MIET

Development and research of different architectures of I 2 C bus controller. E. Vasiliev, MIET Development and research of different architectures of I 2 C bus controller E. Vasiliev, MIET I2C and its alternatives I²C (Inter-Integrated Circuit) is a multi-master serial computer bus invented by Philips

More information

CSE 466 Exam 1 Winter, 2010

CSE 466 Exam 1 Winter, 2010 This take-home exam has 100 points and is due at the beginning of class on Friday, Feb. 13. (!!!) Please submit printed output if possible. Otherwise, write legibly. Both the Word document and the PDF

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

DC6688FL32TC Super 1T 8051 Microcontroller

DC6688FL32TC Super 1T 8051 Microcontroller DC6688FL32TC Super 1T 8051 Microcontroller DC6688FL32TC is an 8-bit Microcontroller Unit with low voltage embedded Flash memory, high accuracy system clock, high current drainage output, and IR receiving

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

Arduino Uno R3 INTRODUCTION

Arduino Uno R3 INTRODUCTION Arduino Uno R3 INTRODUCTION Arduino is used for building different types of electronic circuits easily using of both a physical programmable circuit board usually microcontroller and piece of code running

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

Serial Buses in Industrial and Automotive Applications

Serial Buses in Industrial and Automotive Applications Serial Buses in Industrial and Automotive Applications Presented by Neelima Chaurasia Class: #368 1 Overview As consumer electronics, computer peripherals, vehicles and industrial applications add embedded

More information

Microcontrollers and Interfacing week 10 exercises

Microcontrollers and Interfacing week 10 exercises 1 SERIAL PERIPHERAL INTERFACE (SPI) HARDWARE Microcontrollers and Interfacing week 10 exercises 1 Serial Peripheral Interface (SPI) hardware Complex devices (persistent memory and flash memory cards, D/A

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

< W3150A+ / W5100 Application Note for SPI >

< W3150A+ / W5100 Application Note for SPI > < W3150A+ / W5100 Application Note for SPI > Introduction This application note describes how to set up the SPI in W3150A+ or W5100. Both the W3150A+ and W5100 have same architecture. W5100 is operated

More information

V23026 series Miniature, Sealed PC Board Relay

V23026 series Miniature, Sealed PC Board Relay Through-Hole or Surface Mount Features Surface and through-hole mounting types. 1 Form C contact arrangement. Latching or non-latching versions available. Switches loads from dry circuit to 1 amp. Washable

More information

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an

Infineon C167CR microcontroller, 256 kb external. RAM and 256 kb external (Flash) EEPROM. - Small single-board computer (SBC) with an Microcontroller Basics MP2-1 week lecture topics 2 Microcontroller basics - Clock generation, PLL - Address space, addressing modes - Central Processing Unit (CPU) - General Purpose Input/Output (GPIO)

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

Lecture 25 March 23, 2012 Introduction to Serial Communications

Lecture 25 March 23, 2012 Introduction to Serial Communications Lecture 25 March 23, 2012 Introduction to Serial Communications Parallel Communications Parallel Communications with Handshaking Serial Communications Asynchronous Serial (e.g., SCI, RS-232) Synchronous

More information

3 in 1 ICD. EASYdsPIC4 User s Manual. MikroElektronika. Software and Hardware solutions for Embedded World

3 in 1 ICD. EASYdsPIC4 User s Manual. MikroElektronika. Software and Hardware solutions for Embedded World SOFTWARE AND HARDWARE SOLUTIONS FOR THE EMBEDDED WORLD - Books - Compilers EASYdsPIC4 User s Manual mikro 3 in 1 IN-CIRCUIT DEBUGGER MICROCHIP dspic DEVELOPMENT BOARD USB 2.0 IN-CIRCUIT PROGRAMMER With

More information

FLASH Memory Programming Specification

FLASH Memory Programming Specification FLASH Memory Programming Specification This document includes the programming specifications for the following devices: PIC16F73 PIC16F74 PIC16F76 PIC16F77 1.0 PROGRAMMING THE The is programmed using a

More information

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications

eip-10 Embedded TCP/IP 10-BaseT Network Module Features Description Applications Embedded TCP/IP 10-BaseT Network Module Features 8-bit reprogrammable Microcontroller with Enhanced Flash program memory, EEPROM and Static RAM data memory On board 10Mbps Ethernet controller, and RJ45

More information