DsPIC30F4011 Fall 2007. DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example,

Slides:



Advertisements
Similar presentations
INPUT-OUTPUT ORGANIZATION
Advertisements

MC68HC11 System Overview. System block diagram (A8 version)
C Examples 1.
Chapter 2 HARDWARE SUMMARY
Microcontroller – PIC – 4 PIC types PIC architecture
Introduction of Holtek HT-46 series MCU
DsPIC30F4011.
Coordinate Based Tracking System
Micro-controller or embedded controller
Timers and Interrupts Shivendu Bhushan Summer Camp ‘13.
1 ECE 263 Embedded System Design Lessons 2, 3 68HC12 Hardware Overview, Subsystems, and memory System.
ASPPRATECH.
Microcontroller based system design
BLDC MOTOR SPEED CONTROL USING EMBEDDED PROCESSOR
Engineering 1040: Mechanisms & Electric Circuits Fall 2011 Introduction to Embedded Systems.
INPUT-OUTPUT ORGANIZATION
Micro controllers A self-contained system in which a processor, support, memory, and input/output (I/O) are all contained in a single package.
1 © Unitec New Zealand Embedded Hardware ETEC 6416 Date: - 10 Aug,2011.
AVR Microcontrollers.
DsPIC30F4011. Main Features High-Performance, Modified RISC CPU: –Modified Harvard architecture –C compiler optimized instruction set architecture with.
Input/Output mechanisms
Revised: Aug 1, ECE 263 Embedded System Design Lesson 1 68HC12 Overview.
System Clocks.
Parallel Ports, Power Supply and the Clock Oscillator Material to be covered  Parallel I/O ports  Interfacing external switches and LEDs  Clock Oscillator.
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
16F877A. Timer 0 The Timer0 module timer/counter has the following features: –8-bit timer/counter –Readable and writable –8-bit software programmable.
Clock Options and Sleep Modes. Clock Sources Flash Fuse bits can be programmed to choose one of the following Clock sources: 1. External RC Osc. f = 1/(3RC).
The 8253 Programmable Interval Timer
AT91 Embedded Peripherals
MCU: Interrupts and Timers Ganesh Pitchiah. What’s an MCU ?
Prepared by Eng. Musa Alyaman1 Chapter Seven Chapter Seven PIC16F87x.
بسمه تعالي AVR Microcontrollers. The ATmega8 Basic Features -1.
Designing with Components Wilmer Arellano. How to chose a Microcontroller Choose one that you are familiar with or that is easy to learn.
MICROCONTROLLER SYSTEMS Part 1. Figure 1.1Elements of a digital controller CPU Central Processing Unit Input Peripherals Output Peripherals ROM Read Only.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Chapter 2 Introducing the PIC Mid-Range Family and the 16F84A The aims of this chapter are to introduce: The PIC mid-range family, in overview The overall.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
Microcontrollers Class : 4th Semister E&C and EEE Subject Code: 06ES42
8254 Timer.
Architecture and instruction set. Microcontroller Core Features:  Operating speed: DC - 20 MHz clock input DC ns instruction cycle Up to 8K x.
Intel 8051 Another family of microcontroller is the Intel 8051 family. The basic 8051 microcontroller has four parallel input/output ports, port 0, 1,
INTRODUCTION TO PIC MICROCONTROLLER. Overview and Features The term PIC stands for Peripheral Interface Controller. Microchip Technology, USA. Basically.
Presented by Sadhish Prabhu
C Examples 1. Download Links dsPIC30F4011/4012 Data Sheet dsPIC30F4013/3014 dsPIC30F Family Reference Manual MikroC MikroC Manual MikroC Quick Reference.
Features of the PIC18 microcontroller - 8-bit CPU - 2 MB program memory space (internal 32KB to 128KB) bytes to 1KB of data EEPROM - Up to 4096 bytes.
© 2008, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction Purpose  This course provides an introduction to the peripheral functions.
DsPIC30F4011.
Chapter Microcontroller
Chapter 3 System Buses.  Hardwired systems are inflexible  General purpose hardware can do different tasks, given correct control signals  Instead.
DsPIC30F4011. Main Features  High-Performance, Modified RISC CPU: Modified Harvard architecture C compiler optimized instruction set architecture with.
Components of a typical full-featured microcontroller.
Chapter 3. Advanced Hardware Fundamentals The various parts you will commonly find in an embedded-system circuit 발표일시 : 발표자 : 채화영.
AVR Architecture Prepared By: Avdhesh Soni ( ) Sarthak Patel ( ) Akshay Parekh ( ) Fenil Sachla ( ) Guided.
NAM S.B MDLAB. Electronic Engineering, Kangwon National University 1.
CEng3361/18 CENG 336 INT. TO EMBEDDED SYSTEMS DEVELOPMENT Spring 2007 Recitation 01.
Special Features. Device Configuration bits Revision Device Configuration bits Revision On-chip Power-on Reset (POR) Revision On-chip Power-on Reset (POR)
MICROCONTROLLER AND INTERFACING Presented by: Shefali Jethva ( ) Shivali Panchal ( ) Komal Soni ( ) Roll no. :- 14EC308.
USING TV REMOTE AS A CORDLESS MOUSE FOR THE COMPUTER
CORDLESS MOUSE FEATURES BY TV REMOTE USING PIC MICROCONTROLLER
SHRI S’AD VIDYA MANDAL INSTITUTE OF TECHNOLOGY
DsPIC30F4011.
UNIT – Microcontroller.
Modified Harvard Architectures
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Subject Name: Microcontroller Subject Code: 10ES42
Introduction to Microprocessors and Microcontrollers
Introducing the PIC Mid-Range Family and the 16F84A
AVR – ATmega103(ATMEL) Architecture & Summary
8051 Micro Controller.
8253 – PROGRAMMABLE INTERVAL TIMER (PIT). What is a Timer? Timer is a specialized type of device that is used to measure timing intervals. Timers can.
Presentation transcript:

dsPIC30F4011 Fall 2007

DIP Switches  The upper four switches of SW1 are used to enable LEDs connected to PORTB/C, PORTA/D, PORTE and PORTF. For example, if the switch for PORTB is OFF, all PORTB LEDs will be turned off Switches 5 and 6 of SW1 are used to enable SDO(Serial Data Output) and switches 7 and 8 to enable SDi (Serial Data input).  SW2 The first two switches of SW2 are used to enable SCK, switches 3, 4 and 5 are used for enabling CS (Chip Select) lines. Switches 7 and 8 are used to enable LCD Backlight and GLCD Backight respectively.

Jumper Settings  J16 is used as switch to connect the 4.096V voltage reference to RB0

Jumper Settings  There can be used to select between different connection options

Different MCU Sockets

Summary

Switches

Power Supply

Programmer

ADC  Caution. What would happen if: You are powering the board from your laptop computer, The center pin of the potentiometers is at VCC, It is also connected to RB0, The switches are set to connect to ground and Somebody presses the RB0 switch

Main Features  High-Performance, Modified RISC CPU: Modified Harvard architecture C compiler optimized instruction set architecture with flexible addressing modes 83 base instructions 24-bit wide instructions, 16-bit wide data path 48 Kbytes on-chip Flash program space (16K instruction words) 2 Kbytes of on-chip data RAM 1 Kbyte of nonvolatile data EEPROM Up to 30 MIPS operation:  DC to 40 MHz external clock input  4 MHz-10 MHz oscillator input with PLL active (4x, 8x, 1 6x) 30 interrupt sources:  3 external interrupt sources  8 user-selectable priority levels for each interrupt source  4 processor trap sources 16 x 16-bit working register array

The Modified Harvard architecture  Harvard Architecture is a computer architecture with physically separate storage and signal pathways for instructions and data  The Modified Harvard Architecture is very like the Harvard architecture but provides a pathway between the instruction memory and the CPU that allows words from the instruction memory to be treated as read-only data. This allows constant data, particularly text strings, to be accessed without first having to be copied into data memory, thus preserving more data memory for read/write variables.  In a computer with the contrasting Von Neumann Architecture (and no cache), the CPU can be either reading an instruction or reading/writing data from/to the memory. Both cannot occur at the same time since the instructions and data use the same signal pathways and memory. In a computer using the Harvard architecture, the CPU can read both an instruction and perform a data memory access at the same time, even without a cache.

Harvard Architecture

Von Neumann Architecture

Pinout and Family Differences

1. Power-on Reset (POR), Power-up Timer (PWRT) and Oscillator Start-up Timer (OST) 2. Brown-out Reset (BOR): A momentary dip in the power supply to the device has been detected which may result malfunction. 3. The Controller Area Network (CAN) module is a serial interface, useful for communicating with other CAN modules or digital signal controller devices. 4. The 10-bit, high-speed Analog- to-Digital Converter (ADC) allows conversion of an analog input signal to a 10-bit digital number. 5. Input capture is useful for such modes as: Frequency/Period/Pulse Measurements 6. Output Compare is useful in applications requiring operational modes, such as: Generation of Variable Width Output Pulses Power Factor Correction 7. The Inter-Integrated Circuit module provides complete hardware support for both Slave and Multi- Master modes of the 120 serial communication standard with a 16-bit interface. CPU Program Memory Data Memory With two address generators Input/Output Ports Peripherals Program Counter

8. The Serial Peripheral Interface (SPI) module is a synchronous serial interface. It is useful for communicating with other peripheral devices, such as EEPROMs, shift registers, display drivers and A/D converters, or other microcontrollers. 9. Timers 5x16 bit timers 10. The QEI module provides the interface to incremental encoders for obtaining mechanical position data. 11. PWM. This module simplifies the task of generating multiple, synchronized Pulse- Width Modulated (PWM) outputs. In particular, the following power and motion control applications are supported by the PWM module: 12. UART. UNIVERSAL ASYNCHRONOUS RECEIVER TRANSMITTER: Full-Duplex, 8 or 9-bit Data Communication 13. PSV Program Space Visibility CPU Program Memory Data Memory With two address generators Input/Output Ports Peripherals Program Counter

Device Overview  The core has a 24-bit instruction word. The Program Counter (PC) is 23 bits wide with the Least Significant bit (LSb) always clear and the Most Significant bit (MSb) is ignored during normal program execution, except for certain specialized instructions. Thus, the PC can address up to 4M instruction words of user program space.  The working register array consists of 16x16-bit registers, each of which can act as: data, address or offset registers. One working register (W15) operates as a software Stack Pointer for interrupts and calls.  Program loop constructs, free from loop count management overhead, are supported using the DO and REPEAT instructions, both of which are interruptible at any point.

Oscillator

FOSC REGISTER

Parallel I/O (PIO) Ports  All port pins have three registers directly associated with the operation of the port pin. The Data Direction register (TRISx) determines whether the pin is an input or an output. If the Data Direction register bit is a ‘1’, then the pin is an input. All port pins are defined as inputs after a Reset. Reads from the latch (LATx), read the latch. Writes to the latch, write the latch (LATx). Reads from the port (PORTx), read the port pins and writes to the port pins, write the latch (LATx).  When a peripheral is enabled and the peripheral is actively driving an associated pin, the use of the pin as a general purpose output pin is disabled. The I/O pin may be read, but the output driver for the Parallel Port bit will be disabled. If a peripheral is enabled, but the peripheral is not actively driving a pin, that pin may be driven by a port.

ADPCFG

Timer 1  16-bit Timer Mode: In the 16-bit Timer mode, the timer increments on every instruction cycle up to a match value, preloaded into the Period register, PR1, then resets to 0 and continues to count. When the CPU goes into the Idle mode, the timer will stop incrementing unless the TSIDL (T1CON ) bit = 0. If TSIDL = 1, the timer module logic will resume the incrementing sequence upon termination of the CPU Idle mode.  16-bit Synchronous Counter Mode: In the 16-bit Synchronous Counter mode, the timer increments on the rising edge of the applied external clock signal, which is synchronized with the internal phase clocks. The timer counts up to a match value preloaded in PR1, then resets to 0 and continues. When the CPU goes into the Idle mode, the timer will stop incrementing unless the respective TSIDL bit o. If TSIDL 1, the timer module logic will resume the incrementing sequence upon termination of the CPU Idle mode.

Timer 1  16-bit Asynchronous Counter Mode: In the 16-bit Asynchronous Counter mode, the timer increments on every rising edge of the applied external clock signal. The timer counts up to a match value preloaded in PR1, then resets to 0 and continues. When the timer is configured for the Asynchronous mode of operation, and the CPU goes into the Idle mode, the timer will stop incrementing if TSIDL = 1.  The 16-bit timer has the ability to generate an interrupt on period match.  9.5 Real-Time Clock Timer1, when operating in Real- Time Clock (RTC) mode, provides time-of-day and event time-stamping capabilities.  Gated Time Accumulation Mode  The Gated Time Accumulation mode allows the internal timer register to increment based upon the duration of the high time applied to the TxCK pin. In the Gated Time Accumulation mode, the timer clock source is derived from the internal system clock. When the TxCK pin state is high, the timer register will count up until a period match has occurred, or the TxCK pin state is changed to a low state.

T1CON=0b ;