Skip to Content
C Programming for the PIC Microcontroller: Demystify Coding with Embedded Programming
book

C Programming for the PIC Microcontroller: Demystify Coding with Embedded Programming

by Hubert Henry Ward
December 2019
Intermediate to advanced
282 pages
4h 22m
English
Apress
Content preview from C Programming for the PIC Microcontroller: Demystify Coding with Embedded Programming
© Hubert Henry Ward 2020
H. H. WardC Programming for the PIC Microcontrollerhttps://doi.org/10.1007/978-1-4842-5525-4_4

4. Applying What We’ve Learned

Hubert Henry Ward1  
(1)
Lancashire, UK
 

In this chapter we are going to apply what we have learnt in a simple program. It is probably the most common program that all new embedded programmers start with. It will take you through a structured approach to design programs.

After reading this chapter, you will be able to program a simple model of a set of traffic lights. You will be able to call subroutines from within the main program loop.

Controlling a Single Set of Traffic Lights

Hopefully it should not be too much of a problem to design a program that would control a set of three lights, Red, Amber, and ...

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

Intermediate C Programming for the PIC Microcontroller: Simplifying Embedded Programming

Intermediate C Programming for the PIC Microcontroller: Simplifying Embedded Programming

Hubert Henry Ward

Publisher Resources

ISBN: 9781484255254Purchase LinkPublisher Website