You are on page 1of 30

The PIC18F2XK20/4XK20

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 1

Hello, my name is Marc McComb, I am a Technical Training Engineer with the Securities and Microcontroller Technology Division here a Microchip Technology. I am pleased to present the following webinar that will overview the first 8 members of the new PIC18F K-series 8-bit low-power, low-cost high performance microcontroller family developed using Microchips latest processing technology.

Agenda
Differentiating the PIC18F family from other PIC MCU offerings Introduction to the PIC18F2XK20/4XK20 Family
Features

The PIC18FXXK20 Demonstration Board


Demo application examples
2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar Slide 2

During this webinar I will discuss a number of topics. First, an overview of the entire PIC18F family. Here I will talk about the distinct differences between three categories offered in this family including why you would select one product over the other. Next, an introduction to the new PIC18F2XK20/4XK20 microcontrollers including some of the enhanced features. Finally, I will discuss the soon to be released PIC18FxXK20 demonstration board which includes application examples specifically designed to highlight various features of the K-series and provide you with a diverse platform to develop your own designs.

Where does the PIC18F fit in?

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 3

So, lets start with a question. Where does the PIC18F family of microcontrollers fit in with the rest of Microchips product line?

The PIC MCU and dsPIC DSC Families


PIC10 dsPIC33 dsPIC30 PIC10 PIC24H PIC10 Functionality PIC24F PIC10 PIC18 PIC10 PIC16 PIC10 PIC12 PIC10 PIC10 PIC10 Performance

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 4

Microchip currently offers a wide variety of 8-bit to 16-bit microcontrollers along with digital signal controllers. These products range from the very small, low-cost 8-bit PIC10F microcontrollers all the way up to the sophisticated dsPIC DSCs with powerful high-level digital signal processing capabilities.

The PIC18 MCU Family


High-performance 8-bit MCU
10-16 MIPS Performance Flash Memory up to 128 KB Optimizing C Compilers
PIC12 PIC10 MPLAB C18 C Compiler Third Party Support PIC10 PIC10 PIC16 PIC10 Traditional PIC10 PIC18 PIC18 PIC10 J-series PIC18 PIC10 K-series
PIC18FXXJXX

dsPIC30 PIC10 PIC24H PIC10 PIC24F PIC10

PIC18 PIC10

Three groups:
Traditional PIC18 PIC18 J-series

PIC18FXXKXX

PIC18 K-series
2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar

Slide 5

The PIC18F family offers Microchips highest performance 8-bit MCUs with a 16-bit instruction word. Flash program memory in this family is up to 128 Kbytes with packages ranging from 18 to 100pins. The RISC architecture with single instruction word execution allows for optimal performance with up to 16 MIPS. Thanks to this large Flash program memory and high performance, applications using this family can be easily developed using Microchips MPLAB C18 C compiler or one of the supporting third party C compilers. The PIC18F family is further subdivided into three categories. The traditional PIC18F, the PIC18 J-series, and now, the new PIC18F K-series. Lets take a closer look at the characteristics that distinguish each of these groups.

What differentiates each group?


Traditional PIC18
128 KB

Flash Program Memory

100k, 40 yr Flash Endurance, Retention Typical Data EEPROM 1M, 40 yr Endurance, Retention Typical 2-5.5V Range 4 KB 40 MHz, 10 MIPS

32 KB

Performance
2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar Slide 6

Each group offers different options depending on the Flash Program Memory and Performance that your application demands. The traditional PIC18F members offer Flash program memory sizes from 4 to 128 Kbytes along with operating voltages ranging from 2 to 5.5 volts. This group can perform up to 40 MHz offering 10 MIPS. Data EEPROM along with 100k write endurance and a 40 yr retention.

What differentiates each group?


Traditional PIC18
128 KB

J-series PIC18
1k-10k, 20 yr 1kEndurance, Retention EEPROM emulation 2-3.6V Range

Flash Program Memory

100k, 40 yr Flash Endurance, Retention Typical Data EEPROM 1M, 40 yr Endurance, Retention Typical 2-5.5V Range 4 KB 40 MHz, 10 MIPS

32 KB

40-48 MHz,10-12 MIPS

Performance
2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar Slide 7

The PIC18F J-series members are available with Flash Program memories ranging from 32 to 128 Kbytes and an operating voltage range of 2 to 3.6 volts. This group can also operate at greater frequencies than the traditional PIC18F group offering 10 to 12 MIPS.

What differentiates each group?


Traditional PIC18
128 KB

J-series PIC18
1k-10k, 20 yr Endurance, Retention Typical EEPROM emulation 2-3.6V Range

Flash Program Memory

100k, 40 yr Flash Endurance, Retention Typical Data EEPROM 1M, 40 yr Endurance, Retention Typical 2-5.5V Range 4 KB 40 MHz, 10 MIPS

K-series PIC18
10k, 40 yr Flash Endurance, Retention Typical Data EEPROM 100K,40 yr Endurance, Retention Typical 1.8-3.6V 1.8Range

32 KB

40-48 MHz,10-12 MIPS

64 MHz,16 MIPS

Performance
2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar Slide 8

The new PIC18F K-series are now the highest performance members of the PIC18F family offering up to 64 MHz operation with16 MIPS. Operating range of 1.8 to 3.6 volts with 100K write endurance and 40 yr retention typical for both Flash and Data EEPROM memory. Bottom line, the K-series adds to the diversity of the PIC18F family providing you with a variety of options to meet your design requirements.

Introducing the PIC18F2XK20/4XK20

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 9

Having distinguished these three groups, lets take a closer look at the first 8 members of the new PIC18F K-series

Introducing the PIC18F2XK/4XK20


Based on the PIC18F2X20/4X20 family Key features:
1.8-3.6V operating range High-speed operation (up to 64 MHz) Lower power consumption Low Power Timer1 Oscillator Dual rail-to-rail input and output comparators Master Synchronous Serial Port (I2C/SPI) with address masking Up to 14 10-bit ADC Channels 1.2V fixed voltage reference Enhanced Capture/Compare PWM Module with Pulse Steering and Enhanced Bridge modes

PIC18F2X20/4X20

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

PI C

18F
Slide 10

The PIC18F2XK20 and 4XK20 MCUs are born out of the PIC18F2X20 and 4X20 traditional PIC18F family members. The new K-series offers key feature enhancements. Such key features I have already mentioned include 1.8 to 3.6V operating range and higher speed operation these are offered along with power managed modes to minimize power consumption. Enhancements to traditional peripherals include individual dual rail-to-rail comparators with configurable speed option, bit address masking to the Master Synchronous Serial Port module, the 10-bit Analog-to-Digital converter now has14 selectable input channels and a 1.2V Fixed Voltage Reference is available. The Enhanced Capture/Compare Pulse-Width Modulation module offers a variety of PWM modes for a variety of bridge configurations as well as PWM steering on 4 different pins. These features and more make the PIC18F4XK20/2XK20 devices ideally suited for general-purpose control, and a broad range of low-power applications. Lets take a closer look at these features.

2 XK /4 X K2 0

10

High Performance
4x Phase Locked Loop for crystal and internal oscillators
PLL

16

S@ MIP

3V

FIN

Loop Loop Filter Filter

VCO VCO FOUT

4 4

Frequency ranges of 31 kHz to 64 MHz


2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar Slide 11

A wide variety of clock sources and selection features allow for maximum performance with frequencies ranging from 31 KHz to 64 MHz while minimizing power consumption. A 4x Phase Locked Loop is provided enabling the use of a lower frequency oscillator in applications sensitive to electromagnetic interference that can be caused when using higher-frequency crystals. The PLL further enables external crystals and the internal oscillators to be driven to their highest rated frequencies. This means, 16 MIPS can be easily achieved at a 3V operating voltage.

11

Lower Power Consumption


Seven power management modes available Idle mode currents down to 1.0 A Sleep mode current down to 0.1 A Timer1 Oscillator
32 kHz,1.8V,1.0 A
2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar Slide 12

Run, Idle and Sleep power management mode categories with a total of seven different sub-modes provide a variety of options for power conservation. Each of these modes determines which areas of the microcontroller are clocked and even at what speed. Enhancements include a reduction in Idle mode currents down to 1 uA and current reduction down to 0.1 uA in low-powered Sleep mode. Furthermore, clock switching features allow the 32 KHz, low-powered Timer1 oscillator to be used as the primary clock source. All these features make the new PIC18FXXK20 ideal for battery operated applications.

12

Comparator Module
Dual Rail-to-Rail Comparators Each comparator has a choice of four negative input references Two Internal Reference Voltages CVREF and 1.2V Fixed Voltage Reference Configurable propagation delay for power conservation
Comparator 1 + _
C1OUT

C12IN0C12IN1C12IN2C12IN3C12IN0C12IN1C12IN2C12IN3-

CVREF 1.2V FVR

CVREF 1.2V FVR

Comparator 2 + _
C2OUT

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 13

The dual comparators now feature rail-to-rail input voltages along with up to four selectable input channels for each comparator. Two internal reference voltages are available the 1.2V fixed Voltage Reference and the programmable Comparator Voltage Reference. Furthermore, the propagation delay through each comparator can be configured to speeds that will optimize power consumption.

13

Comparator Module
Programmable Comparator Voltage Reference configurable for external use

CVREF
CVREF pin

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 14

The programmable Comparator Voltage Reference further offers the advantage of being configured for external use by off-chip devices or other on-chip inputs.

14

Master Synchronous Serial Port Module (I2C/SPI)


I2C Slave mode address masking:

Individual communication with Master


0 11 1

0 1 1 0 1 11 0
Motor Controller
SLAVE 4

MASTER
Fan Control EEPROM
PIC18F2XK/4XK20

SLAVE 1
2007 Microchip Technology Incorporated. All Rights Reserved.

SLAVE 2

SLAVE 3

SLAVE 5
Slide 15

PIC18F2XK/4XK20 Web Seminar

The Master Synchronous Serial Port Module serial peripheral can be operated in either I2C or SPI mode. I2C further offers Master, Multi-Master and Slave modes. The PIC18F2XK20 and 4XK20 further allow individual bit address masking. Enabling individual communication with the master or

Real-time Clock

15

Master Synchronous Serial Port Module (I2C/SPI)


I2C Slave mode address masking:

or as part of a group on the same bus


0 11 1

0 1 1 0 1 11 0 0 11 1 0 1
Motor Controller
SLAVE 4

SLAVE 1
2007 Microchip Technology Incorporated. All Rights Reserved.

SLAVE 2

SLAVE 3

SLAVE 5
Slide 16

PIC18F2XK/4XK20 Web Seminar

communication as part of multiple slave devices in a group.

Real-Time Clock

MASTER
Fan Control

EEPROM

PIC18F2XK/4XK20

16

Analog-to-Digital Converter
10-bit Analog-to-Digital Converter with up to 14 channels
1.2V fixed voltage reference
AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 AN8 AN9 AN10 AN11 AN12

ADC
1.2V

Analog Input Signal

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 17

The on-chip 10-bit Analog-to-Digital converter now offers 14 selectable analog input channels including an option to use the 1.2V Fixed Voltage Reference as one of these channels. Each analog input can be individually configured for digital functionality if not used with any of the analog peripherals.

17

Enhanced Capture/Compare Pulse-Width Modulation Module


4 PWM modes:
Single PWM Half-Bridge PWM Full-Bridge PWM, Forward mode Full-Bridge PWM, Reverse mode
P1A P1B P1C P1D

V+

Full-Bridge Mode
2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar Slide 18

The Enhanced Capture/Compare Pulse Width Modulation module with auto shutdown and programmable dead band delay can provide PWM output on up to 4 pins with up to 10-bit resolution. Four different PWM modes are available Single, Half-Bridge and Full-Bridge Forward or Reverse PWM modes.

18

Enhanced Capture/Compare Pulse-Width Modulation Module


PWM Steering Capability
Drive PWM from any one of the PWM output pins OR in combination

P1A P1B P1C P1D

P1A P1B P1C P1D

P1A

OR

P1B P1C P1D

Individual PWM Outputs


2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar

Combination
Slide 19

Individual pulse steering of the same PWM signal to any one of 4 individual output pins can be accomplished in single output mode. Additionally, the same PWM signal can now be output to multiple pins simultaneously.

19

Other Features
Up to 64 KB of Flash program memory Up to 3,936 bytes of RAM with up to 1,024 bytes of Data EEPROM memory Programmable Brown-Out Reset and Extended Watchdog Timer both with Software Enable Option EUSART with LIN compatibility Fail-safe clock monitoring with two-speed oscillator start-up
4XK 20 PI C
Slide 20

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Other features include optimal memory ranges up to 64 Kbytes of Flash memory and up to 3936 bytes of ram. Additionally, true Data EEPROM memory is implemented with available sizes up to 1024 bytes. The K-series provides programmable Brown-out Reset with software enable, extended WDT along with EUSART module with LIN compatibility and two-speed oscillator start-up. The PIC18F2XK20 and 4XK20 continue Microchips tradition providing for easy migration from earlier family members allowing your current designs to benefit from these enhanced features.

18F 2

X K/

20

Development Tools

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 21

Now that weve seen some of the new features that are incorporated in the K-series, lets take a look at some development tools.

21

Development Tools
A full range of hardware and software tools:
Programmers Debuggers Emulators Analyzers and the MPLAB Integrated Development Environment
with Visual Device Initializer
2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar Slide 22

The PIC18F2XK20 and 4XK20 are fully supported by Microchips complete line of programmers, debuggers, in-circuit emulators and analyzers. Application firmware is easily developed using Microchips MPLAB integrated development environment along with such tools as Visual Device Initializer and the aforementioned C18 and third party C compilers.

22

PIC18FXXK20 Demonstration Board


Coming Soon!

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 23

Along with the introduction of the PIC18FXXK20 family, a new demonstration board will soon be available to ease the development of original design applications.

23

PIC18FXXK20 Demonstration Board


9V Power Audio/Analog Input with adjustable gain ICD/PICkit 2 Starter Kit Interface PICkit Starter Kit Serial Interface

Audio/Analog Output

32k Xtal for Low Power Timer 1 Demo

PICtail Board Interface LEDs 64 x 128 Display

Temperature Sensor
2007 Microchip Technology Incorporated. All Rights Reserved.

Push Buttons and Pot


PIC18F2XK/4XK20 Web Seminar

Serial EEPROM
Slide 24

The PIC18FXXK20 Demonstration Board comes equipped with a PIC18FXXK20 MCU. Interface connections include a full complement of pushbuttons and LEDs, along with a 64 x 128 display. Serial applications can be easily developed and tested using the on-board serial EEPROM or EUSART testing using Microchips PICkit Serial Analyzer. Standard debugger connectivity is provided to allow the demonstration board to be used with either Microchips low-cost PICkit 2 Debug Express or MPLAB ICD 2 In-Circuit Debugger. Other features include a temperature sensor, Audio inputs and a 32 KHz crystal for low-power applications using the Timer1 oscillator.

24

PIC18FXXK20 Demonstration Board


DFT Example Application

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 25

A number of application examples are provided with the PIC18FXXK20 Demonstration Board to provide a unique out-of-the box experience. Lets take a look at one of these applications that highlight the high-performance characteristics of the new PIC18FXXK20 MCU.

25

DFT Example Application


Accepts an analog signal from a microphone Converts this analog signal to digital domain Digital information used to calculate a Discrete Fourier Transform (DFT) A 16 point spectrum is displayed on the OLED
Microphone Signal Filtered Analog Input Signal PIC18F45K20
Store 32 Samples

5 kHz Sample Rate

OLED displays spectral representation of microphone signal

Low-pass LowFilter

ADC

Data Memory

Display on OLED

Calculate DFT

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 26

A Discrete Fourier Transform application incorporates a microphone connected to the audio input on the PIC18FXXK20 board. The audio signal generated passes through a Low-Pass filter into one of the 14 analog input channels of the 10-bit ADC. Thirty-two digitized samples of the audio signal are taken, each value transformed to the frequency domain using a Discrete Fourier Transform and then a 16 point spectral representation of the signal is displayed on the display. The high performance of the PIC18FXXK20 enables high level mathematical operations to be performed easily at faster rates. All firmware for this application is provided with the demonstration board as well as connectivity requirements.

26

Other Demo Applications


Real-Time Clock
Uses Low Power Timer1 as the time base Minutes and hours can be changed with the push of a button
MIN

HR

2:30

Pong Game
Play until 5 points
Displayed on OLED

UP

Pushbuttons control up or down movement of paddle

DOWN

4
Slide 27

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Other demos include a Real-Time Clock application using Low-Power Timer1 as the clock source and a neat Pong game to name a few.

27

Summary
The new PIC18FXXK20 MCU
Low-Cost Power conservation features Enhancements to peripherals
Comparators MSSP ECCP ADC

The soon to be released PIC18FXXK20 Development Kit


Demonstrates enhanced features Provides an optimal platform for design development
2007 Microchip Technology Incorporated. All Rights Reserved. PIC18F2XK/4XK20 Web Seminar Slide 28

With the ever-increasing focus on portable applications that require reduced energy consumption and increased functionality, there is a clear need for embedded electronic intelligence that can do more with less. Microchips new PIC18F4XK20/2XK20 family of high-performance 8-bit microcontrollers meets these needs head-on, not just with the levels of performance, but also at a cost-effective price point. Additionally, this new family continues Microchips easy migration strategy, providing full code, pin-out and tool compatibility with the Companys comprehensive portfolio of 8-bit microcontrollers. The soon to be released PIC18FXXK20 development kit, will highlight new features of the PIC18FXXK20 device as well as provide a platform for the development of your own original designs.

28

More Information

Visit www.microchip.com
Data sheets Application notes Tech briefs Ordering information New product development

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 29

For iInformation on this or any of Microchips products, please visit our web site a www.microchip.com. Here you find a complete list of data sheets, application notes and other important information for all your design needs.

29

THANK YOU!!

2007 Microchip Technology Incorporated. All Rights Reserved.

PIC18F2XK/4XK20 Web Seminar

Slide 30

My name is Marc McComb and I thank you for your interest in the PIC18FXXK20 family.

30

You might also like