microchip debuts industry’s first 6-pin the pic10f 8-bit

13
For more information visit www.microchip.com Microchip Debuts Industry’s First 6-Pin Microcontrollers — The World’s Smallest Microcontroller High-performance PIC ® 8-bit Flash devices enable new markets for microcontrollers: “Electronic Glue”, Logic Control and more For highly space-constrained and low-cost applications, the world’s smallest microcontrollers – in 6-pin packages pack the high- performance of the PIC microcontroller architecture into the ultra- small form factor of a SOT-23 package. These revolutionary 6-pin Flash devices provide an ideal solution for many markets and uses not typically served by microcontrollers today, including “Electronic Glue” to enable easy bug fixes for ASIC and Printed Circuit Board (PCB) designs and replaces standard logic and timing components or traditional mechanical timers and switches. Microchip continues to push the limits of the 8-bit microcontroller, creating a new breed of ultra small Flash devices that are opening the door to non-traditional uses for the PIC microcontroller,” said Steve Drehobl, Vice President of Microchip’s Security, Microcontroller and Technology Development Division. “The 6-pin devices provide a cost-effective replacement for many discrete logic or mechanical functions, substantially reducing component count and board space while giving engineers additional design flexibility.” The PIC10F 8-bit Flash microcontroller family debuts with four devices: (PIC10F200, PIC10F202, PIC10F204, PIC10F206) Significant features of these PIC microcontrollers include: 256 to 512 instructions (x12-bit program words) of Flash program memory. 6 bytes to 24 bytes of data RAM memory. Precision 4 MHz internal oscillator, 33 instructions, two stack levels. 25 milliamp source/sink current IO, low power (100 nanoamp) sleep current. Wide operating voltage range from 2 to 5.5 volts, one 8-bit timer and a watchdog timer. In Circuit Serial Programming™ (ICSP) technology, power-on reset, power-saving Sleep mode. An analog comparator module (in the PIC10F204 and PIC10F206 only). With only six pins, they are very simple to use and have a short learning curve for anyone not experienced in designing with microcontrollers. Through ICSP™ technology, Microchip’s 6-pin devices can be programmed after placement on a circuit board. ICSP technology enables field upgrades, system calibration during manufacturing and the addition of unique identification codes to the system. Enabling New Applications for Microcontrollers: While the PIC10F family is ideal for any spaced-constrained application requiring low pin count microcontrollers, the combination of small form factor, high-performance and low-cost is creating new applications not traditionally served by microcontrollers. The following are a few examples: Electronic Glue: Discovering a bug in an ASIC or a PCB can have devastating consequences for the design. A revision to the silicon or a complete board change may be required, creating substantial time-to-market delays and potential scrappage costs. Often, the design issue is simple and can be accommodated by changing the functionality of a single signal using a small, low-cost microcontroller. The development time for a microcontroller-based system is significantly faster and easier than designing an entirely new ASIC or PCB. By including the low-cost PIC10F 6-pin devices in a PCB design from the start, bugs, late changes and other stopgaps can be implemented with ease and little expense for ASICs, the board itself and for a number of other devices on the PCB. PAGE 1-2 PIC10F - World’s Smallest Microcontroller PAGE 3 dsPIC ® Design Contest Extended! PAGE 4 PIC18F5XX 8-bit Flash MCUs Provide Program Memory Updates PAGE 5 MCP111/112 Voltage Detectors Offer Low Power and Low Voltage Detector PAGE 6 “Adding Flair to a Coffee Maker with a PIC ® MCU” PAGE 7-8 Tips n’ Tricks: Power Managed PICmicro ® Microcontrollers PAGE 9 MASTERs Conference ‘04 PAGE 10 Upcoming WebSeminars Archived Seminars PAGE 11-12 What’s New in Microchip Literature? PAGE 13 buy-microchip IN THIS ISSUE dsPIC ® Design Contest Extended! See Page 3 for Details CONTINUED......

Upload: others

Post on 13-Jan-2022

2 views

Category:

Documents


0 download

TRANSCRIPT

For more information visit www.microchip.com

Microchip Debuts Industry’s First 6-Pin

Microcontrollers — The World’s Smallest

Microcontroller

High-performance

PIC® 8-bit Flash

devices enable

new markets for

microcontrollers:

“Electronic Glue”,

Logic Control and more

For highly space-constrained and low-cost applications, the world’s smallest microcontrollers – in 6-pin packages pack the high-performance of the PIC microcontroller architecture into the ultra-small form factor of a SOT-23 package. These revolutionary 6-pin Flash devices provide an ideal solution for many markets and uses not typically served by microcontrollers today, including “Electronic Glue” to enable easy bug fi xes for ASIC and Printed Circuit Board (PCB) designs and replaces standard logic and timing components or traditional mechanical timers and switches.

“Microchip continues to push the limits of the 8-bit microcontroller,

creating a new breed of ultra small Flash devices that are opening the

door to non-traditional uses for the PIC microcontroller,” said Steve

Drehobl, Vice President of Microchip’s Security, Microcontroller and

Technology Development Division. “The 6-pin devices provide a

cost-effective replacement for many discrete logic or mechanical

functions, substantially reducing component count and board space

while giving engineers additional design fl exibility.”

The PIC10F 8-bit Flash microcontroller family debuts with four devices: (PIC10F200, PIC10F202, PIC10F204, PIC10F206)

Signifi cant features of these PIC microcontrollers include:

• 256 to 512 instructions (x12-bit program words) of Flash program memory.

• 6 bytes to 24 bytes of data RAM memory.

• Precision 4 MHz internal oscillator, 33 instructions, two stack levels.

• 25 milliamp source/sink current IO, low power (100 nanoamp) sleep current.

• Wide operating voltage range from 2 to 5.5 volts, one 8-bit timer and a watchdog

timer.

• In Circuit Serial Programming™ (ICSP) technology, power-on reset, power-saving

Sleep mode.

• An analog comparator module (in the PIC10F204 and PIC10F206 only). With only

six pins, they are very simple to use and have a short learning curve for anyone not

experienced in designing with microcontrollers.

Through ICSP™ technology, Microchip’s 6-pin devices can be programmed after placement on a circuit board. ICSP technology enables fi eld upgrades, system calibration during manufacturing and the addition of unique identifi cation codes to the system.

Enabling New Applications for Microcontrollers:

While the PIC10F family is ideal for any spaced-constrained application requiring low pin count microcontrollers, the combination of small form factor, high-performance and low-cost is creating new applications not traditionally served by microcontrollers. The following are a few examples:

Electronic Glue:

Discovering a bug in an ASIC or a PCB can have devastating consequences for the design. A revision to the silicon or a complete board change may be required, creating substantial time-to-market delays and potential scrappage costs. Often, the design issue is simple and can be accommodated by changing the functionality of a single signal using a small, low-cost microcontroller.

The development time for a microcontroller-based system is signifi cantly faster and easier than designing an entirely new ASIC or PCB. By including the low-cost PIC10F 6-pin devices in a PCB design from the start, bugs, late changes and other stopgaps can be implemented with ease and little expense for ASICs, the board itself and for a number of other devices on the PCB.

PAGE 1-2

PIC10F - World’s Smallest Microcontroller

PAGE 3

dsPIC® Design Contest Extended!

PAGE 4

PIC18F5XX 8-bit Flash MCUs Provide Program Memory Updates

PAGE 5

MCP111/112 Voltage Detectors Offer Low Power and Low Voltage Detector

PAGE 6

“Adding Flair to a Coffee Maker with a PIC® MCU”

PAGE 7-8

Tips n’ Tricks: – Power Managed PICmicro®

Microcontrollers

PAGE 9

MASTERs Conference ‘04

PAGE 10

– Upcoming WebSeminars– Archived Seminars

PAGE 11-12

What’s New in Microchip Literature?

PAGE 13

buy-microchip

IN THIS ISSUE

dsPIC®

Design Contest

Extended!

See Page 3

for Details

CONTINUED......

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

For more information visit www.microchip.com 2

Logic Control:

Traditional standard logic and timing components, such as delays, smart gates, signal conditioning, simple state machines, encoders/decoders, I/O expanders and small peripheral logic functions can now be cost effectively integrated into a 6-pin microcontroller. The advantages include:

• Eliminating components (reducing board space and cost).

• Allowing the implementation of more complex solutions by using fi rmware to implement state machines.

• Enabling designers to change the functionality on the PCB without having to replace the actual board.

Waveform Generation:

As with replacing standard logic devices, a PIC10F microcontroller can take the place of traditional 555 timers, pulse-width modulators (PWMs), remote control encoders, pulse generation, programmable frequency source, resistor-programmable oscillators and much more.

“Mechatronics”/Mechanical Functions:

The PIC10F devices are an ideal solution to replace traditional mechanical functions, such as smart switches, mode selectors, remote I/Os, timers, LED fl ashers and any other form of mechanical timers and switches. A microcontroller solution, in general, can add signifi cantly more functionality than a mechanical-based device.

4-bit Microcontrollers:

Physically smaller and higher in performance, Microchip’s 8-bit, 6-pin SOT-23 microcontroller provides a more robust solution over 4-bit microcontrollers in larger packages. Additionally, writing software code for an 8-bit microcontroller is much easier than with 4-bit devices, in many cases. In terms of cost effectiveness, the PIC10F devices are priced at or below current 4-bit microcontroller cost baselines.

Intelligent Disposable Electronics:

Given their small form factor and low cost, the PIC10F are ideal for many emerging “disposable” applications that incorporate electronics intelligence, like property identifi cation. This includes a growing number of medical equipment products such as pregnancy testers, dialysis monitoring (blood sugar) and drug testers.

Microchip Debuts Industry’s First 6-Pin Microcontrollers — The World’s Smallest Microcontroller (Continued)

For more product information visit: www.microchip.com/pic10fxxx

Flash

ProgramMemory

9-10Data Bus

8

12ProgramBus

Instruction reg

Program Counter

RAM

FileRegi ster s

Direct Addr 5

RAM Addr (1) 9

Addr MUX

IndirectAddr

FSR reg

Status reg

MUX

ALU

W reg

Device Reset

Power-onReset

WatchdogTimer

InstructionDecode &

Control

TimingGeneration

MCLR

VDD, VSS

Timer0

GPIO

8

8

GP3/MCLR/VPPGP2/T0CKI/FOSC4GP1/ICSPCLKGP0/ICSPDAT

5-7

3

Stack 1

Stack 2

24 or 16

Internal RC Clock

512 x12 or

byt es

Timer

256 x12

Enabling New Applications for Microcontrollers:

Figure 1: PIC10F200/202 Block Diagram

For more information visit www.microchip.com 3

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

For more product information visit: www.microchip.com

With such a growing momentum behind the dsPIC Design Contest, Microchip has received numerous requests to extend the purchase date of the dsPIC Design Contest Kits from June 10to July 24, 2004.

Microchip is giving away more than $30,000 USD in prizes as part of this exciting contest that allows you to create high-performance designs with the new dsPIC30F16-bit Digital Signal Controllers. Match your design wits against some of the industry’s best engineering minds to win one of 19 total prizes, including your choice of a Harley Davidson® Motorcycle or $15,000 USD cash!

To enter the dsPIC30F Design Contest:

Order the dsPIC30F Design Contest Kit (part #DM300015) by July 24, 2004.

Use the dsPIC30F Design Contest Kit Board and your engineering skills to develop an innovative design. The dsPIC30F Design Contest Kit, along with an MPLAB® ICD 2 In-Circuit Debugger and Programmer, which you may already own, provides all of the tools necessary to enter the contest or begin designing with Microchip’s leading-edge dsPIC30F Digital Signal Controllers. Only $139 USD (regularly $299 USD) during this limited-time offer.

By purchasing the dsPIC30F Design Contest Kit and entering the Contest, you can:

• Add higher performance to your designs at a lower cost.

• Experience the ease of adding digital signal processing capability to your application.

• Reduce your component count on your next high-performance design.

• Learn how to design with the latest generation of 16-bit digital signal controllers.

The DM300015 Contest Kit can be purchased from buy.Microchip in the Americas and parts of Europe or from any Microchip authorized distributor worldwide. If you plan to buy the MPLAB ICD 2 with the DM300015 Contest Kit, distributors are authorized to honor the MPLAB ICD 2 discount in your coupon. Indicate that you are participating in the dsPIC Design Contest to the sales representative.

Please contact [email protected] if you experience any diffi culty.

Purchase Date for dsPIC® Digital Signal Controller Design Contest Kit is Extended!

Your Choice of Exciting Prizes — Over $30,000 in Total!

Second PlacePlasma 43” Television or $7,500 USD Cash

Third PlaceDVD Home Theater Entertainment System or $3,000 USD Cash

Fourth PlaceMicrochip MPLAB® ICE 4000 In-Circuit Emulator

First PlaceHarley Davidson®Electra Glide®Standard Motorcycle or $15,000 USD Cash Fifth Through Ninth Place

Microchip MPLAB® C30 C Compiler(one prize awarded to each of thefifth through ninth place winners)

Tenth through Fourteenth PlaceMicrochip MPLAB ICD 2 In-Circuit Debugger (one prize awarded to each of the tenth through fourteenth place winners)

Fifteenth through Nineteenth PlaceFull Momentum Data Systems Filter Design software (one prize awarded to each of the fifteenth through nineteenth place winners)

Purchase Date Extended from June 10 to July 24, 2004!

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

For more information visit www.microchip.com 4

Five new PIC® 8-bit Flash microcontrollers provide program memory updates to Microchip’s most popular Baseline One-Time Programmable (OTP) microcontrollers.

Offering Flash memory in the updated Baseline devices allows customers the ability to reprogram their designs during development, production and when installed in the fi eld — speeding time-to-market and reducing both development and production costs.

Designers of today’s most cost-constrained systems are constantly looking for ways to increase development effi ciencies and reduce total system costs. As the worldwide leader in 8-bit microcontroller unit shipments, according to Gartner Dataquest††, Microchip’s Baseline PIC MCU devices are extensively used in a large number of these cost-sensitive applications. The new PIC16F54, PIC16F57, PIC16F505, PIC12F508 and PIC12F509 offer customers the benefi ts of reprogrammable Flash memory via an easy migration path from Microchip’s existing OTP devices, with equivalent price points and identical pin counts in 8-,14-,18, 20 and 28-pin packages. Additional enhanced features on these new microcontrollers include an improved internal oscillator, wider operating voltage of 2V to 5.5V, improved reset functionality and smaller (MSOP) packaging for the PIC12F508 and PIC12F509.

“Microchip is continuing its leadership in the 8-bit microcontroller market, further driving the move

to Flash program memory by offering it in our most popular devices,” said Steve Drehobl, Vice

President of the Security, Microcontroller and Technology Development Division. “This Baseline

PIC microcontroller family opens new doors of effi ciency and functionality to engineers designing

low-cost applications.”

Microchip Adds Flash Program Memory to its Most Popular Baseline PIC® Microcontrollers

Broad customer base currently utilizing Microchip’s

baseline OTP microcontrollers can easily migrate to

the benefi ts of Flash Program Memory

Other signifi cant features of these new Baseline PIC microcontrollers include:

• Standard Flash Program Memory

• 4 MHz Internal Oscillator

• Baseline 12-bit Core with 33 Instructions and Two Stack Levels

• 25 mA Source/Sink Current I/O

• Low-power (100 nA) Sleep Current

• One 8-bit Timer (TMR0)

• Watchdog Timer (WDT)

• In-Circuit Serial Programming™ (ICSP™) Capability

• Power-on Reset

• Power-saving Sleep Mode

Applications well suited for these cost-effective Flash microcontrollers include:

Logic Control: Any form of delay, smart gates, signal conditioning, simple state machines, encoders/decoders, I/O expanders and small peripheral logic functions on larger PC Boards.

Mechatronics: Includes smart switches, mode selectors, remote I/Os, timers, LED fl ashers and any other form of mechanical timers and switches.

Waveform Generation: Traditional 555 timer applications, such as PWMs, remote control encoders, pulse generation, programmable frequency source and replacements for resistor-programmable oscillators

Small Home Appliances:Blenders, toasters, coffee machines and electric toothbrushes.

All fi ve devices are available today for sampling, and volume production is planned for August.

For more product information visit: www.microchip.com/pic12fxxx_pic16fxxx

††Gartner Dataquest, 2002 Microcontroller Market Share and Unit Shipments, Tom Starnes, June 2003

For more information visit www.microchip.com 5

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

Device extends battery life; offers open-drain

output and push-pull

Microchip Offers Low Power, Low Voltage Detector In a Space-Saving Package

This family of low-power devices can operate on a supply voltage as low as 1V and typically consume less than 1 microamp of current.

The MCP111 (open-drain output) and MCP112 (push-pull output) are ultra low-power voltage detectors offered in a 3-pin SOT-23, SC-70 and TO-92 package. The combination of low power, small packages and low cost makes these devices ideal for many portable and consumer-electronics applications where space and power consumption are critical. Noisy environments and unreliable power sources may create a variety of system-level problems for microcontrollers that can be eliminated with a power-on reset function. These power-on reset devices are designed to hold the microcontroller in reset until the supply voltage reaches a stable, predetermined operating level. These devices also protect against brown-out conditions that occur as a result of the supply voltage dropping below a tolerable operating level.

These attachable devices are synergistic with Microchip’s PIC® microcontrollers featuring nanoWatttechnology. The low operating current of the MCP111/112, combined with the PIC microcontroller featuring nanoWatt technology power-managed modes, enables total control of system power consumption.

For more product information contact any Microchip sales representative or authorized worldwide

distributor, or visit www.microchip.com.

For more product information visit: www.microchip.com/mcp111_112

Features:

• Ultra low supply current: 1.75 µA (max.)

• Precision monitoring options: – 1.90V, 2.32V, 2.63V, 2.90V, 2.93V, 3.08V, 4.38V and 4.63V

• Resets microcontroller in a power-loss event

• Active-low VOUT pin: – MCP111 active-low, open-drain – MCP112 active-low, push-pull

• Available in SOT-23-3, TO-92 and SC70 packages

• Temperature Range: – Extended: -40°C to +125°C (except MCP1XX-195) – Industrial: -40°C to +85°C (MCP1XX-195 only)

Applications:

• Critical µC and µP Power Monitoring Applications

• Computers

• Intelligent Instruments

• Portable Battery-Powered Equipment

VDD

Comparator

VOUT

VSS

+

OutputDriver

Band Gap Reference

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

For more information visit www.microchip.com 6

The appliance market is in the middle of a paradigm shift. Product designs that have traditionally been a mixture of mechanical and analog components are swiftly migrating into the digital realm. Microcontrollers, now as small as a 6-pin SOT-23, are improving the performance and safety of appliances by adding intelligence to what were once dim-witted machines. Take a coffee maker for instance. Mid-range coffee makers are now offering features like automatically brewing a pot of coffee for you when you wake up. These makers can also automatically shut themselves off if left unattended. We’re going to take a look at the migration from a basic coffee maker to one with some added features in the next few paragraphs.

Let’s first take a look at your average no-frills coffee maker. You can walk down to your local department store and pick up one of these coffee makers for around $20. The electric components in the coffee maker consist of a power cord, a 120V AC switch, a couple of fuses, a heating element and a thermal breaker. The purpose of the heating element is two-fold. One, it heats water in an adjacent metal tube. The water turns to steam and rises to the top of the pot where it re-condenses and percolates through the coffee grounds. Secondly, the heating element keeps the pot warm once the coffee is made. Your coffee is prevented from getting too hot by the thermal breaker. Its job is to sense when the heating element reaches a certain temperature and then trip, causing a break in the circuit. After the heating element cools, the thermal breaker resets and the process starts all over again. Your coffee is warm and tasty but if you‘re not around to turn off the maker, your coffee will soon turn into a thick coffee sludge and then evaporate altogether, except for a baked-on brown crust in your pot. In our digital world, we demand more of our coffee makers, don’t we?

Enter the PIC microcontroller, along with the transformerless power supply and a few other necessary components. For less than 50 cents, you can buy the components necessary to create a resistive transformerless power supply (see Figure 1.) This will allow you to power a microcontroller, such as the PIC16F675, directly from 110V AC. Now, your coffee maker has brains! Two more essential systems are needed: a way to sense the temperature of the heating element and a way to vary the current to the heating element.

The temperature of the heating element can be determined in a cost-effective way by sensing the current through the heating element. The resistance of the heating element is a function of the temperature of the element. Current is inversely proportional to resistance. A sense resistor in parallel with the heating element creates a way to sense the current consumed by the heating element. A differential amplifier is used to magnify the voltage changes across the sense resistor. This voltage is measured using an analog-to-digital converter channel on the PIC12F675.

A triac in series with the heating element provides a way for the microcontroller to vary the current to the heating element. The zero crossing point of the AC waveform is sensed by pin 2 in the circuit shown. This gives the microcontroller a reference point from which to switch the triac on and off. If the hot plate has reached its optimal temperature, for instance, the triac can switch on, alternating periods of the AC waveform in order to maintain a constant temperature.

Compared to the no-frills coffee maker, the microcontroller-based coffee maker will allow the coffee to stay at a constant temperature in addition to providing auto-shutdown capability. A number of other features can be added, once a microcontroller is on-board including an LED display, a clock readout, or automatic start-up. The total cost of this upgrade comes to about $2 at the component level. To be sure, the consumer will see a price increase several times this amount, but for the added functionality and flair most are willing to pay it.

Adding Flair to a Coffee Maker with a PIC® Microcontroller by Reston Condit, Application Engineer, Microchip Technology Inc.

Figure 1: Coffee maker using the PIC12F675

For more information visit www.microchip.com 7

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

For more information visit www.microchip.com 7

Tips n’ Tricks - Power Managed PICmicro® Microcontrollers

(Featuring nanoWatt Technology)

VDD

I/O

TX

RX

VDD

OFF/ON

RX

TX

RS-232PIC16F

TIP 1. Low Energy Power Supplies

Designing the power supply for a low-power device can be very tricky. There are many considerations including:

1. Battery Capacity

2. Internal Battery Resistance

3. Battery Size

4. Battery Cost

5. Battery Weight

6. Voltage Regulator Minimum Regulation Voltage

7. Voltage Regulator Quiescent Current

Batteries come in all shapes, sizes and chemistry. A small, high capacity battery typically has a higher internal resistance, so it is less useful for high-current applications. Batteries good for high current generally have lower capacity and higher weight than a similar sized high resistance battery. Examples are NiCd and NiMh. The NiMh battery is low in weight, high in capacity and small in size. However, it has a much higher internal resistance than the NiCd. Rapid discharge of the NiMh will seriously decrease the life. The high internal resistance will not affect most low current applications, but if the application requires a burst of current, it is possible for the voltage to sag and the PICmicro® MCU could reset. Think of a RF transponder. Most of the time it is sitting idle, but upon demand, it must produce a powerful radio burst.

If VDD must be kept constant or the battery voltage is too large, a voltage regulator may be used in the application. If you add a voltage regulator, you increase the current consumption by the

quiescent current of the regulator (the current used by the regulator to regulate).

TIP 2. I/O Device Control (continued)

TIP 3. Low Power Timer1

Applications requiring Timer1 to have a clock crystal connected to its T1OSO and T1OSI pins must take PCB layout into consideration. The new low-power Timer1 consumes very little current, therefore making its oscillator circuit sensitive to neighboring circuits.

To start, the oscillator circuit (including crystal and capacitors) should be located as close as possible to the microcontroller. Other than VDD and VSS, no other circuits should be passing through the oscillator boundaries. If it is unavoidable to have high-speed circuits around the oscillator circuit, then a guard ring should be placed around the oscillator circuit and microcontroller pins similar to the fi gure shown here. It would also help to have the oscillator’s circuit placed over a ground plane.

(CONTINUED)

TIP 2. I/O Device Control

When power consumption is crucial in an application, designers look for ways of saving as much power as possible. The fi rst obvious way is to put the microcontroller to SLEEP when there is no need for it to be running. Another solution is to clock the device at a lower frequency to consume less current. If there are other ICs on the PCB, it is possible to use an I/O pin to turn them off and on when they are not needed. Some of these ICs have a control pin dedicated for this (see Figure 1). What if there is no dedicated control pin? The I/O pin can be tied to the VDD pin of the devices. There are limitations to this. The device can not draw more than the rated source current of the microcontroller I/O pin and must have a VDD requirement equal to the microcontroller’s VDD. An alternative would be to tie an output pin to control a switch, which controls power to other devices.

VSS

OSC1

OSC2

RB7

RB6

RB5

Figure 1:

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

For more information visit www.microchip.com 8

TIP 4. Clock Switching PIC16F Dual Clock

TIP 5. Config Port

Although the following practice may seem routine, PORT I/O initialization is overlooked many times. On a POR (Power-on Reset), the PORT registers (Ex. PORTB) have an unknown value. If the TRIS registers (Ex. TRISB) are confi gured before the PORT registers are set or cleared, unexpected code behavior can result. The instruction sequence below is an example of how I/O initialization should be handled.

Example: Clear PORTB and confi gure all PORTB I/O as outputs:

banksel PORTB ;bank 0clrf PORTB ;clear PORTBbanksel TRISB ;bank 1

clrf TRISB ;confi gure for outputs

For more information visit:

www.microchip.com/solutions/tipstricks/june04

The PIC16F62X devices are equipped with a second, low-speed internal oscillator. This oscillator is available when the device is operating from Internal RC (INTRC), External RC* (EXTRC), or External Resistor** (ER) modes. It can be used to operate the microcontroller at low speeds for reduced power consumption. The actual speed of this oscillator is not calibrated, so expect 20% - 40% variability in the oscillator frequency.

To change oscillators, simply toggle bit 3 (OSCF) in the PCON register. If the bit is clear, the low-speed oscillator is used. If the bit is set, then the oscillator confi gured by the CONFIG bits is used.

* EXTRC mode only available on A parts. ** ER mode only available on the non-A parts.

All PICmicro® MCUs have bi-directional I/O pins. Some of these pins have analog input capabilities. It is very important to pay attention to the signals applied to these pins so the least amount of power will be consumed.

Digital Inputs:

A digital input pin consumes the least amount of power when the input voltage is near VDD orVSS. If the input voltage is near the midpoint between VDD and VSS, the transistors inside the PICmicro MCU are biased in a linear region, and they will consume a signifi cant amount of current. This current drain is most likely to occur if the application uses pin-overloading tricks, such as using a charging capacitor to read multiple switches or driving many LEDs from a few I/O pins. Sometimes it may be better to reconfi gure inputs to outputs to hold a known condition and minimize current.

Digital Outputs:

There is no additional current consumed by a digital output pin other than the current goingthrough the pin to power the external circuit. Pay close attention to the external circuits to minimize their current consumption. Pay special attention to any bias circuits or pull-up/down

circuits that may be required.

Analog inputs:

Analog inputs are very high impedance so they consume very little current. They will consume less current than a digital input if the applied voltage would normally be centered between VDD

and VSS. Sometimes it is appropriate and possible to confi gure digital inputs as analog inputs when the digital input must go to a low-power state.

Pay attention to the behavior of the pins and determine what the pin I/O state must be whenentering and leaving each Power mode. The wrong choice for one pin can cause a signifi cantpower increase and destroy the life of the application.

TIP 6. I/O Initialization

TIP 7. Two-Speed Start-up

This feature is new to the PIC® microcontroller family and is available on some of the nanoWatt Technology devices. Using the internal oscillator, it allows the user to execute code, while waiting for the Oscillator Start-up (OST) timer to expire (LP, XT or HS Modes). This feature is enabled through the IESO confi guration bit. By the default setting of the OSCCON register, Two-Speed Start-up will clock the device from the INTRC (32 kHz) until the OST has expired. Switching to a faster internal oscillator frequency can optimize this feature. The example below shows several stages on how this can be achieved. The number of frequency changes is dependent upon the designer’s discretion. Assume a 20 MHz crystal (HS Mode) in the PIC18F example shown below.

Tcy(Instruction Time) Instruction org 0x05 ;RESET vector125 µs @ 32 kHz bsf STATUS,RP0 ;bank1125 µs @ 32 kHz bsf OSCCON,IRCF2 ;switch to 1 MHz4 µs @ 1 MHz bsf OSCCON,IRCF1 ;switch to 4 MHz1 µs @ 4 MHz bsf OSCCON,IRCF0 ;switch to 8 MHz500 ns application code500 ns application code… …... …(eventually OST expires, 20 MHz crystal clocks the device) 200 ns application code… ….

.. …

Tips n’ Tricks - Power Managed PICmicro® Microcontrollers

(Featuring nanoWatt Technology)

For more information visit www.microchip.com 9

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

Don’t Miss Out,

Registration

Ends this Month!

What is it:MASTERs is a 4-day technical conference where you can interface with Microchip’s architects and developers. Select from 65 classes taught by Microchip’s technical staff.

� 65 technical classes - 41 new classes this year� 29 hands-on classes� All skill levels � Networking activities and evening entertainment

Who Should Attend:� Design engineers� Engineering managers� Any engineer who is looking for solutions to embedded control challenges

or in-depth education on Microchip’s products

Dates:Wednesday, July 21 through Friday, July 23 with optional Wednesday morning and Saturday classes available at no additional charge

Location:The Westin Kierland Resort in Scottsdale, Arizona

Cost:US $995. Includes classes, material, accommodations on July 21, 22 and 23, meals and evening entertainment

Class Title Abstract Prerequisites Hours Level

801 BEG

UPDATE

HANDS-ON

PIC® Microcontroller

Starter Course

This is the primary course for those that are new to the PIC microcontroller. Learn about the aspects of developing a simple microcontroller application, such as architecture, instruction set, development environment, programming, device selection and buzzwords. Attendees write, program and test their machine language programs on actual working hardware platforms. Note: This is not an introductory course to electronics or programming.

Basic understanding of pro-gramming and electronic circuits

2 1

824 DHO

NEW

HANDS-ON

Advanced Hands-on

Programming with the

dsPIC30F

This class will build on the “Getting Started Programming on the dsPIC30F” hands-on class and focus on combining the MPLAB®

C30 C compiler with features of the dsPIC30F. The user will learn how to use Program Space Visibility, program and erase the data EEPROM and use other advanced features of the dsPIC30F. Sample applications will be developed, which use the advanced fea-tures of the 12-bit ADC, UART, data EEPROM and interrupt controller. The student will also gain exposure to the free MPLAB Visual Initializer tool and the free dsPIC30F Peripheral and Math Libraries. The C programming language, MPLAB In-Circuit Debugger 2 and dsPICDEM™ 1.1 development board will be used for all labs.

Experience in ”C” programming language

Base working knowledge of the dsPIC30F architecture

4 3

851 CHG

NEW

HANDS-ON

Optimizing Available Capacity

with Microchip Battery Man-

agers and Chargers

An examination of the complete battery solutions available from Microchip and an in-depth study of two system examples. Each example will include requirements of the battery sub-system, product selection criteria, schematic solutions, layout considerations and pack confi guration.

None 2 2

A sample of this year’s MASTERs Conference Class Offerings:

Networking Opportunities:

Got a problem? Want to discuss your engineering questions with the experts? Come join the Networking Neighborhood on Thursday, July 22nd from 7:00 - 9:00 PM. Relax over a drink and discuss your issues with experts on various topics. Our engineers and consultants have an extremely wide range of experience. Various areas of expertise and knowledge will be posted based on what the consultants have learned over their many years of experience. You can focus in on your interests or just enjoy a lively technical discussion with individuals who have been developing with Microchip products for a long time. You can continue your discussions over dinner anytime or during any other evening event.

Evening Events:We will offer various entertaining and competitive events every evening including a Pool Party, Sand and Water Volleyball Competitions, a Robot Competition, Grand Prix Slot Car Championship, Casino Tables and Sports Bar Games.

Register Today:

Visit www.microchip.com/masters

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

For more information visit www.microchip.com 10

WebSeminar Series on www.microchip.com/webseminars

June 23, 1:00 PM Pacific Time

An Introduction to the Controller Area Network (CAN)

Abstract: The Controller Area Network (CAN) has become an increasingly popular protocol for a number of different applications. This web seminar provides an introduction to CAN and will help you gain a basic understanding of this mature, robust serial protocol. Topics include a definition of the CAN protocol and what it incorporates; an investigation of the message frames; a look at the CAN bit time and its components, as well as a brief overview of proper bit timing procedures. This seminar includes a

discussion on error frames and error handling by the CAN protocol.

Presenter: Pat Richards, Senior Applications Engineer

Recently Archived Seminars:

Control the World with the World’s Smallest Microcontroller

(PIC10F)

Abstract: This web seminar covers a high level introduction to the new PIC10F family of microcontrollers - the world’s smallest microcontroller. Learn about the unique features of this new device family and how they apply to your embedded designs. See how size and function can be used to your advantage. You will also see examples of enhanced logic control, advanced mechanical controls, as well as Electronic Glue using the tiny, new PIC10F microcontrollers.

Presenters: Ian Lao (top), Senior Applications Engineer;Keith Curtis (bottom), Principal Applications Engineer

Learn about Microchip products and design techniques from our growing library of archived web seminars. For your convenience, the material is available in a number of formats: slides + audio; slides + text in pdf format; streaming video.

Microchip strives to provide WebSeminars on a wide range of topics. If you have a suggestion for a topic that is not available, please let us know. Go to the WebSeminar page forsubmission information.

www.microchip.com/webseminars

Other Archived Web Seminars That May Interest You

Archived versions of the WebSeminars shown in the table below are available for you to download and view whenever you wish.

Recording Title Category Date Duration

Control the world with the Worlds Products 11 Jun 2004 30 min Smallest Microcontroller (PIC10F) Predict the Repeatability of Your ADC to the BIT Analog 19 May 2004 20 min What Does “Rail-to-Rail” Operation Really Mean? Analog 21 Apr 2004 20 min Introduction to MPLAB IDE Dev. Tools 30 Mar 2004 25 min Lithium-Ion Battery Charging: Analog 23 Mar 2004 20 minTechniques and Trade-offs Techniques that Reduce System Noise Analog 18 Feb 2004 20 minin ADC Circuits Introduction to Microchip’s Development Tools Dev. Tools 17 Feb 2004 25 min Wireless Communication using the Applications 21 Jan 2004 20 minIrDA Standard Protocol Driving Lumileds LEDs with Microchip Applications 14 Jan 2004 60 minMicrocontrollers AC Induction Motor (ACIM) control using Motor Control 14 Jan 2004 20 minthe PIC18FXX31 Peripheral Rich, Low Pin Count, PIC MCUs Products 09 Jan 2004 30 min with nano-Watt Technology Brushless DC motor (BLDC) motor control Motor Control 18 Dec 2003 20 minusing PIC18FXX31 Smaller Packages = Bigger Thermal Challenges Analog 17 Dec 2003 20 min Design considerations when adding CANbus Applications 19 Nov 2003 20 min to your System Select the Right Operational Amplifi er for your Analog 15 Oct 2003 20 min Filtering Circuits Amplify sensor signals using the PGA Analog 24 Sep 2003 20 min Microchip’s nanoWatt Technology Products 08 Apr 2003 45 min

For more information visit www.microchip.com 11

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

What’s New in Microchip Literature?

Click on a Document Title to view the document.

Type of Document Title of Document DS# Print/Web

Application Note VF Control of 3-Phase Induction Motors Using PIC16F7X7 MCUs, AN889 00889B web

Oscillator Circuits for RTD Temperture Sensors, AN895 00895A web

Data Sheet PIC12F508/509 - PIC16F505 8/14-Pin, 8-Bit Flash MCU 41236A web

24AA024/24LC024/24AA025/24LC025 2K I2C™ Serial EEPROM 21210G web

24XX512 512K I2C™ Serial EEPROM 21754E web

PS700 Battery Monitor Data Sheet 21760D web

Micropower Voltage Detector Data Sheet 21889A web

Errata dsPIC30F2010, Rev. A0 Silicon/Data Sheet Errata 80178D web

dsPIC30F2010, Rev. A1 Silicon/Data Sheet Errata 80186A web

dsPIC30F601X, Rev. A3 Silicon/Data Sheet Errata 80176E web

dsPIC30F Family Reference Manual Errata 80169D web

PIC12F629/675 Data Sheet Errata 80125C web

PIC18F1220/1320 Rev. B4 Silicon/Data Sheet Errata 80175C web

MCP2515 Rev. B Silicon/Data Sheet Errata 80179B web

MCP215X Rev. B Silicon/Data Sheet Errata 80139C web

Product Brief PIC10F20X 6-Pin, 8-Bit Flash MCU 41210B web

Programming Specs. PIC16F505 Memory Programming 41226B web

PIC12F508/509 Memory Programming 41227B web

PIC10F200/202/204/206 Memory Programming 41228B web

PIC18F2XX0/2XX5/4XX0/4XX5 Flash MCU Programming 39622B web

User Guides MPLAB® C18 C Compiler Getting Started 51295C web

MPLAB® C18 C Compiler User’s Guide 51288C web

MPLAB® C18 C Compiler Libraries 51297C web

dsPICDEM.net™ 1 and dsPICDEM.net™ 2 Dev. Board User’s Guide 51471A web

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

For more information visit www.microchip.com 12

What’s New in Microchip Literature? (Continued)

Click on a Document Title to view the document.

Type of Document Title of Document DS# Print/Web

Sell Sheet dsPIC30F Asymmetric Key Embedded Encryption Library 70127A web

dsPIC30F Soft-Modem Library Sell Sheet 70126A web

dsPIC30F Acoustic Echo Cancellation Library 70123A web

dsPIC30F Noise Suppression Library 70124A web

MCP111/112 - Microcontroller Supervisor and Reset Product Family 21303D web

Technical Brief An Introduction to USB Descriptors 91054C web

PS/2 to USB Mouse Translator 91055C web

Demonstrating the Set-Report Request 91056C web

Demonstrating the Soft Detach Function 91058C web

Misc. PICmicro® DC Motor Control Tips ‘n Tricks 41233A printed/web

The Microchip name and logo, the Microchip logo, Accuron, dsPIC, KEELOQ, microID, MPLAB, PIC, PICmicro, PICSTART, PRO MATE, PowerSmart, rfPIC and SmartShunt are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

AmpLab, FilterLab, MXDEV, MXLAB, PICMASTER, SEEVAL, SmartSensor and The Embedded Control Solutions Company are registered trademarks of Microchip Technology Incorporated in the U.S.A.

Analog-for-the-Digital Age, Application Maestro, dsPICDEM, dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP, ICEPIC, Migratable Memory, MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPICDEM, Select Mode, Smart Serial, SmartTel and Total Endurance are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

SQTP is a service mark of Microchip Technology Incorporated in the U.S.A.

All other trademarks mentioned herein are property of their respective companies.

For more information visit www.microchip.com 13

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - June 2004

Visit Microchip Technology’s new, user-friendly e-commerce site:

� Special offers on silicon and development systems

� Powerful parametric search tool

� Live inventory status

� Hassle-free buying

Go to http://buy.microchip.com and register under “My Profile”

Other key features of the

buy.Microchip site include

our wide availability of

product and the depth of

inventory available.

buy.microchip provides

inventory status or an

accurate lead-time on

nearly every standard

device Microchip offers.

In addition, buy.Microchip

has the most advanced

tool listing available for

Microchip’s Development

Tools with key descriptions

and pictures for nearly

every tool offered by

Microchip.

Figure 2. Parametric Search Tool

Figure 3. Development Tools Catalog

Figure 1. Home Page

HawthoE
http://buy.microchip.com