Skip to Main Content
PIC Projects and Applications using C
book

PIC Projects and Applications using C

by David W Smith
December 2012
Intermediate to advanced content levelIntermediate to advanced
204 pages
3h 40m
English
Newnes
Content preview from PIC Projects and Applications using C
Chapter 15

C Extra

In Chapter 2 we saw how to turn outputs on and off using C18 statements. Use the delay routines and execute a while loop.

In Chapter 3 we used the for loop.

The if statement was introduced in Chapters 4 and 5 and a modification of this the case statement was discussed in Chapter 14.

Chapter 14 showed how powerful the C language is for the microcontroller by calculating the value of C in the expression:

image

We have of course seen how to add, subtract, multiply, and divide variables and have used the “log” function to evaluate C in the above expression. But there are numerous other mathematical functions that we can use in our programs, ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal
Jumpstarting C

Jumpstarting C

Wolfram Donat

Publisher Resources

ISBN: 9780080971513