Time'n and Count'n book
[Time'n and C]

Time\'n and Count\'n book
Time'n and Count'n book
218 pages
Writer: David Benson
Publisher: Square 1 Electronics
Language: English
The source codes fot the book

Microprocessors & System Design > PIC Microcontroller
This is an EXCELLENT book
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

PIC16F870 test circuit
Before we take off
TMR2: 8-bit timer
TMR2 description
How to choose/select mode of operation
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
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 cyclev 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

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 F - Using the ICD
APPENDIX G - Sources
Hardware-> (482)
Software-> (27)
Books (3)
Quick Find
Use keywords to find the product you are looking for.
Advanced Search
We Accept
8 x LCD WH1601A-yyt-ET#
8 x LCD WH4002A 40*2 blue lcd
7 x wh2004A_TMI.jpg 4*20 Blue LCD
13 x AT-603 temperature control
12 x Flextop 2201 temperature converter
7 x PT100 Probe
7 x PT100 surface sensor
9 x PT1000 surface sensor
3 x MD22 - 24V 5A two H- bridge motor driver
3 x Mini Servo Helipro HPS001
4 x Nexus high-speed , digital power servo- NE- DSW601MG
6 x PICSERVO 8 kananavainen sarjaliikkenne / servo transducer
7 x Pulse simulator
4 x Standard Servo Dynam ( Fubata compliant interface
11 x TCPIP controller
1 x REF200AUE Duol Dual Current Source/Current Sink
1 x USB 2.0 Data Link Cable
4 x S27-USB-Serial converter
6 x USB 2.0 serial adapter
4 x HDMI cable 3m
5 x Network Cable 5m IEC 60320
5 x CMPS11 a serial communication module
1 x CMPS11 compass module
2 x CF320007NW 3*16 bit UP/DOWN counter DIP28 0.6" wide
4 x P89C51RD21-HBP
12 x LM2675S-3.3 switching regulator
13 x LM2931AZ-5 100mA low voltage regulator 5V
12 x LM335 temperature sensor
21 x LM7806 5V positive regulator TO220
1 x ACS706T current meter 1.5mohmia
7 x Motion Sensor 230V 1000W HGV034 (BK)
1 x USB RS232 converter
1 x USB TB-65 USB calculator, numerical keyboard
1 x USB PoUSB12 USB/TTL converter
1 x USB PS/2 converter
5 x USB USB2-EX10M externsion 10m
1 x USB/serial connction DB25Male, 1.5m cable. PU-1284
1 x USB-GPIO12
1 x USB-I2C module
1 x USB Serial Converter (TTL)
4 x USB buzzer
3 x Deltaco FW-71-K FireWire-kaapeli 4.5m
3 x DELTACO USB 2.0 cable A-type male - A-type female
4 x Firewire cable 6- pin plug - 4- pin male , 2m, black FW- 8i
4 x Cross-sensing Cat5e UTP cable to the device , 2m , gray
6 x DB25Uros -DB25Uros 5m cable
12 x DB9 female - male 5m
5 x Quad amplifier LM324 soic
3 x 93LC46 1kB EEPROM
1 x SMT160-30 temperature sensor
4 x GSM relay PG-30
10 x GSM relay kit PGK 10
11 x GSM driver / teaching CD
5 x GSM control
4 x GSM antenna 170 mm 1.5 m cable SMA connector
4 x Grain Dryer GSM alarm1
3 x Geotechnical counter
4 x Fast ADC converter
9 x DTMF programmatic generation of the source code
4 x DSP course in Finnish
3 x Counter water and coin pulses
11 x CMPS03 electronic compass + I2C/RS232 converter
10 x Baler counter model 11
10 x Baler counter 10d
6 x Baler counter 10b
4 x Baler counter 10 c
6 x Autolog
14 x Audio tansformer 600:600 ohms
12 x Audio Digital sound generator program
5 x Angle Gauge
13 x Amateur radio station antenna of three long-distance exchanges p
10 x Accident Display
3 x Radio amateur antenna direction electronic display
3 x Water alarm GSM
11 x Serial driver program
1 x Teltonika Wireless Transparent Termimal
2 x AT89S8252-24PC
2 x dsPIC30F2010-I/SP DIP28
10 x MrSmart datalogger program
7 x PC DTMF program
7 x PIC DTMF program
8 x Serial IO interface
8 x Serialscope is an Excel chart deposit program
8 x SimpleMassE - mailer e-mail sending program
5 x Term Communication program
9 x Timer program
8 x Update DevCom2000 program
7 x Light restance LDR03 MKY-54C348
10 x CANOPEN 1.1 software
8 x Keymat12 keyboard
8 x Keymat16 700 series keyboard
1 x Pushbutton
1 x PTC resistor B59890
5 x ICL7660 negative voltage generator
7 x L6203 stepmotor driver
3 x L297 step motor driver
3 x LIS3L02 3-D sensor
2 x PBL3717A DC motor controller
3 x PBL3717A step motor driver
6 x Thermostat
9 x Step Motor Controller 4A 12-36V
2 x PIC BASIC Compiler 1.45
4 x DIN mounting Wavecom modem
4 x GSM antenna outside the enclosure
2 x DB9 straight male solder connector
1 x 3-pins XLR chassis connector - socket female
1 x DB15Female 90 deg connector
1 x DB15M ribbon cable connector
9 x DS3695N RS485 driver
8 x LF411CN amplifier DIP8
9 x LF442 amplifier
8 x LM10CLN Operational Amplifier and Voltage Reference
8 x LM1207AK 3*Video amplifier DIP28 0.6" wide
8 x LM3886T AMP, AUDIO + MUTE 68W, 3886, TO-220
9 x LM78L33 3.3V regulator
14 x LM7912 regulator -12V
14 x LM79L15ACZ regulator -15V
4 x CUTTERS Cu 1.0 125mm
1 x PIC18F2550-I/P DIP40
1 x PIC18F4620-I/P DIP40
1 x PIC18F26J11-I/SO Soic28
2 x Nokia battery 3310,3510
4 x Nokia AC adapters 230 / 6V
5 x Inductance CD
8 x Humidity and temperature control
2 x Power supply 3V-12V 1A
2 x Traco 24 / 5V 1A DC / DC converter
3 x PS1303 the DC power source 230VA13V 3A
3 x Tracopower 2W DC / DC converter in 24V / ± 12V DC 80mA
6 x SR90555 Switcher input max 36 V output 4-36V max 4A
3 x TRACO TCL12-124DC24W switching power supply for DIN rail
3 x The power supply Eta VTM01C12
3 x The power supply 230 / 24V 150W Meanwell S - 150-24
10 x Dyno motordyno-program
2 x Village without name
7 x Modbus testing program
1 x PID workshop course
3 x RS232 TTL converter
3 x step404 stepper motor controller
3 x Reset adapter
5 x MAX724 5A/2A Step-Down, PWM, Switch-Mode DC-DC Regulators
2 x USB RS232 muunnin VSCOM
6 x Safety relay HDZ 468-1163 48V
8 x DevCom2000 Smart Device Communicator for Hart
7 x GSM server send/Receive
1 x HDSP 2110 8* number LED display,
1 x The ICL7107 is 31/2 digit A/D converter
1 x ICL7216DIPI LCD counter DIP28
3 x ICL7217AIPI 4 decade counter for LED display
3 x ICL7106 DIP40 LCD Driver
3 x inductive PNP-type sensor
2 x Teltonika GSM modem WirelessCom / G10
1 x Nokia 3310 HF-cable
3 x USB 2.0 cable A-type male - B-type male , 0,5m
3 x Tachometer 0-9999 RPM
3 x relay card 8 pcs , opto-isolated
2 x GPS Mapper
2 x LED Accident Display
4 x Bluetooth temperature meter
4 x Current Transformer 3000: 1
2 x SHT11 humidity and temperature sensor
2 x Affordable stabilized switch mode AC adapter 9V 0.5A ,
8 x Ir receiver 38kHz TSOP4838
1 x OP232 IR transmitter
1 x The OFT - 3301 phototransistor 3mm
1 x TSL252R -LF analog light sensor
1 x Christmas star construction kit
2 x 4*DA Converter
2 x 2to1 adapter for Term program
1 x 4 digit voltage meter
1 x Baler counter 10a
Share Product
Share via E-Mail
Finnish English