Skip to Content
Programming 32-bit Microcontrollers in C
book

Programming 32-bit Microcontrollers in C

by Lucio Di Jasio
April 2011
Intermediate to advanced
552 pages
12h 9m
English
Newnes
Content preview from Programming 32-bit Microcontrollers in C

Day 2 Walking in Circles

The Plan

It is funny how many stories of expeditions gone wrong culminate with a revealing moment where the explorers realize they got desperately lost and have been walking in circles for a while. In embedded-control programming it’s the opposite: Our programs need a framework, a structure so that the flow of code can be managed, and this usually is built around one main loop.

Today we will review the basics of the loops syntax in C, and we’ll also take the opportunity to introduce a first peripheral module: the 16-bit Timer1. Two new MPLAB© SIM features will be used for the first time: the Animate mode and the Logic Analyzer view.

Preparation

For this second lesson, we will need the same basic software components ...

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

Programming 8-bit PIC Microcontrollers in C

Programming 8-bit PIC Microcontrollers in C

Martin P. Bates

Publisher Resources

ISBN: 9780750687096