Time'n & Count'n

11090

This Product Has Been Discountinued, This Page Is For Reference Only.

$10.00

USD

Qty
Price
1
$10.00 ea.

Time'n & Count'n is an intermediate level book for PICmicro users that focuses on timers and counters.


Description [Hide]

Time'n and Count'n is an intermediate level applications guide covering the PIC microcontrollers. The book describes the use of timer 1, timer 2 and the capture/compare/PWM (CCP) module, followed by timing, counting and pulse width modulation (PWM) experiments. These experiments include producing a single time interval output, free running pulse output, event counting, time measurement, frequency measurement and PWM. Some of these techniques are illustrated further by experiments which show how to design and build simple digital pulse and frequency generators and time interval and frequency measurement instruments.

This book is based on assembly language programming and is a continuation of the series that starts with Easy Microcontrol'n.

215 pages
Author:David Benson
Format: 8-1/2" x 11", Softcover

Table of Contents

INTRODUCTION

TEST EQUIPMENT FOR TIMING AND COUNTING EXPERIMENTS

  • Test equipment for detecting a short single pulse and measuring it's width
  • Pulse generator - 32 microseconds
  • Pulse generator - 128 microseconds
  • Pulse generator - 2000 microseconds
  • Pulse generator - 65280 microseconds
  • Test equipment for generating a frequency output

USING TIMER 1, TIMER 2 AND THE CAPTURE/COMPARE/PWM (CCP) MODULE

  • PIC16F870 test circuit
  • Before we take off
  • TMR2: 8-bit timer
    • TMR2 description
    • How to choose/select mode of operation
    • Interrupts
    • TMR2 applications
      • Free running mode (via TMR2 interrupt)
      • Free running mode (via period register)
  • TMR1: 16-bit timer/counter and capture/compare module
    • TMR1/CCP module simplified
    • TMR1 description
    • CCP module - capture mode
    • CCP module - compare mode
    • CCP module - PWM mode
    • How to choose/select mode of operation
      • T1CON register
      • CCP1CON register
    • Interrupts
    • Reading and writing TMR1
    • Long time intervals
    • Controlling the CCP1 pin in compare mode
    • More than one way to do timing stuff
  • Timing and counting experiments
    • Free running output (via TMR1 interrupt)
    • Event counting (via TMR1)
      • Count events, read TMR1 contents
      • Capture TMR1 count when external event occurs
      • Count events up to predetermined number and generate an output (compare)
    • Single time interval output (via TMR1 and CCP, compare mode)
      • Start TMR1, auto end
        • 500 milliseconds
        • 128 microseconds
    • Free running output (via TMR1 and CCP, compare mode)
      • Clear TMR1 each cycle
      • Free running TMR1, add interval value to compare register each cycle
    • Time measurement (period/interval/time between events)
      • (via TMR1 read)(interval input via port pin)
      • (via TMR1 and CCP, capture mode)(interval input via CCP1 pin, two captures,subtract)
    • Frequency measurement (via TMR1, gate via TMR0)
    • External 32,768 Hz watch crystal-based clock for TMR1
  • Pulse width modulation (PWM) using TMR2 and the CCP module
    • Analog output - increase/decrease buttons - PWM - 8-bit mode
    • Duty cycle - 10-bit mode
    • Analog output - increase/decrease buttons - PWM - 10-bit mode

DESIGNING AND BUILDING YOUR OWN TEST EQUIPMENT

  • Keypad/LCD user interface
    • 5-digit decimal to 16-bit binary entry program
    • Using the 5-digit decimal to 16-bit binary entry program
  • Digital pulse generator
  • Digital frequency generator
  • Time interval measurement instrument
  • Frequency measurement instrument
  • Creating your own combination signal generator and measurement instrument

APPENDIX A - Program listings vs. page number
APPENDIX B - PICF870 control registers
APPENDIX C - '84 on a board
APPENDIX D - PIC/LCD schematic and code
APPENDIX E - Keypad
APPENDIX F - Using the ICD
APPENDIX G - Sources

Documentation [Hide]

You Might Also Like [Hide]

21370

Super Carrier Board

The Super Carrier Board is great for both the BASIC Stamp 1 and BASIC Stamp 2 Modules.

$19.95 USD



60100

Solarbotics Arduino Freeduino Enclosure (SAFE)

The Solarbotics Arduino Freeduino Enclosure (SAFE) is a laser-cut acrylic case for your chopsticks. And by chopsticks, we mean Arduino or Freeduino. Go figure.

$9.95 USD



50452

Arduino Mega 2560 R3

The Arduino Mega 2560 is the open-source "big brother" to Duemilanove/Uno reference design, using the much more capable ATmega2560.

$58.95 USD



27280

EFX-Tek RS-485 Adapter

The EFX-Tek RS-485 adapter is an ideal solution for putting multiple microcontrollers on a custom network.

$31.46 USD



MPin3D

Male Strip Pins - 3 Pin x 2 Row

Male Strip - 3 positions x 2 rows per Strip, gold flash surface on 0.1" spacing

$0.40 USD



51865

ScrewShield for Arduino

The ScrewShield is a “wing-format” shield that extends the Arduino pins to sturdy, secure, and dependable screw terminal blocks. (You even get a few bonus terminals for extra GND and power!&#

$10.00 USD



50735

LilyPad Protoboard Large

This is a large board for prototyping through hole components with the LilyPad system. This allows for quick and easy prototyping - all you have to do is cut the traces between holes you don't want connected!

$7.00 USD



10172

Making PIC-based Lab Instruments & Controllers

Making PIC-based Laboratory Instruments and Controllers by Harprit Singh Sandhu is hands on tutorial and resource book that teaches you how to build your own interfaces.

$49.89 USD



MMFC

Fuse Clip Motor Mounts

1/4" Fuse clip motor mount, great for holding the standard Pager motor

$0.25 USD



DC-24W Pin

24 Pin Wide DIP Socket Carrier

24 pins on 0.6" spacing - ideal for BS2 mounting!

$0.50 USD



Currency


Login

Email:

Password:

Remember Me

Forgot Your Password?

Don't Have an Account?
Sign Up!