Google Translate

27.04.2012

Advanced PIC Microcontroller Projects in C


Contents


Chapter 1: Microcomputer Systems


1.1 Introduction
1.2 Microcontroller Systems 
1.2.1 RAM
1.2.2 ROM
1.2.3 PROM
1.2.4 EPROM6
1.2.5 EEPROM 
1.2.6 Flash EEPROM
1.3 Microcontroller Features
1.3.1 Supply Voltage 
1.3.2 The Clock
1.3.3 Timers 
1.3.4 Watchdog
1.3.5 Reset Input 
1.3.6 Interrupts 
1.3.7 Brown-out Detector 
1.3.8 Analog-to-Digital Converter 
1.3.9 Serial Input-Output 
1.3.10 EEPROM Data Memory 
1.3.11 LCD Drivers
1.3.12 Analog Comparator
1.3.13 Real-time Clock
1.3.14 Sleep Mode 
1.3.15 Power-on Reset
1.3.16 Low-Power Operation 
1.3.17 Current Sink/Source Capability 
1.3.18 USB Interface 
1.3.19 Motor Control Interface 
1.3.20 CAN Interface 
1.3.21 Ethernet Interface
1.3.22 ZigBee Interface 
1.4 Microcontroller Architectures.
1.4.1 RISC and CISC 
1.5 Number Systems
1.5.1 Decimal Number System 
1.5.2 Binary Number System1.5.3 Octal Number System
1.5.4 Hexadecimal Number System 
1.6 Converting Binary Numbers into Decimal
1.7 Converting Decimal Numbers into Binary
1.8 Converting Binary Numbers into Hexadecimal
1.9 Converting Hexadecimal Numbers into Binary
1.10 Converting Hexadecimal Numbers into Decimal 
1.11 Converting Decimal Numbers into Hexadecimal 
1.12 Converting Octal Numbers into Decimal 
1.13 Converting Decimal Numbers into Octal 
1.14 Converting Octal Numbers into Binary 
1.15 Converting Binary Numbers into Octal 
1.16 Negative Numbers 
1.17 Adding Binary Numbers 
1.18 Subtracting Binary Numbers 
1.19 Multiplication of Binary Numbers
1.20 Division of Binary Numbers 
1.21 Floating Point Numbers 
1.22 Converting a Floating Point Number into Decimal 
1.22.1 Normalizing Floating Point Numbers 
1.22.2 Converting a Decimal Number into Floating Point 
1.22.3 Multiplication and Division of Floating Point Numbers 
1.22.4 Addition and Subtraction of Floating Point Numbers 
1.23 BCD Numbers 
1.24 Summary
1.25 Exercises 


Chapter 2: PIC18F Microcontroller Series 


2.1 PIC18FXX2 Architecture
2.1.1 Program Memory Organization 

2.1.2 Data Memory Organization
2.1.3 The Configuration Registers
2.1.4 The Power Supply 
2.1.5 The Reset 
2.1.6 The Clock Sources
2.1.7 Watchdog Timer 
2.1.8 Parallel I/O Ports 
2.1.9 Timers 
2.1.10 Capture/Compare/PWM Modules (CCP) 
2.1.11 Analog-to-Digital Converter (A/D) Module 
2.1.12 Interrupts 
2.2 Summary
2.3 Exercises 



Chapter 3: C Programming Language


3.1 Structure of a mikroC Program
3.1.1 Comments 
3.1.2 Beginning and Ending of a Program 
3.1.3 Terminating Program Statements
3.1.4 White Spaces 
3.1.5 Case Sensitivity 
3.1.6 Variable Names 
3.1.7 Variable Types 
3.1.8 Constants 
3.1.9 Escape Sequences 
3.1.10 Static Variables
3.1.11 External Variables 
3.1.12 Volatile Variables 
3.1.13 Enumerated Variables 
3.1.14 Arrays 
3.1.15 Pointers 
3.1.16 Structures 
3.1.17 Unions
3.1.18 Operators in C
3.1.19 Modifying the Flow of Control 
3.1.20 Mixing mikroC with Assembly Language Statements 
3.2 PIC Microcontroller Input-Output Port Programming 
3.3 Programming Examples 
3.4 Summary
3.5 Exercises 



Chapter 4: Functions and Libraries in mikroC


4.1 mikroC Functions 
4.1.1 Function Prototypes 
4.1.2 Passing Arrays to Functions
4.1.3 Passing Variables by Reference to Functions
4.1.4 Variable Number of Arguments
4.1.5 Function Reentrancy
4.1.6 Static Function Variables
4.2 mikroC Built-in Functions
4.3 mikroC Library Functions
4.3.1 EEPROM Library
4.3.2 LCD Library
4.3.3 Software UART Library
4.3.4 Hardware USART Library
4.3.5 Sound Library
4.3.6 ANSI C Library
4.3.7 Miscellaneous Library
4.4 Summary
4.5 Exercises



Chapter 5: PIC18 Development Tools


5.1 Software Development Tools
5.1.1 Text Editors
5.1.2 Assemblers and Compilers
5.1.3 Simulators
5.1.4 High-Level Language Simulators
5.1.5 Integrated Development Environments (IDEs)
5.2 Hardware Development Tools
5.2.1 Development Boards
5.2.2 Device Programmers
5.2.3 In-Circuit Debuggers 
5.2.4 In-Circuit Emulators
5.2.5 Breadboards
5.3 mikroC Integrated Development Environment (IDE) 
5.3.1 mikroC IDE Screen 
5.3.2 Creating and Compiling a New File
5.3.3 Using the Simulator 
5.3.4 Using the mikroICD In-Circuit Debugger
5.3.5 Using a Development Board 
5.4 Summary
5.5 Exercises



Chapter 6: Simple PIC18 Projects


6.1 Program Description Language (PDL) 
6.1.1 START-END 
6.1.2 Sequencing
6.1.3 IF-THEN-ELSE-ENDIF
6.1.4 DO-ENDDO
6.1.5 REPEAT-UNTIL
Project 6.1—Chasing LEDs
Project 6.2—LED Dice 
Project 6.3—Two-Dice Project
Project 6.4—Two-Dice Project Using Fewer I/O Pins
Project 6.5—7-Segment LED Counter
Project 6.6—Two-Digit Multiplexed 7-Segment LED
Project 6.7—Two-Digit Multiplexed 7-Segment LED Counter
with Timer Interrupt
Project 6.8—Voltmeter with LCD Display
Project 6.9—Calculator with Keypad and LCD 
Project 6.10—Serial Communication–Based Calculator


Chapter 7: Advanced PIC18 Projects—SD Card Projects


7.1 The SD Card 
7.1.1 The SPI Bus
7.1.2 Operation of the SD Card in SPI Mode
7.2 mikroC Language SD Card Library Functions 
Project 7.1—Read CID Register and Display on a PC Screen
Project 7.2—Read/Write to SD Card Sectors
Project 7.3—Using the Card Filing System
Project 7.4—Temperature Logger



Chapter 8: Advanced PIC18 Projects—USB Bus Projects


8.1 Speed Identification on the Bus 
8.2 USB States 
8.3 USB Bus Communication
8.3.1 Packets
8.3.2 Data Flow Types
8.3.3 Enumeration
8.4 Descriptors
8.4.1 Device Descriptors 
8.4.2 Configuration Descriptors
8.4.3 Interface Descriptors
8.4.4 HID Descriptors 
8.4.5 Endpoint Descriptors


8.5 PIC18 Microcontroller USB Bus Interface
8.6 mikroC Language USB Bus Library Functions 
Project 8.1—USB-Based Microcontroller Output Port
Project 8.2—USB-Based Microcontroller Input/Output
Project 8.3—USB-Based Ambient Pressure Display on the PC



Chapter 9: Advanced PIC18 Projects—CAN Bus Projects 


9.1 Data Frame
9.1.1 Start of Frame (SOF)
9.1.2 Arbitration Field
9.1.3 Control Field
9.1.4 Data Field
9.1.5 CRC Field
9.1.6 ACK Field
9.2 Remote Frame 
9.3 Error Frame
9.4 Overload Frame
9.5 Bit Stuffing
9.6 Types of Errors 
9.7 Nominal Bit Timing 
9.8 PIC Microcontroller CAN Interface 
9.9 PIC18F258 Microcontroller
9.9.1 Configuration Mode
9.9.2 Disable Mode
9.9.3 Normal Operation Mode
9.9.4 Listen-only Mode
9.9.5 Loop-Back Mode
9.9.6 Error Recognition Mode
9.9.7 CAN Message Transmission
9.9.8 CAN Message Reception
9.9.9 Calculating the Timing Parameters
9.10 mikroC CAN Functions 
9.10.1 CANSetOperationMode 
9.10.2 CANGetOperationMode 
9.10.3 CANInitialize 
9.10.4 CANSetBaudRate
9.10.5 CANSetMask 
9.10.6 CANSetFilter 
9.10.7 CANRead
9.10.8 CANWrite

9.11 CAN Bus Programming
Project 9.1—Temperature Sensor CAN Bus Project 



Chapter 10: Multi-Tasking and Real-Time Operating Systems


10.1 State Machines
10.2 The Real-Time Operating System (RTOS)
10.2.1 The Scheduler 
10.3 RTOS Services 
10.4 Synchronization and Messaging Tools
10.5 CCS PIC C Compiler RTOS
10.5.1 Preparing for RTOS 
10.5.2 Declaring a Task 
Project 10.1—LEDs 
Project 10.2—Random Number Generator
Project 10.3—Voltmeter with RS232 Serial Output




Download Link: 
LA ILAHA ILLA ALLAH



6 yorum:

DWIN Data Frame

DWIN TFT LCD Data Frame: Click for Zoom DWIN TFT LCD Veri Çerçevesi: Zoom için Tıklayınız Ücretsiz numune TFT LCD taleb etmek için tıklayını...