Книга: Advanced PIC Microcontroller Projects in C
Оглавление книги
- Preface
- Acknowledgments
- CHAPTER 1 Microcomputer Systems
- 1.1 Introduction
- 1.2 Microcontroller Systems
- 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.5 Number Systems
- 1.5.1 Decimal Number System
- 1.5.2 Binary Number System
- 1.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)
- PROJECT 6.1 — Chasing LEDs
- PROJECT 6.2 — LED Dice
- Project Description
- Project Hardware
- Project PDL
- Project Program
- Using a Pseudorandom Number Generator
- 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 Description
- HD44780 LCD Module
- Connecting the LCD
- Project Hardware
- Project PDL
- Project Program
- A More Accurate Display
- PROJECT 6.9 — Calculator with Keypad and LCD
- Project Description
- Project Hardware
- Project PDL
- Project Program
- Program Using a Built-in Keypad Function
- PROJECT 6.10 — Serial Communication–Based Calculator
- CHAPTER 7 Advanced PIC18 Projects — SD Card Projects
- 7.1 The SD Card
- 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.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
- The PC Software
- The Microcontroller Software
- Testing the Project
- Using a USB Protocol Analyzer
- Using the HID Terminal of mikroC
- 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.3 RTOS Services
- 10.4 Synchronization and Messaging Tools
- 10.5 CCS PIC C Compiler RTOS
- PROJECT 10.1 — LEDs
- PROJECT 10.2 — Random Number Generator
- PROJECT 10.3 — Voltmeter with RS232 Serial Output
- Содержание книги
- Популярные страницы
Оглавление статьи/книги
- Preface
- Acknowledgments
- CHAPTER 1 Microcomputer Systems
- CHAPTER 2 PIC18F Microcontroller Series
- CHAPTER 3 C Programming Language
- CHAPTER 4 Functions and Libraries in mikroC
- CHAPTER 5 PIC18 Development Tools
- CHAPTER 6 Simple PIC18 Projects
- CHAPTER 7 Advanced PIC18 Projects — SD Card Projects
- CHAPTER 8 Advanced PIC18 Projects — USB Bus Projects
- CHAPTER 9 Advanced PIC18 Projects — CAN Bus Projects
- CHAPTER 10 Multi-Tasking and Real-Time Operating Systems
- Содержание книги
- Популярные страницы
Похожие страницы
- 5.2.3 In-Circuit Debuggers
- Preface
- Acknowledgments
- CHAPTER 5 PIC18 Development Tools
- CHAPTER 6 Simple PIC18 Projects
- CHAPTER 7 Advanced PIC18 Projects — SD Card Projects
- CHAPTER 9 Advanced PIC18 Projects — CAN Bus Projects
- 1.3 Microcontroller Features
- 1.4 Microcontroller Architectures
- 1.3.4 Watchdog
- 1.3.9 Serial Input-Output
- Advanced PIC Microcontroller Projects in C