logo200.jpg
  Register   Log In 
Welcome My Account Shopping Cart Contact Us Specials New Products Kits and Modules Components Consumer & PC Tools and Meters Security Books
 Books > Microcontrollers >  Returning Customers
click here to log in.
Shopping Cart
Your Cart is Empty
View Cart
 
 

Microcontrol n Apps

TABLE OF CONTENTS

PREFACE

INTRODUCTION

PRODUCT OVERVIEW

CIRCUIT MODULES FOR EXPERIMENTS

USING OP-AMPS

SERIAL COMMUNICATION

SHIFT REGISTERS

Serial In, Parallel Out Shift Register - 74HC164
Parallel In, Serial Out Shift Register - 74HC165
Serial In, Parallel Out Shift Register - 74HC595

SERIAL EEPROMS

Demo Circuit
Main Program - Initial Test

SERIAL COMMUNICATION BETWEEN TWO PIC MICROCONTROLLERS

LIQUID CRYSTAL DISPLAY INTERFACE

1 X 16 LCD
Pins And Functions
Data vs. Instruction
Display Control
Character Addresses
LCD Operation
PIC/LCD Circuit
Timing And Pulsing
Testing The Circuit
Display RAM
Initialization
ASCII
Example Routines For LCD
Fill Display With Blanks
Display "HELLO"
LCD Initialization
Character Addresses
More on Alphanumeric Character Addresses
Display 16 Characters
Display Hex Byte Subroutine
Blanks
Separate A Hex Byte Into Two ASCII Digits
Hex Digit To ASCII Conversion
Hex To Bits Subroutine
Program Listing
To Use/Test Display Hex Byte
4-Bit Mode
LCD Module Serial Interface
LCD Experiments
More About ASCII
LCD Font table

SCANNING KEYPADS

Software Design
Scan Decimal Subroutine
Using Keypad And LCD With PIC Microcontroller
Debounce
Function Keys

DIGITAL TO ANALOG CONVERSION

Do It Yourself D/A Using A Resistor Network
8-Bit Parallel D/A Converter - AD558
Do It Yourself D/A Using Pulse Width Modulation
PWM Basics
Low Pass Filters
PWM Using A Filter With Unity Gain Follower
More PWM Philosophy
Analog Output - Increase/Decrease Buttons
PWM Using Software, TMR0 And Interrupts -
Philosophy
Hardware PWM
8-Bit Serial D/A Converter - MAX522
Output A Voltage Level
Output A Ramp Voltage
Output A Sine Wave

SENSORS - ANALOG VOLTAGE OUTPUT

LM335 Temperature Sensor
Offset And Scale
Three Amplifier Design
Single Amplifier Design
Why 1 Op-amp vs. 3 Op-amps?

ANALOG TO DIGITAL CONVERSION

PIC Pin And RC Time Constant
Measuring Resistance
PIC16F870 On-Board 10-bit A/D
A/D Control Registers
A/D Conversion Procedure
Example
PIC16F870 On-Board 10-bit A/D - Using Only the Most Significant 8 bits
Example
PIC12F675 On-Board 10-bit A/D
A/D Control Registers
A/D Conversion Procedure
Example
10-bit A/D Differences

USING COMPARATORS

Comparator Control Register - CMCON
Voltage Reference Control Register - VRCON
Single Comparator Example
Comparator Interrupts

MATH ROUTINES

Instructions
Arithmetic
Addition
Subtraction
Multiplication
Double Precision
Addition
Subtraction
Multiplication
Multiply A 2-Byte Binary Number By Decimal 10
8-Bit X 8-Bit Multiply, 2-Byte Result

DECIMAL INTERFACE

3-digit decimal to 8-bit binary
Using the 3-digit decimal to 8-bit binary decimal
entry program
8-bit to 3-digit BCD
Display result of 8-bit binary to 3-digit BCD
16-bit binary to 5-digit BCD -
range 0x0000 to 0x7FFF
16-bit binary to 5-digit BCD -
range 0x0000 to 0xFFFF

DIGITAL THERMOMETER

Building blocks
Rounding off
Displaying temperature via a LCD

SIMPLE DIGITAL VOLTMETER EXPERIMENT

TALKING TO A PIC MICROCONTROLLER WITH A PC
VIA A WINDOWS TERMINAL PROGRAM

"U-turn" experiment
PC-to-PC "2-lane highway" experiment
Importing a text file into a spreadsheet program
Windows XP - Microsoft Works 7.0
PC/PIC Microcontroller
PC baud rates
Modify ser_out subroutine
Modify ser_in subroutine
PIC to PIC at 4800 baud, LSB first
RS-232 interface for a PIC microcontroller
RS-232 converter circuit using MAX233
PC to PIC microcontroller serial communication
Display one ASCII character via 8 LEDs
PIC microcontroller to PC serial communication
Send one ASCII character
Code for formatting PIC microcontroller
data on a PC screen
PC to PIC/LCD
Control characters
Sending a text file (control characters
and data)

SIMPLE DATA LOGGER EXPERIMENT

Main program
Data logging
Display data sequentially via LCD
Uploading data to a PC
Code
Operating procedure
Spreadsheet and graphing data - Windows XP

MOV'n UP OR DOWN

Pin function options and how to select them
Clock oscillator options
Example - PIC12F627/628
Example - PIC12F629/675
External reset vs. digital I/O option
Example - PIC12F627/628
Example - PIC12F629/675
Special function registers
General purpose file registers
CBLOCK assembler directive
Configuration words

PIC16F628

Pins and functions
Package
Ports
Architecture - overview
Program memory
File registers
Special purpose registers - overview
Status register
Option register
Program counter
Control registers
Comparator control register - CMCON
Configuration bits
PIC16F628 programming examples
Example - pict1.asm adapted
Example - internal 4 MHz clock, no MCLR

PIC12F675 - 8-PIN MICROCONTROLLER

Pins and functions
Packag
Ports - GPIO
Clock oscillator options - covered previously
External reset vs. digital input pin (GP3) -
covered previously
Architecture - overview
Program memory
File registers
Special purpose registers - overview
Status register
Option register
Program counter
Control registers
Comparator control (CMCON) register
Analog select (ANSEL) register
Tristate I/O (TRISIO) register
Configuration bits
Calibrating the internal 4 MHz RC clock oscillator
Device programming considerations related to
internal oscillator calibration
Example program
Led pattern
Internal reset
Internal clock oscillator

PIC16F870

Pins and functions
Package
Ports
Architecture - overview
Program memory
File registers
Special purpose registers - overview
Status register
Option register
Program counter
Control registers
A/D control (ADCON1) register
Configuration Bits
F870 vs. F84

CIRCUIT MODULES FOR F870 EXPERIMENTS

Building Your Own Simple Test Board - 87s Board
87s Companion Board

PROGRAMMING THE F870 USING A DEVICE PROGRAMMER

First F870 Program - To be programmed via a
Device Programmer

PORTING YOUR APPLICATION FROM F84 To F870 - F870
PROGRAMMED VIA A DEVICE PROGRAMMER

PIC16F877

Disable A/D on port E
Connect both power and both ground pins

DEBUG'n

GETTING STARTED

PIC16F87x series
F870 - my candidate for the debug'n experimenter's
part of choice
F876 - my second choice
F84 vs. F870 for learning purposes
Device programmer vs. bootloader vs. ICD2
Bootloaders
Microchip ICD2
What a debugger can do for you
Debugging methodology
Single stepping
Breakpoint
Watch window
Debugging

MICROCHIP ICD2

Description

User Board = Target Board

Using The Microchip ICD2

General considerations
First project
First F870 program for use with ICD2
MPLAB Operations
Setting up the ICD2
Toolbar
To run a program in real time via the toolbar
To reset the F870 via the tool bar
Watch window
Single stepping
Break point
Break on address match
Clear breakpoint
Break on user halt
Powering down
Operating the 87s board stand alone after debug'n
Reconnecting the ICD2 After 87s board stand alone
operation
Firing up MPLAB and opening an existing project
Conclusion

Porting your application from F84 to F870 - F870 PROGRAMMED
VIA ICD2

USING THE ICD2 AS A MINI IN-CIRCUIT DEBUGGER FOR F84, F628 ETC.

APPENDICES

Appendix A - Sources
Appendix B - Hexadecimal Numbers
Appendix C - Program Listings vs. Page Numbers

bb023t.jpg
"Microcontrol'n Apps" is an intermediate level applications guide covering Microchip Technology's PIC Microcontrollers. Serial communication as a means of transferring data between PIC microcontrollers and peripheral chips and also between two or more PIC microcontrollers is described. A/D and D/A are discussed with several methods illustrated for each. Interfacing PIC microcontroller-controlled systems with humans requires some math, binary to decimal conversion and vice versa, alphanumeric LCD interfacing and scanning keypads. The book also explains how to establish serial communication between a PIC microcontroller and a PC via a RS-232 conversion circuit and a terminal program. These techniques are used in a digital voltmeter/data logger experiment for uploading data to a PC for display plus graphing using a spreadsheet program. Finally, use of the Microchip in-circuit debugger (ICD) is described. By David Benson (8-1/2 x 11 format, 437 pages)(BB023)  (Out of Stock)
 
Quantity
Price
1 – 9$42.70
10 – 99$39.95
100 +$35.95

  (Book)  
  BB023  
  0  
 
 
Tell a Friend
 
bb022t.jpg
Easy Microcontrol n (ver 4.1)
 
"Easy Microcontrol'n" © is intended to ease the beginner toward understanding and application of the PIC ® line of microcontrollers from Microchip Technology, Inc. Examples of assembly language programs range from a simple one to turn on LED's to more complex ones for timing and for event-counting. Writing programs is covered in-depth and the use of flow charts, as an aid to visualizing what a program does, is emphasized. The approach is hands-on with many examples, all of which may be demonstrated using a very simple demo board (a project) in the beginning of the book. By David Benson (8-1/2 x 11 format, 179 pages)(BB022)
Quantity
Price
1 – 9$33.20
10 – 99$31.95
100 +$28.95

  (Book)  
  BB022  
  2  
 
tn_cps150.jpg
USB PIC Programmer (Assembled) (Zif socket included)
 
This programmer connects to a USB port. On board 'B' USB connector. Free software. A wide-slot 40 pin ZIF socket is included with this assembled version. Power supply: at least 16VDC (18VDC preferred) center positive required (power supply jack 5.5mm OD 2.5mm ID) at least 200mA. See this page for which devices can be programmed.  
Closeout item. Limited qty available. Reduced price!
Special Price: $69.60
  (Assembled and Tested)  
  CPA150  
  6  
 
bb024t.jpg
Time'n and Count'n
 
"Time'n and Count'n" is an intermediate level book on 16-bit timing and counting applications using Microchip Technology's PIC microcontrollers. More opportunities for creating fun projects are described. Learning to use timer 1 with it's powerful capture, compare and pulse width modulation modes will expand your PIC microcontroller design capabilities significantly. TMR1 is a 16-bit timer/counter. The maximum count is 65,535 vs. 255 for timer 0.TMR1 used in conjunction with the capture, compare, PWM module may be programmed to do useful things unattended leaving the PIC free to perform other tasks. A special pin may be used for external inputs to TMR1 and another special pin may be used as an external output from TMR1. These timing and counting techniques serve as the basis for designing and building your own period and frequency generating and measuring test equipment as described in the book. By David Benson (8-1/2 x 11 format, 218 pages). (BB024)
Quantity
Price
1 – 9$33.20
10 – 99$29.95
100 +$28.31

  (Book)  
  BB024  
  3  
 
bb025t.jpg
Serial Communications
 
"Serial Communications is a comprehensive advanced level book which details various methods for implementing serial communications between a Microchip PIC microcontroller and an external device. Asynchronous serial communications is covered both by using an on-chip USART and by bit-bang methods. The RS-232 standard is explained. A discussion of synchronous serial communications includes the I2C (Philips Semiconductors), SPI (Motorola) and Microwire (National Semiconductor) protocols. The Dallas Semiconductor 1-Wire bus is described. Many code examples are included as modules which will provide the basis for the reader's own PIC microcontroller applications. By Roger Stevens (8-1/2 x 11 format, 566 pages).
(BB025)
Quantity
Price
1 – 9$47.45
10 – 99$44.95
100 +$39.95

  (Book)  
  BB025  
  3  
 
tn_crystal_stand.jpg
Crystal 4 MHz
 
Crystals are suited for general purposes (microprocessor oscillators, frequency synthesisers and more). Case size: 3.5x10mm Height: 13mm
Pin spacing: 5.1mm Frequency Tolerance at 25C: 30ppm
Frequency Drift: -10 to +60C 30ppm
Load Capacitance (CL): 30pF(DB220)
Quantity
Price
1 – 9$0.41
10 – 99$0.34
100 +$0.31

  (Component or Part)  
  DB220  
  11  
 
This web store and web site powered by NetSuite ecommerce software