oct 05 microsolutions - microchip...

12
www.microchip.com Microcontrollers Digital Signal Controllers Analog Serial EEPROMs IN THIS ISSUE PAGE 1 Energize Your Applications with Seminars on Introductory Embedded Control and Portable Management Design PAGE 2 Microchip Ships Four Billionth PIC ® Microcontroller PAGE 3 Microchip’s Free ZigBee Protocol Stack Now Supports the UBEC uz2400 Transceiver PAGE 4 Passive Keyless Entry (PKE) Reference Design PAGE 5 Using Clock Dithering to Meet EMC Requirements PAGE 6 See How Easy it is to Start Designing with Baseline and Mid-Range Microcontrollers: Enter the START NOW Design Contest PAGE 7-8 Tips &Tricks: LCD PICmicro ® Microcontrollers PAGE 9 Archived Web Seminars PAGE 10-11 What’s New in Microchip Literature? PAGE 12 Web Highlights Beginner Introductory Embedded Control Solutions (Morning Session) Watch the evolution of a simple application into a more complex design with added functionality using PIC ® microcontrollers, analog products and various easy-to-use development tools and starter kits. All attendees will receive a limited time offer for a discount on Microchip’s development tools. Register for this session if: You have not designed with PIC microcontrollers or Microchip’s analog products You are interested in 8-bit embedded control You want to learn about Microchip’s analog products What you will learn: Overview of Microchip product families Overview of Microchip’s hardware and software tools Where to find more information Agenda: Overview of Microchip Technology’s product families Basic Design Example: Simple low-power design with a 6-pin microcontroller and basic tools Taking design to the next level: Adding more intelligence with more advanced microcontrollers and stand-alone analog devices Improving the System Power Consumption Advanced Control: Adding advanced calculation and control in applications Cost: FREE Details and Registration (U.S. and Canada) Details and Registration (Europe) Find out how Microchip has helped embedded control designers energize their applications with a better understanding of analog and digital power control and consumption. For more details, visit: http://techtrain.microchip.com/seminars/ Experienced Portable Power Management Solutions (Afternnon Session) This seminar addresses how battery energy is efficiently transferred to the system load and how energy is properly restored to rechargeable batteries. Power-management architecture advantages and disadvantages for recharging batteries is a primary focus with background theory followed by practical examples. Register for this session if: You have attended the morning session OR, You are currently using battery management applications and are looking for new solutions and feature sets You are thinking about incorporating battery charging designs into your applications or want more background in battery chemistries What you will learn: Battery chemistry performance tradeoffs Efficient energy removal techniques How to effectively restore energy to rechargeable batteries Agenda: Battery Basics Efficiently transferring Battery Energy to the System Load Systematic Approach to Designing a Charging System Cost: $99.00 USD - Includes lunch plus 2 development boards Details and Registration (U.S. and Canada) Details and Registration (Europe) USA and CANADA SEMINAR DATES AND LOCATIONS (Introductory and Experienced) CITY STATE DATE Dorval Canada 18 Oct 2005 Mississauga Canada 20 Oct 2005 West Conshohocken PA 25 Oct 2005 Minnetonka MN 26 Oct 2005 Fishers IN 26 Oct 2005 Miamisburg OH 27 Oct 2005 Cromwell CT 27 Oct 2005 East Hanover NJ 01 Nov 2005 Waukesha WI 01 Nov 2005 San Jose CA 02 Nov 2005 Wheeling IL 03 Nov 2005 Chelmsford MA 03 Nov 2005 Baltimore MD 04 Nov 2005 Cranberry Township PA 04 Nov 2005 Duluth GA 08 Nov 2005 Grand Rapids MI 08 Nov 2005 Ann Arbor MI 09 Nov 2005 Agoura Hills CA 09 Nov 2005 Deerfield Beach FL 10 Nov 2005 Overland Park KS 10 Nov 2005 Richardson TX 10 Nov 2005 San Diego CA 15 Nov 2005 Houston TX 15 Nov 2005 Rochester NY 16 Nov 2005 Austin TX 16 Nov 2005 Newport Beach CA 17 Nov 2005 Salt Lake City UT 30 Nov 2005 Burnaby Canada 07 Dec 2005 Tigard OR 08 Dec 2005

Upload: others

Post on 06-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs

IN THIS ISSUE

PAGE 1

Energize Your Applications

with Seminars on Introductory

Embedded Control and

Portable Management Design

PAGE 2

Microchip Ships Four Billionth

PIC® Microcontroller

PAGE 3

Microchip’s Free ZigBee™

Protocol Stack Now Supports

the UBEC uz2400 Transceiver

PAGE 4

Passive Keyless Entry (PKE)

Reference Design

PAGE 5

Using Clock Dithering to Meet

EMC Requirements

PAGE 6

See How Easy it is to Start

Designing with Baseline and

Mid-Range Microcontrollers:

Enter the START NOW Design

Contest

PAGE 7-8

Tips &Tricks: LCD PICmicro®

Microcontrollers

PAGE 9

Archived Web Seminars

PAGE 10-11

What’s New in Microchip

Literature?

PAGE 12

Web Highlights

BeginnerIntroductory Embedded Control Solutions

(Morning Session)

Watch the evolution of a simple application into a more complex

design with added functionality using PIC® microcontrollers,

analog products and various easy-to-use development tools

and starter kits. All attendees will receive a limited time offer for

a discount on Microchip’s development tools.

Register for this session if:

• You have not designed with PIC microcontrollers or

Microchip’s analog products

• You are interested in 8-bit embedded control

• You want to learn about Microchip’s analog products

What you will learn:

• Overview of Microchip product families

• Overview of Microchip’s hardware and software tools

• Where to fi nd more information

Agenda:

• Overview of Microchip Technology’s product families

• Basic Design Example: Simple low-power design with a

6-pin microcontroller and basic tools

• Taking design to the next level: Adding more intelligence

with more advanced microcontrollers and stand-alone

analog devices

• Improving the System Power Consumption

• Advanced Control: Adding advanced calculation and control

in applications

Cost: FREE

Details and Registration (U.S. and Canada)

Details and Registration (Europe)

Find out how Microchip has helped embedded control designers energize their applications with a better understanding of analog and digital power control and consumption. For more details, visit:

http://techtrain.microchip.com/seminars/

ExperiencedPortable Power Management Solutions

(Afternnon Session)

This seminar addresses how battery energy is effi ciently

transferred to the system load and how energy is properly

restored to rechargeable batteries. Power-management

architecture advantages and disadvantages for recharging

batteries is a primary focus with background theory followed

by practical examples.

Register for this session if:

• You have attended the morning session OR,

• You are currently using battery management applications

and are looking for new solutions and feature sets

• You are thinking about incorporating battery charging

designs into your applications or want more background in

battery chemistries

What you will learn:

• Battery chemistry performance tradeoffs

• Effi cient energy removal techniques

• How to effectively restore energy to rechargeable batteries

Agenda:

• Battery Basics

• Effi ciently transferring Battery Energy to the System Load

• Systematic Approach to Designing a Charging System

Cost: $99.00 USD - Includes lunch plus 2 development boards

Details and Registration (U.S. and Canada)

Details and Registration (Europe)

USA and CANADASEMINAR DATES AND

LOCATIONS(Introductory and Experienced)

CITY STATE DATE

Dorval Canada 18 Oct 2005

Mississauga Canada 20 Oct 2005

West Conshohocken

PA 25 Oct 2005

Minnetonka MN 26 Oct 2005

Fishers IN 26 Oct 2005

Miamisburg OH 27 Oct 2005

Cromwell CT 27 Oct 2005

East Hanover NJ 01 Nov 2005

Waukesha WI 01 Nov 2005

San Jose CA 02 Nov 2005

Wheeling IL 03 Nov 2005

Chelmsford MA 03 Nov 2005

Baltimore MD 04 Nov 2005

Cranberry Township

PA 04 Nov 2005

Duluth GA 08 Nov 2005

Grand Rapids MI 08 Nov 2005

Ann Arbor MI 09 Nov 2005

Agoura Hills CA 09 Nov 2005

Deerfield Beach FL 10 Nov 2005

Overland Park KS 10 Nov 2005

Richardson TX 10 Nov 2005

San Diego CA 15 Nov 2005

Houston TX 15 Nov 2005

Rochester NY 16 Nov 2005

Austin TX 16 Nov 2005

Newport Beach CA 17 Nov 2005

Salt Lake City UT 30 Nov 2005

Burnaby Canada 07 Dec 2005

Tigard OR 08 Dec 2005

Page 2: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 2

Microchip has shipped its four billionth

PIC® microcontroller, the PIC16F877

high-performance Flash microcontroller,

to Insta Elektro of Lüdenscheid,

Germany. Microchip delivered its

four-billionth microcontroller barely

19 months after delivering its three-

billionth microcontroller in 2004.

Today’s announcement demonstrates

the industry’s continued acceptance of

Microchip’s PIC microcontrollers as the

high-performance, cost-effective solution

for embedded control designs.

“We are extremely grateful to our

customers worldwide for giving us the opportunity to serve them by

delivering over four billion PIC microcontrollers,” said Steve Sanghi,

Microchip’s President and CEO. “Microchip continues to gain worldwide

marketshare in the 8-bit microcontroller market because its PIC

microcontroller architecture, MPLAB® development systems, worldwide

distribution partners and field sales applications support provide the

maximum benefits for customers to reach their design goals.” Microchip

offers more than 285 PIC microcontrollers, has shipped over 370,000

development tools and partners with more than 120 global third-party tool

manufacturers. Microchip provides over 45,000 customers worldwide with

the most extensive product choices that enable their success.

A Microchip customer for more than 10 years, Insta Elektro today uses

the broad line of embedded control solutions from Microchip, including

microcontrollers, serial EEPROMs and analog devices. “Our long-

standing relationship with Microchip Technology has been beneficial to

both parties and we are proud to be the recipient of their four billionth

PIC microcontroller,” said Dr. Herbert Schiffke, President, Insta Elektro.

“The exceptional development tools and support from Microchip help us

minimize development and qualification time.”

Insta Elektro designs, develops and manufactures lighting; blind (shutter)

control; heating and air conditioning; security and sensor products.

Microchip Ships Four Billionth PIC® Microcontroller

Insta uses a range of PIC microcontrollers to add intelligence to their

systems that save energy and reduce management costs. Insta’s products

use serial communications to allow full system integration, enabling

central control of large buildings and lighting systems to interact with blind

controllers while optimizing energy use.

The extensive range of Microchip PIC microcontrollers allows Insta to

select products that perfectly match the needs of the application, while the

compatibility between devices ensures that code can be re-used.

RETURN TO FRONT PAGE

About Insta Elektro

Insta was founded in 1970 by three well-known companies in the installation sector: Berker,

Gira and Jung. As an electronics technology centre, Insta develops and fabricates products

for many sectors of industry, as well as the three founding companies. The main sector

is the lighting industry. Insta is known as a competent partner with sound know-how and

innovative ideas, particularly in the development of high-quality serial products. In many

product ranges, Insta also offers the development of individual, custom-made solutions.

Page 3: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 3

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

RETURN TO FRONT PAGE

Microchip‘s Free ZigBee™ Protocol Stack Now Supports the UBEC uz2400 Transceiver

Microchip’s ZigBee™ Protocol Stack now supports the Uniband Electronic

Corporation (UBEC) uz2400 ZigBee/IEEE802.15.4 2.4 GHz RF transceiver.

Embedded systems designers can now utilize this ZigBee Stack with the UBEC

uz2400 RF transceiver or the Chipcon CC2420 transceiver, providing increased

design flexibility. Microchip offers the smallest and only free (no-cost license

and royalty free) Zigbee Stack, enabling lower development and system costs.

Additionally, Microchip announced it has upgraded its ZigBee Stack to version 3.3,

to meet ZigBee specification version 1.0.

The ZigBee standard is an industry protocol for wirelessly networked control

and monitoring applications. According to the research firm, In-Stat, “802.15.4

SoC & SiP Surge as ZigBee Faces Residential Competition” by Joyce Putscher,

June 2005, # IN0501836MI), its expected that there will be more than 150 million

devices by 2009 taking advantage of the ZigBee protocol’s low-cost, mesh and

low-power capabilities. Many engineers who wish to use the ZigBee protocol in

their embedded designs, especially those at small- and medium-sized companies,

cannot afford the license fees for commercially available ZigBee stacks and do not

have the resources to develop them on their own.

“Microchip offers the smallest and only free ZigBee Protocol Stack on the market.

With support now for UBEC and Chipcon, our engineering customers can choose

the best transceiver for their applications,” said Ganesh Moorthy, Vice President of

the Advanced Microcontroller and Memory Division.

To make it easy for engineers to design with the ZigBee protocol, Microchip

features the PICDEM™ Z Demonstration Kit (DM163027-2), an easy-to-use

evaluation and development platform for ZigBee application designers. The kit

includes all of the hardware, software source-code and printed circuit board (PCB)

layout files needed to rapidly prototype wireless products.

The PICDEM Z development platform is based on Microchip’s PIC18 high-

performance microcontroller family, which supports ZigBee applications and

offers a wide selection of products with 16 Kbytes to 128 Kbytes of Flash program

memory in 18- to 80-pin packages. Microchip’s ZigBee stack is the only stack

small enough to fit into a 16 Kbyte microcontroller, enabling low-cost sensors.

The stack is sized at 33.7 Kbytes for a coordinator and 14.4 Kbytes for reduced

function devices. Microchip’s PICDEM Z platform accelerates customer designs by

providing hardware and a ZigBee protocol stack that can be easily integrated into

wireless products.

Microchip offers more than 63 PIC18 8-bit microcontrollers that support the ZigBee

stack. These PIC® microcontrollers incorporate nanoWatt technology power-

managed modes and self-programmable Flash program memory—key features

for ZigBee applications, many of which are battery operated. Typical ZigBee

applications, such as sensors and controls, can utilize all of Microchip’s product

lines, including the low-power analog portfolio and serial EEPROMs.

Microchip’s ZigBee Stack is available from the Company’s Web site at

www.microchip.com. The PICDEM Z Demonstration Board (DM163027-2) is also

available. For more information, contact any Microchip sales representative or

authorized worldwide distributor. For more information on UBEC’s transceiver,

please visit www.ubec.com.tw.

Page 4: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 4

RETURN TO FRONT PAGE

The Passive Keyless Entry (PKE) Reference Design (APGRD001) demonstrates a fully

functional Passive Keyless Entry system. This solution contains 3 independent boards;

the Key Fob, the Base Station, and the Receiver/Decoder. The Base Station starts the RF

communication by sending out a 125 kHz signal. The Key Fob receives and decodes the

low-frequency challenge from the Base Station. If there is a match, the Key Fob will transmit

a 432 MHz signal back to the Receiver/Decoder. If the Receiver/Decoder recognizes the Key

Fob as a valid device, it will send a signal to unlock the door. The PKE Reference Design

can also be used as a Remote Keyless Entry (RKE) Solution. In this mode a button on the

Key Fob is depressed and a 432 MHz signal is transmitted. Again, if the Receiver/Decoder

recognizes the Key Fob as a valid device, a signal will be set to unlock or lock the doors.

Product Features:

Key Fob:

• PIC16F639: Integrated AFE (Analog Front-end) with PIC® microcontroller

• Supports up to five push-button inputs

• Two LED outputs for valid button and valid low-frequency challenge indication

Base Station:

• Can be commanded by various types of inputs

• Simple momentary switch

• Proximity detector

• Serial-numbered challenge

• CAN and LIN network support

Receiver/Decoder:

• Supports two manufacturer’s codes

• Automatic baud rate detection

• Automatic normal or secure learn detection

• Six learnable transmitters

• LIN Network support

Passive Keyless Entry (PKE) Reference DesignThe 3 independent boards come pre-programmed with the application code. The

PIC16F639 and PIC16F636 can be re-programmed in circuit via the PICkit™ 2 development

programmer. The PIC18F2680 can be re-programmed in circuit via the MPLAB® ICD2

development tool.

A CD-ROM which contains full documentation about the boards, application notes and

software libraries is also included. For more information on the applications, tools and

software libraries, please refer to the Automotive Design Center on the Microchip web site

at: www.microchip.com.

Buy it Now!

LFInitiator

Trigger

KEYFOB

3-Axis

RFTransmitter

Encoder

RKEReceiver

AFE

RFReciever

Decoder

Drivers

Buttons

On-Vehicle

LIN Lock Actuator

Figure 1: Passive Keyless Entry (PKE) Block Diagram

Page 5: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 5

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

Using Clock Dithering to Meet EMC Requirements

Authors: Keith Curtis, Principal Applications Engineer, PICmicro® Microcontroller Products, Microchip

Technology Inc., Justin Milks, SMAD Applications Engineer, and Marty Brown, AIPD Senior Analog FAE

RETURN TO FRONT PAGE

One of the most challenging aspects of high-power, switching power supply

design is its compliance with EMC regulations. These regulations limit the

amount of noise power a circuit can radiate into the environment or conduct

out of the wiring connections over a spectral range from DC to 1 GHz. The

spectrum limits are fixed, regardless of the output power of the switching

power supply. The amount of noise energy escaping from the supply is

proportional to its output power. This makes the noise problem even more

difficult for the higher power-switching power supplies

The more problematic components of the noise are caused by the fixed

switching frequency of the switching power supply. These manifest themselves

as high amplitude peaks within the radiated and conducted noise spectrum.

The designer must typically add additional filtering, snubbing and shielding

to help contain the noise within the power supply structure. Snubbing slows

the rapid current and voltage transitions within the supply, but dissipates

extra power in the process. The input and output filtering must be carefully

designed and physically laid out. Any change in the physical design of the

filter components and their placement can radically affect the effectiveness of

the filter circuit.

One idea that has been gaining popularity is the use of a pseudo-randomly

dithered clock source to spectrally spread out this noise energy. By dithering

the clock, the noise energy is spread over a broader range of frequencies,

thus reducing the noise power at any one frequency.

The original concept of clock dithering is based in radio spread spectrum

technology. Here, both the receiver and the transmitter are randomly shifted

up and down in frequency in a controlled fashion. As long as the transmitter

and the receiver coordinate their next frequency step, the transmitter and

receiver remain in communication. Any other receiver that does not follow

the precise frequency shifting pattern of the transmitter cannot receive the

information. The resulting communications is relatively secure and difficult to

trace due to its random movement in frequency. The RF energy at any one

frequency is greatly reduced.

So, if we rapidly hop the frequency of the switching power supply, we can

achieve the same effect of reducing the amplitude of the spectral peaks with a

much lower amplitude broadband characteristic.

The traditional method of creating a pseudo-random clock is to drive the

Voltage Controlled Oscillator (VCO) with a random control voltage, typically

from a noise diode. Fortunately, we can simplify the system by employing the

tunable oscillator in the PIC10F200 or any of the PIC® microcontrollers.

The oscillator can be outputted by setting the Fosc4 bit in the oscillator

calibration (OSCCAL) register. This places a nominal 1 MHz clock signal on

the GP2 I/O pin of the PIC10F200. The clock can be disabled by the firmware,

which senses the voltage level present on its internal comparator for under-

voltage protection or the state of one of the digital input pins can be used as a

shutdown function. The oscillator clock can then be used as an oscillator input to a PWM control IC, such

as Microchip’s MCP1630.

The PIC10F200’s oscillator is dithered by loading the OSCCAL register with a 7-bit value, generated by a

random number generator routine. This is offered as a free library firmware routine by Microchip.

If the full 7-bit range is used to set the OSCAL register, the frequency outputted to the PWM controller can

shift as low as 600 kHz and as high as 1.2 MHz. While these minimum and maximum frequencies are

not guaranteed, a significant frequency shift can be attained. If the frequency range is too great, one can

limit the range generated by the random number generator algorithm, which will correspondingly limit the

frequency excursion seen on the clock output. The nominal mean center frequency can also be set by the

firmware.

Figure 1: Schematic of the Pseudo-random Clock Generator Circuit

Figure 2b: Spectral Plot for Pseudo-random clockFigure 2a: Spectral Plot for Fixed Frequency Clock

Page 6: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 6

RETURN TO FRONT PAGE

Come to www.microchip.com/startnowcontest today and enter Microchip’s

START NOW Design Contest. Use your imagination, generate innovative uses

for our PIC® microcontrollers, share your knowledge with fellow designers (we

post the winning entries every month), enter to win some prizes (20 prizes

awarded every month) and have some fun. Creativity counts – design ideas

should take no more than about 20 minutes of your time to write up and draw.

Want to know more? Read on.

Your Idea

• Must use one or more of the following new PIC® microcontrollers and can also use

several of our stand-alone analog products for extra bonus points:

PIC10F220 (6-pin)

PIC10F222 (6-pin)

PIC12F510 (8-pin)

PIC16F506 (14-pin)

• Must be technically feasible and appropriate for the “Project Theme” for the month

in which it is entered.

• Must have appropriate electrical connections and draw current.

• Should take no more than 20 minutes of your time to write up and draw the circuit

.

Monthly Prizes• 3 First Place Prizes – PICkit™ 2 Starter Kit with protoboard and cables

• 7 Second Place Prizes – special “Start Now” Sample Kits

• 10 Runners Up – will receive a Microchip Polo shirt

• BONUS PRIZE: If you use one or more Microchip Analog Products in your design,

your entry will be included in an additional monthly drawing for an analog PICtail™

daughter board.

Grand PrizeA grand prize winner, selected by random drawing from among all the qualified

contest entries between August 1 and December 31, 2005, will receive a 6-drawer tool

chest filled with a selection of Microchip Development Tools and product samples.

The imagination and creativity exhibited by the engineers submitting entries in the August “Household Appliance” category made for some very diffi cult judging. The following three entries earned their designers a PICkit™ 2 Starter Kit as fi rst place winners in August. To learn more about their designs visit the Design Contest page at: http://techtrain.microchip.com/startnow/ and click on “Examples”.

See How Easy it is to Start Designing with Baseline and Mid-Range Microcontrollers

Can you spare 20 minutes

to see for yourself how easy

it is to start designing with

Baseline and Mid-Range

microcontrollers?

Wacky Window Washer: entered by John

Bond (South Africa). This simple design is

great for those who have a fear of heights

and dirty windows.

Water Closet Seat Monitor: submitted by Joe

Salkeld (USA). This prize winning design involves

a simple tilt switch interfaced to a PIC12F510 that

provides an effi cient and confi gurable way to notify

notorious seat busters.

PIC® MCU Virtual Vegetable: came to us from

Maarten Hofman (USA). It is a design for an electronic

vegetable that you can boil together with regular

vegetables and will signal when the food is done.

Page 7: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 7

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

Tips ‘n Tricks - LCD PICmicro® Microcontrollers

TIP 1. Contrast Control with a Buck Regulator

Using an LCD PICmicro® microcontroller for any embedded application can provide the benefi ts of system control and human interface via an LCD. Design practices for LCD applications can

be further enhanced through the implementation of these suggested Tips ‘n Tricks. These tips describe basic circuits and software building blocks commonly used for driving LCD displays.

Additional tips and tricks can be found at: www.microchip.com.

Contrast control in any of the LCD PICmicro® microcontrollers is accomplished by

controlling the voltages applied to the VLCD voltage inputs. The simplest contrast

voltage generator is to place a resistor divider across the three pins. The resistor

ladder method is good for many applications, but the resistor ladder does not

work in an application where the contrast must remain constant over a range of

VDDs. The solution is to use a voltage regulator. The voltage regulator can be

external to the device or it can be built using a comparator internal to the LCD

PIC® microcontroller.

The PIC16F917/916/914/913 devices have a special comparator mode that

provides a fi xed 0.6V reference. The circuit shown in Figure 1-1 makes use of

this reference to provide a regulated contrast voltage. In this circuit, R1, R2 and

R3 provide the contrast control voltages. The voltage on VLCD3 is compared to

the internal voltage reference by dividing the voltage at VLCD3 at R4 and R5 and

applying the reduced voltage to the internal comparator. When the voltage at

VLCD3 is close to the desired voltage, the output of the comparator will begin to

oscillate. The oscillations are fi ltered into a DC voltage by R6 and C1. C2 ensures

that the voltages at VLCD1 and VLCD2 are steady.

RETURN TO FRONT PAGE

In Tip #1, a buck converter was created using a comparator. This circuit works great when VDD is greater

than the LCD voltage. The PIC® microcontroller can operate all the way down to 2.0V, whereas most low-

voltage LCD glass only operates down to 3V. In a battery application, it is important to stay operational

as long as possible. Therefore, a boost converter is required to boost 2.0V up to 3.0V for the LCD.

Figure 2-1 shows a circuit for doing this.

TIP 2. Contrast Control Using a Boost Regulator

Figure 1-1: Voltage Generator with Resistor Divider

0.6V

VDD

RA1

RA5

VLC D3

VLCD2

VLCD

LCD

Glass

1

PIC16F91X

R6

R1

R2

R3

R4

R5

C1

C2

C3

Figure 2-1: Boost Converter

PIC16F917/916/914/913

R6

R7

R5

R3

R2

R4

R1

Boost

D2

C2

C1

C2

C1Q1

D3

VDD

D1

In this circuit, both comparators are used. The

voltage set point is determined by the value of

Zenier diode D3 and the voltage at R6:R7. The

rest of the circuit creates a simple multivibrator

to stimulate a boost circuit. The boost circuit can

be inductor or capacitor-based. When the output

voltage is too low, the multivibrator oscillates and

causes charge to build up in C2. As the voltage

at C2 increases, the multivibrator will begin to

operate sporadically to maintain the desired

voltage at C2.

Figure 2-2: Two Types of Boost Converters

The two methods of producing a boost converter

are shown in Figure 2-2. The fi rst circuit is simply

a switched capacitor type of circuit. The second

circuit is a standard inductor boost circuit. These

circuits work by raising VDD. This allows the

voltage at VLCD to exceed VDD.

V BAT

V BAT

Q2

R8

L1

Page 8: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 8

Tips ‘n Tricks - LCD PICmicro® Microcontrollers

RETURN TO FRONT PAGE

TIP 3. Software-controlled Contrast with PWM for LCD Contrast Control

In the previous contrast control circuits, the voltage output was set by a fi xed reference. In some

cases, the contrast must be variable to account for different operating conditions. The CCP

module, available in the LCD controller devices, allows a PWM signal to be used for contrast

control. In Figure 3-1, the buck contrast circuit is modifi ed by connecting the input to RA6 to a

CCP pin. The resistor divider created by R4 and R5 in the previous design are no longer required.

An input to the ADC is used to provide feedback but this can be considered optional. If the ADC

feedback is used, notice that it is used to monitor the VDD supply. The PWM will then be used to

compensate for variations in the supply voltage.

LCDGlass

VDD

AN0

CCP

VLCD2

VLCD1

R6

R1

R2

R3

C1

C2

C3

VDD

VLCD3

LCD PIC®

MCU

D1

R5

Figure 3-1: Software-controlled Voltage Generator

TIP 4. Driving Common Backlights

Any application that operates in a low light condition requires a backlight. Most low-cost

applications use one of the following backlights:

1) Electroluminescent (EL)

2) LEDs in series

3) LEDs in parallel

Other backlight technologies, such as CCFL, are more commonly used in high brightness

graphical panels, such as those found in laptop computers. The use of white LEDs is also more

common in color LCDs, where a white light source is required to generate the colors. Driving

an Electroluminescent (EL) panel simply requires an AC signal. You may be able to generate

this signal simply by using an unused segment on the LCD controller. The signal can also be

generated by a CCP module or through software. The AC signal will need to pass through a

transformer for voltage gain to generate the required voltage across the panel.

LEDs in series can be easily driven with a boost power supply. Figure 4-1 depicts a simple

boost supply with a pulse applied to the transistor. The pulse duration is controlled by

current through R2. When the pulse is turned off, the current stored in the inductor will

be transferred to the LEDs. The voltage will rise to the level required to drive the current

through the LEDs. The breakdown voltage of the transistor must be equal to the forward

voltage of the LEDs multiplied by the number of LEDs. The comparator voltage reference

can be adjusted in the software to change the output level of the LEDs.

VDD

Q2

R1

LED String

R2

To Comparator Input

L1

Figure 4-1: Simple Boost Supply

If the LEDs are in parallel (Figure 4-2), the drive is much simpler. In this case, a single

transistor can be used to sink the current of many LEDs in parallel. The transistor can be

modulated by PWM to achieve the desired output level. If VDD is higher than the maximum

forward voltage, a resistor can be added to control the current or the transistor PWM duty

cycle can be adjusted to assure that the LEDs are operating within their specifi cation.

VDD

R1

LEDString

Figure 4-2: LEDs in Parallel

Page 9: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 9

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

For more information visit: www.microchip.com/webseminars

Seminar Title Category Date Duration

Microchip’s ENC28J60, the World’s Smallest Ethernet Controller Connectivity July 2005 22 min.

dsPIC30F General Purpose Timers Products April 2005 30 min.

Serial Communications using the dsPIC30F I2C™ Module Connectivity April 2005 30 min.

Serial Communications using the dsPIC30F CAN Module Connectivity April 2005 30 min.

dsPIC® DSC SPI™ Communication Module Products March 2005 20 min.

dsPIC® DSC UART Module Products March 2005 20 min.

dsPIC30F Quadrature Encoder Interface Module Motor Control March 2005 20 min.

dsPIC30F Motor Control PWM Module Motor Control March 2005 20 min.

Introduction to Mechatronics and the Mechatronic Design Center Applications Feb 2005 20 min.

Do I Filter Before, After, or Never? Analog Jan 2005 20 min.

Designing Intelligent Power Supplies Applications Dec 2004 30 min.

Introduction to dsPIC30F Architecture (Part 1) Products Dec 2004 20 min.

Introduction to dsPIC30F Architecture (Part 2) Products Dec 2004 20 min.

The LCD PIC® Microcontrollers, PIC18F8490/6490, with 16 Kbytes of Flash in 64- and 80-pin packages Products Nov 2004 20 min.

Thermistor Application for the New MCP6S9X PGA Applications Nov 2004 20 min

Introduction to the dsPIC® DSC Products Nov 2004 20 min.

64 Kbyte Flash Microcontrollers in 28- and 40-pin packages: PIC18F4620 and PIC18F2620 Products Oct 2004 20 min.

Introduction to the Signal Analysis PICtail™ Daughter Board Development Tools Oct 2004 30 min.

Basic dsPIC® DSC Development Tools Development Tools Oct 2004 25 min.

Introduction to MPLAB® SIM Software Simulator Development Tools Sep 2004 25 min.

Get Started with the 64/80-pin TQFP Demo Board Development Tools Sep 2004 20 min.

Tips and Tricks Using MPLAB® IDE v6.61 Development Tools Sep 2004 30 min.

Introduction to the PIC18F High Pin Count and High Density Family of Devices Development Tools Sep 2004 20 min.

Introduction to the MPLAB® Visual Device Initializer (VDI) Development Tools Aug 2004 30 min.

Selecting the Ideal Temperature Sensor Analog Aug 2004 30 min.

PIC10F Development Tools: Small Tools for Small Parts Development Tools Aug 2004 30 min.

An Introduction to the Controller Area Network (CAN) Interface Jun 2004 30 min.

Control the World with the World’s Smallest Microcontroller (PIC10F) Products Jun 2004 30 min.

Predict the Repeatability of Your ADC to the Bit Analog May 2004 20 min.

What Does “Rail-to-Rail” Operation Really Mean? Analog Apr 2004 20 min.

Introduction to MPLAB® IDE Development Tools Mar 2004 25 min.

Lithium-Ion Battery Charging: Techniques and Trade-offs Analog Mar 2004 20 min.

Techniques that Reduce System Noise in ADC Circuits Analog Feb 2004 20 min.

Introduction to Microchip’s Development Tools Development Tools Feb 2004 25 min.

Wireless Communication Using the IrDA® Standard Protocol Applications Jan 2004 20 min.

Driving Lumileds LEDs with Microchip Microcontrollers Applications Jan 2004 60 min.

AC Induction Motor (ACIM) Control Using the PIC18FXX31 Motor Control Jan 2004 20 min.

Archived WebSeminars

RETURN TO FRONT PAGE

Page 10: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 10

What’s New in Microchip Literature?Click on a Document Title to view the document.

RETURN TO FRONT PAGE

Type of Document Title of Document DS# Print/Web

Application Notes AN1004, Using the C18 Compiler to Interface Microwire Serial EEPROMs to PIC18 Devices 01004A Web

AN909, Interfacing SPI™ Serial EEPROMs to PIC16 Devices 00909B Web

AN996, Designing a Digital Compass Using the PIC18F2520 00996A Web

AN257, DTMF Detection Using PIC18 MCUs 00257A Web

AN1003, USB Mass Storage Device Using a PIC® MCU 01003A Web

AN1001, Improving IC Temperature Sensor Accuracy with a PICmicro® MCU 01001A Web

Code Example Driving a BLDC with Sinusoidal Voltages Using dsPIC30F 92003A Web

Data Sheets PIC10F220/222 Data Sheet 41270A Web

24XX515 512K I2C™ CMOS Serial EEPROM 21673F Web

24XX1025 1024K I2C™ CMOS Serial EEPROM 21941B Web

25AA256/25LC256 Data Sheet 21822E Web

24AA64/24LC64 64K c Serial EEPROM 21189K Web

24AA128/24LC128/24FC128 128K I2C™ CMOS Serial EEPROM 21191N Web

24AA256/24LC256/24FC256 256K I2C™ CMOS Serial EEPROM 21203N Web

24AA32A/24LC32A 32K I2C™ Serial EEPROM 21713F Web

24AA512/24LC512/24FC512 512K I2C™ CMOS Serial EEPROM 21754G Web

PIC10F22XX Data Sheet 41270A Web

PIC18F87J10 Family Data Sheet 39663B Web

MCP3905 - Energy Metering IC with Active Real Power Pulse Output 21948B Web

MCP1612 - Single 1A 1.4 MHz Synchronous Buck Regulator 21921B Web

MCP73861/2/3/4 - Advanced Single or Dual Cell, Fully Integrated Li-Ion/Ki-Polymer Charge Management Controllers 21893C Web

Design Guides Fan Control Function Pack Design Guide 21835C Web/Printed

Interface Products Design Guide 21883B Web/Printed

Erratas dsPIC30F6011A/6012A/6013A/6014A Rev. A2 Silicon Errata 80242B Web

PIC16F685/687/689/690 Data Sheet Errata 80243B Web

PIC18F87J10 Family Rev. A2 Silicon Errata 80246A Web

PIC16F87XA Rev. B6 Silicon Errata 80240A Web

Page 11: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 11

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

What’s New in Microchip Literature?Click on a Document Title to view the document.

RETURN TO FRONT PAGE

Erratas (continued) PIC18F1220/1330 Rev. B4 Silicon/Data Sheet Errata 80175E Web

PIC18F1220/1330 Rev. B1 Silicon/Data Sheet Errata 80160E Web

PIC16F72 Data Sheet Errata 80155C Web

PIC18F1220/1320 Rev. D0 Silicon/Data Sheet Errata 80244A Web

PIC18FXX2 Rev. C1 Silicon/Data Sheet Errata 80245A web

PIC18FXX2 Rev. C0 Silicon/Data Sheet Errata 80173C Web

PIC18F2X1X/4X1X Data Sheet Errata 80227B Web

PIC18F2525/2620/4525/4620 Data Sheet Errata 80222B Web

Product Briefs PIC12F615/12HV615/PIC16F616/HV616 41272A Web

dsPIC30F202X Product Brief 70162A Web

TC4423A/24A/25A - 3A Dual High-Speed Power MOSFET Drivers 21979A Web

Programming Specs. PIC12F629/675/PIC16F630/676 Memory Programming 41191D Web

PIC16F785/PS200 Programming 41237B Web

PIC12F6XX/16F6XX Memory Programming 41204F Web

PIC18F2XX0/2X21/2XX5/4XX0/4X21/4XX5 Flash Programming Specifi cation 39622F Web

PIC18FX220/X320 Flash Microcontroller Programming Specifi cation 39592C Web

Reference Manual dsPIC30F Family Reference Manual 70046D Web

Technical Briefs Quadrature Encoder Simulator Using the PIC10F2XX 91091A Web

MCP2030 3-Channel Analog Front-End Device Overview 91090A Web

User Guides MPASM™ Assembler, MPLINK™ Object Linker, MPLIB™ Object Librarian User’s Guide 33014J Web

MPLAB® IDE Quick Start Guide 51281E Web

MCP2515 Stand-Alone CAN Controller PICtail™ Demo Board User’s Guide 51572A Web

MCP3905/6 Evaluation Board User’s Guide 51567A Web

MCP212X Developer’s Daughter Board User’s Guide 51571A Web

The Microchip name and logo, the Microchip logo, dsPIC, MPLAB, PIC, PICmicro and KEELOQ are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

MPASM, MPLINK, MPLIB, PICkit, PICDEM and PICtail are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries.

I2C is a trademark of Philips Corporation. SPI is trademark of Motorola. IrDA is a register mark of Infrared Data Association. ZigBee™ is a trademark of the ZigBee Alliance.

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

©2005 Microchip Technology Inc. Printed 10/2005.

Page 12: Oct 05 microSolutions - Microchip Technologyww1.microchip.com/downloads/en/Market_Communication/Oct... · 2009-06-14 · Key Fob is depressed and a 432 MHz signal is transmitted

MICROCHIP TECHNOLOGY’S MICROSOLUTIONS eNEWSLETTER - October 2005

www.microchip.com Microcontrollers • Digital Signal Controllers • Analog • Serial EEPROMs 12

web siteHIGHLIGHTS

JOBS AT MICROCHIPIf you are interested in joining the Microchip team, go to

www.microchip.com/careers

Did you know...

There are white papers and articles you can use for reference? They are categorized by application to make it easier

to locate the one you want. “Microchip in the News” is found on the web site at: http://www.microchip.com/inthenews.

RETURN TO FRONT PAGE

Did you know...

That customers in Qatar, Bulgaria, Romania, and the United Arab Emirates can now order online? buy.Microchip

supports more than 50 countries now. Coming soon to buy.Microchip: KEELOQ® integrated circuits and RFID products!

For more details,visit: www.buy.microchip.com