1 / 27

Chapter 2

Chapter 2. Device Overview. PIC 18F4520. The advantages of all PIC18Fxxxx microcontrollers: High computational performance High-endurance Enhanced Flash program memory. PIC18F4520 Diagram. Power Management Features. Run: CPU on, Peripherals on Idle: CPU off, Peripherals on

mandar
Download Presentation

Chapter 2

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Chapter 2 Device Overview

  2. PIC 18F4520 • The advantages of all PIC18Fxxxx microcontrollers: • High computational performance • High-endurance • Enhanced Flash program memory

  3. PIC18F4520 Diagram

  4. Power Management Features • Run: CPU on, Peripherals on • Idle: CPU off, Peripherals on • Sleep: CPU off, Peripherals off • Run mode 11 μA Typical • Idle mode 2.5 μA Typical • Sleep mode 100 nA Typical • Ultra Low 50nA Input Leakage • Two-Speed Oscillator Start-up

  5. Flexible Oscillator Structure • Four Crystal modes, up to 40 MHz • 4x Phase Lock Loop (PLL) – Available for Crystal and Internal Oscillators • Two External RC modes, up to 4 MHz • Two External Clock modes, up to 40 MHz • Internal Oscillator Block: • Fast wake from Sleep and Idle, 1 μs typical • Secondary Oscillator using Timer1 @ 32 kHz • Fail-Safe Clock Monitor: • Allows for safe shutdown if peripheral clock stops

  6. Peripheral Highlights • High-Current Sink/Source 25 mA/25 Ma • Three Programmable External Interrupts • Four Input Change Interrupts • Enhanced Capture/Compare/PWM (ECCP) module • One, two or four PWM outputs • Selectable polarity • Programmable dead time • Auto-shutdown and auto-restart

  7. Peripheral Highlights • Enhanced Addressable USART module: • Supports RS-485, RS-232 and LIN/J2602 • 10-Bit, up to 13-Channel Analog-to-Digital Converter module: • Auto-acquisition capability • Dual Analog Comparators with Input Multiplexing

  8. NanoWatt TECHNOLOGY • Alternate Run Modes • Multiple Idle Modes • On-the-Fly Mode Switching • Low Consumption in Key Modules

  9. Alternate Run Modes • By clocking the controller from the Timer1 source or the internal oscillator block, power consumption during code execution can be reduced by 90%.

  10. Multiple Idle Modes • CPU core disabled but the peripherals still active. • Power consumption can be reduced even further, to as little as 4% of normal operation requirements.

  11. On-the-Fly Mode Switching • The power managed modes are invoked by user code during operation • Allowing the user to incorporate power-saving ideas into their application’s software design

  12. Low Consumption in Key Modules • The power requirements for both Timer1 and the Watchdog Timer are minimized

  13. Other Special Features • Memory Endurance • Self-Programmability • Extended Instruction Set • Enhanced CCP Module • Enhanced Addressable USART • 10-Bit A/D Converter • Extended Watchdog Timer (WDT)

  14. Memory Endurance • The Enhanced Flash cells are rated to last for many thousands of erase/write cycles. • Data retention without refresh is conservatively estimated to be greater than 40 years.

  15. Self-Programmability • These devices can write to their own program memory spaces under internal software control. • possible to create an application that can update itself in the field.

  16. Extended Instruction Set • Introduces an optional extension to the PIC18 instruction set: • which adds 8 new instructions and • an Indexed Addressing mode. • Enabled as a device configuration option: • designed to optimize re-entrant application code originally developed in high-level languages.

  17. Enhanced CCP Module • In PWM mode, this module provides: • 1, 2 or 4 modulated outputs for controlling • half-bridge and full-bridge drivers. • Auto-shutdown: • for disabling PWM outputs on interrupt, or other select conditions, and • auto-restart to reactivate outputs once the condition has cleared.

  18. Enhanced Addressable USART • Standard RS-232 operation • Provides support for the LIN bus protocol. • Automatic baud rate detection • A 16-bit Baud Rate Generator for improved resolution. • Provides stable operation that talk to the outside world.

  19. 10-Bit A/D Converter • This module incorporates programmable acquisition time. • Allowing for a channel to be selected • A conversion to be initiated without waiting for a sampling period • Reducing code overhead.

  20. Extended Watchdog Timer (WDT) • Incorporates a 16-bit prescaler • allowing an extended time-out range • stable across operating voltage and temperature.

  21. Device Features

  22. Block Diagram

  23. X X X X X X X X OSC1/CLK1 / RA7 AN0 RA4 / TOCK / C1OUT RA5 / AN5/SS/ OSC2 / CLK0/ RA6 RA0 / AN0 RA3 / AN3 / Vref + RA1 / AN1 RA2 / AN2 /Vref - / cvREF PORTA PORTA is a bidirectional I/O port PIC

  24. X X X X X X X X RB7C/CKB3 / PGO RB4 / KB0 / AN11 RB5 / KB1/ PGM RB6 / KB2 / PGC RB0 / NT0/FLTO/AN12 RB3 / AN9 / CCP2 RB1 / INT1/AN10 RB2 / INT2 / AN8 PORTB PORTB is a bidirectional I/O port PIC

  25. X X X X X X X X RC7 /RX /DT RC4 / SO1 /SDA RC5 / SD0 RC6 /TX /CK RC0 /T1OS0 /T13CK1 RC3 /SCK/SCL RC1 / T1OS /CCP2 RC2 / CCP1 /P1A PORTC PORTC is a bidirectional I/O port PIC

  26. RD5 / PSP5 /P1B RD0 /PSP0;RD4 / PSP4 RD7 / PSP7 / P1D RD6 / PSP6/ P1C X X X X PORTD PORTD is a bidirectional I/O port or a Parallel Slave port PIC

  27. X X X X RE1 /WR / AN6 RE0 /RD / AN5 MCLR / Vpp / RE3 RE2 / CS / AN7 PORTE PORTE is a bidirectional I/O port PIC

More Related