C programming for the PIC microcontroller : demystify coding with embedded programming
Go beyond the jigsaw approach of just using blocks of code you don't understand and become a programmer who really understands how your code works. Starting with the fundamentals on C programming, this book walks you through where the C language fits with microcontrollers. Next, you'll see...
Saved in:
Main Author: | |
---|---|
Format: | eBook |
Language: | English |
Published: |
Berkeley, CA :
Apress L.P.,
©2020.
|
Subjects: | |
ISBN: | 9781484255254 1484255259 9781484255261 1484255267 9781484255247 1484255240 |
Physical Description: | 1 online resource (282 pages) |
LEADER | 06102cam a2200493 a 4500 | ||
---|---|---|---|
001 | kn-on1132419880 | ||
003 | OCoLC | ||
005 | 20240717213016.0 | ||
006 | m o d | ||
007 | cr cn||||||||| | ||
008 | 191221s2020 cau o 001 0 eng d | ||
040 | |a EBLCP |b eng |e pn |c EBLCP |d TEFOD |d GW5XE |d YDX |d OCLCF |d ESU |d OCLCQ |d LQU |d UPM |d VT2 |d OCLCQ |d UKMGB |d COO |d OCLCQ |d OCLCO |d COM |d OCLCQ |d OCLCO |d OCLCL | ||
020 | |a 9781484255254 |q (electronic bk.) | ||
020 | |a 1484255259 |q (electronic bk.) | ||
020 | |a 9781484255261 |q (print) | ||
020 | |a 1484255267 | ||
020 | |z 9781484255247 |q (print) | ||
020 | |z 1484255240 | ||
024 | 7 | |a 10.1007/978-1-4842-5525-4 |2 doi | |
024 | 8 | |a 10.1007/978-1-4842-5 | |
035 | |a (OCoLC)1132419880 |z (OCoLC)1132284602 |z (OCoLC)1137829654 |z (OCoLC)1152978688 | ||
100 | 1 | |a Ward, Hubert Henry. | |
245 | 1 | 0 | |a C programming for the PIC microcontroller : |b demystify coding with embedded programming / |c Hubert Henry Ward. |
260 | |a Berkeley, CA : |b Apress L.P., |c ©2020. | ||
300 | |a 1 online resource (282 pages) | ||
336 | |a text |b txt |2 rdacontent | ||
337 | |a computer |b c |2 rdamedia | ||
338 | |a online resource |b cr |2 rdacarrier | ||
505 | 0 | |a Intro -- Table of Contents -- About the Author -- About the Technical Reviewer -- Introduction -- Chapter 1: Introduction -- Programmable Industrial Controllers -- Programming Languages -- Machine Code -- Assembler Language -- C Programming Language -- Different Programming Languages -- The IDE -- Summary -- Chapter 2: Our First Program -- The PORTS of the PIC -- Good Programming Practice -- The Algorithm -- The Flowchart -- The Program Listing -- Using MPLABX IDE -- Creating the Project in MPLABX -- The First Program Turning On and Off an Output -- The Main Aspects of a 'C' Program | |
505 | 8 | |a The Comments and PIC Configuration -- The TRISA and TRISB -- A TRIS Example -- Exercise 2-1 -- Setting the PORTS -- The ADC (Analogue to Digital Converter) -- Setting Up the Oscillator -- Exercise 2-2 -- Waiting for an Input -- Waiting to Turn the LED Off -- Exercise 2-3 -- Comments -- Testing the Program -- Compiling and Running the Program -- Testing the Program Practically -- Summary -- Exercise Answers -- Chapter 3: Updating the Program -- If This Then Do That -- Saving the Old Program -- Labels and the Goto Instruction -- Exercise 3-1 -- While vs. If Then -- Slowing the Micro Down | |
505 | 8 | |a T0CON Register -- Adding a One-Second Delay -- Exercise 3-2 -- Delaying the Turn Off -- Using Subroutines -- Defining and Calling a Subroutine -- The delay Subroutine -- Calling the Subroutine from Within the Main Program -- The Variable Delay and the For Do Loop -- Local and Global Variables and Data Types -- Type Char -- Type Unsigned char -- Type int -- Local Variables -- Global Variables -- Exercise 3-3 -- Summary -- Exercise Answers -- Chapter 4: Applying What We've Learned -- Controlling a Single Set of Traffic Lights -- The Algorithm -- The Configuration Words | |
505 | 8 | |a The Analysis of the Program -- Downloading the Program to a Prototype Board -- Extending the Program to the Crossroads Traffic Lights -- The Algorithm -- The Program Analysis -- Summary -- Chapter 5: Real-World Inputs -- Using Analogue Inputs -- The ADCON0 Control Register -- The ADCON1 Register -- The ADCON2 Register -- Creating the Required Acquisition Time -- Example 1 -- Example 2 -- Changing the ADC Input Channels -- A Basic Setup for the ADC -- A Basic Program for the ADC -- The Algorithm -- Analysis of the Program -- Summary -- Chapter 6: Using the LCD -- The LCD Controller | |
505 | 8 | |a Instruction or Command Mode -- Data Mode -- Initializing the LCD -- The Subroutine lcdOut () -- The Subroutine sendInfo () -- The New Aspects to PIC Programming in This LCD Program -- Arrays -- Using Pointers -- Connecting the LCD in 8-Bit Mode -- The Volt Meter Program -- The Algorithm -- The New Aspects of the Program -- The gohome Subroutine -- The sysVoltage Subroutine -- The displayVoltage Subroutine -- Changing the Main Part of the Program -- Creating Special Characters on the LCD -- Summary -- Chapter 7: Creating a Header File -- Header Files -- Creating a Header File | |
500 | |a Includes the Header File into Your Program | ||
500 | |a Includes index. | ||
506 | |a Plný text je dostupný pouze z IP adres počítačů Univerzity Tomáše Bati ve Zlíně nebo vzdáleným přístupem pro zaměstnance a studenty | ||
520 | |a Go beyond the jigsaw approach of just using blocks of code you don't understand and become a programmer who really understands how your code works. Starting with the fundamentals on C programming, this book walks you through where the C language fits with microcontrollers. Next, you'll see how to use the industrial IDE, create and simulate a project, and download your program to an actual PIC microcontroller. You'll then advance into the main process of a C program and explore in depth the most common commands applied to a PIC microcontroller and see how to use the range of control registers inside the PIC. With C Programming for the PIC Microcontroller as your guide, you'll become a better programmer who can truly say they have written and understand the code they use. You will: Use the freely available MPLAX software Build a project and write a program using inputs from switches Create a variable delay with the oscillator source Measure real-world signals using pressure, temperature, and speed inputs Incorporate LCD screens into your projects Apply what you've learned into a simple embedded program. | ||
590 | |a Knovel |b Knovel (All titles) | ||
650 | 0 | |a PIC microcontrollers. | |
650 | 0 | |a C (Computer program language) | |
655 | 7 | |a elektronické knihy |7 fd186907 |2 czenas | |
655 | 9 | |a electronic books |2 eczenas | |
776 | 0 | 8 | |i Print version: |a Ward, Hubert Henry. |t C Programming for the PIC Microcontroller : Demystify Coding with Embedded Programming. |d Berkeley, CA : Apress L.P., ©2019 |z 9781484255247 |
856 | 4 | 0 | |u https://proxy.k.utb.cz/login?url=https://app.knovel.com/hotlink/toc/id:kpCPPICMDI/c-programming-for?kpromoter=marc |y Full text |