READER-TO-READER TECHFORUM
Microchip Technology has labeled the PWM section of
the PIC16F690 MCU, "Enhanced Capture/Compare/PWM
Module," but I'll refer only to its PWM capabilities that let
you set the pulse period (or frequency) and the pulse width.
You can read the PWM Operations section below and then
the PWM Setup & Use section, or simply jump ahead to the
latter section if you just want to use the PWM and don't
care how it works.
PWM Setup & Use
In the PIC16F690 MCU, you direct the PWM signal to
the P1A (pin 5), the P1B pin (pin 6), the P1C pin (pin 7), or
the P1D pin (pin 14). The information that follows will use
the P1A output which, according to the MCU's datasheet,
has the combined functions RC5/CCP1/P1A. So, this pin
shares functions between the PWM output and port C, bit
RC5. I'll use the pin solely as the PWM output.
To simplify use of the PWM output, I recommend you
start with the PICDEM Lab 1 experiment that sets on on-off
pattern on eight LEDs connected to the eight port C pins
on the 16F690 MCUs. When you can successfully run this
program, add the PWM program steps as explained next.
For the Lab 1 information, refer to the Microchip
document, "PICDEM Lab Development Board User's
Guide," DS41369B, available for download at: http://ww1.
microchip.com/downloads/en/DeviceDoc/41369B.pdf.”
AMATEUR RADIO AND TV
Ramsey Electronics, Inc. ................... 20-21
V-Module ................................................. 60
BATTERIES/CHARGERS
Cunard Associates .................................. 29
PowerBotix .............................................. 39
BUYING ELECTRONIC SURPLUS
Jaycar Electronics .................................... 61
Weirdstuff Warehouse ............................. 29
CCD CAMERAS/VIDEO
4ATV.com ................................................ 29
Circuit Specialists, Inc. ....................... 82-83
Ramsey Electronics, Inc. ................... 20-21
CIRCUIT BOARDS
AP Circuits .............................................. 63
Cunard Associates .................................. 29
Digilent .................................................... 75
Dimension Engineering ............................ 33
ExpressPCB .............................................. 9
Front Panel Express LLC ........................ 60
Futurlec ................................................... 19
PCB Pool ................................................. 46
R.E. Smith Inc. .......................................... 8
Saelig Company Inc. ............................... 63
V-Module ................................................. 60
COMPONENTS
Cana Kit Corp. ........................................ 53
Electronix Express .................................. 59
Jameco ...................................................... 5
Fun Gizmos ............................................. 29
Futurlec ................................................... 19
Noritake ................................................... 39
PowerBotix .............................................. 39
V-Module ................................................. 60
COMPUTER
Hardware
Noritake ................................................... 39
Weirdstuff Warehouse ............................. 29
Microcontrollers / I/O Boards
Abacom Technologies ............................. 39
Bitscope .................................................... 4
Chipino .................................................... 29
Fun Gizmos ............................................. 29
80 November 2011
microEngineering Labs ............................ 43
MikroElektronika ........................................ 3
Parallax, Inc. .............................Back Cover
Pololu Robotics & Electronics .................. 47
Solarbotics/HVW ..................................... 62
DESIGN/ENGINEERING/
REPAIR SERVICES
Cana Kit Corp. ........................................ 53
ExpressPCB .............................................. 9
Front Panel Express LLC ........................ 60
PCB Pool ................................................. 46
EDUCATION
BaneBots ................................................. 62
Bitscope .................................................... 4
Blue Wolf .................................................. 27
Command Productions ............................ 27
Digilent .................................................... 75
Global Specialties ..................................... 7
NKC Electronics ...................................... 29
Poscope ................................................... 62
EMBEDDED TOOLS
NetBurner .................................................. 2
ENCLOSURES
Front Panel Express LLC ........................ 60
Integrated Ideas & Tech. ......................... 60
KITS & PLANS
Cana Kit Corp. ........................................ 53
Jaycar Electronics .................................... 61
NetBurner .................................................. 2
NKC Electronics ...................................... 29
QKITS....................................................... 29
Ramsey Electronics, Inc. ................... 20-21
Solarbotics/HVW ..................................... 62
MISC./SURPLUS
All Electronics Corp. ................................ 81
Front Panel Express LLC ........................ 60
Weirdstuff Warehouse ............................. 29
MOTORS
BaneBots ................................................. 62
Jameco ...................................................... 5
OPTICS
Noritake ................................................... 39
Give the Gift of
Nuts & Volts!
Go now to
www.nutsvolts.com
to enter your gift order!
Be sure to use promotion code
Y1WXMS when ordering.
Not only will they get
15 great issues, but they
will also receive:
• Access to the digital edition
• Discounts in the Webstore
• Online only content and
downloads
• And so much more!
Subscribe online at:
www.nutsvolts.com
or call:
877-525-2539 (toll free)
818-487-4545 (outside US)
U.S. Price:
1 Yr – $26.95
Give a one year
( 12 issues) subscription
to a friend and they will
receive an extra THREE
FREE ISSUES! That’s
right! A total of
15 issues in all!
PROTOTYPING & TRAINERS
Global Specialties ..................................... 7
PROGRAMMERS
Futurlec ................................................... 19
microEngineering Labs ............................ 43
MikroElektronika ........................................ 3
RF TRANSMI TTERS/RECEIVERS
4ATV.com ................................................ 29
Abacom Technologies ............................. 39
Blue Wolf .................................................. 27
ROBOTICS
BaneBots ................................................. 62
Blue Wolf .................................................. 27
Digilent .................................................... 75
Fun Gizmos ............................................. 29
Jameco ...................................................... 5
Lemos International Co., Inc. .................. 29
Lynxmotion, Inc. ...................................... 63
Pololu Robotics & Electronics .................. 47
PowerBotix .............................................. 39
Robot Power ........................................... 29
Solarbotics/HVW ..................................... 62
SATELLITE
Lemos International Co., Inc. .................. 29
SECURITY
4ATV.com ................................................ 29
TEST EQUIPMENT
Bitscope .................................................... 4
Circuit Specialists, Inc. ....................... 82-83
Dimension Engineering ............................ 33
Global Specialties ..................................... 7
Jaycar Electronics .................................... 61
NKC Electronics ...................................... 29
Pico Technology ...................................... 13
Poscope ................................................... 62
Saelig Company Inc. ............................... 63
TOOLS
MikroElektronika ........................................ 3
NetBurner .................................................. 2
PanaVise ................................................. 33
Poscope ................................................... 62
4ATV.com .............................................. 29
Abacom Technologies ........................... 39
All Electronics Corp. ............................. 81
AP Circuits ............................................ 63
BaneBots .............................................. 62
Bitscope .................................................. 4
Blue Wolf................................................ 27
Cana Kit Corp. ...................................... 53
Chipino .................................................. 29
Circuit Specialists, Inc. .................... 82-83
Command Productions ......................... 27
Cunard Associates ................................ 29
Digilent .................................................. 75
Dimension Engineering.......................... 33
Electronix Express ................................ 59
ExpressPCB ............................................ 9
Front Panel Express LLC ..................... 60
Fun Gizmos .......................................... 29
Futurlec ................................................. 19
Global Specialties ................................... 7
Integrated Ideas & Tech. ....................... 60
Jameco ................................................... 5
Jaycar Electronics.................................. 61
Lemos International Co., Inc. ................ 29
Lynxmotion, Inc. .................................... 63
microEngineering Labs .......................... 43
MikroElektronika ..................................... 3
NetBurner ................................................ 2
NKC Electronics .................................... 29
Noritake ................................................. 39
PanaVise ............................................... 33
Parallax, Inc. ..........................Back Cover
PCB Pool .............................................. 46
Pico Technology .................................... 13
Pololu Robotics & Electronics................ 47
Poscope ................................................. 62
PowerBotix ............................................ 39
QKI TS .................................................... 29
Ramsey Electronics, Inc. ................. 20-21
R.E. Smith Inc. ........................................ 8
Robot Power ......................................... 29
Saelig Company Inc. ............................. 63
Solarbotics/HVW ................................... 62
V-Module ............................................... 60
Weirdstuff Warehouse ........................... 29