5-1
Program Control
This chapter discusses the processes and features involved in controlling the
flow of a program on the ’C2xx.
Program control involves controlling the order in which one or more blocks of
instructions are executed. Normally, the flow of a program is sequential: the
’C2xx executes instructions at consecutive program-memory addresses. At
times, a program must branch to a nonsequential address and then execute
instructions sequentially at that new location. For this purpose, the ’C2xx sup-
ports branches, calls, returns, repeats, and interrupts.
The ’C2xx also provides a power-down mode, which halts internal program
flow and temporarily lowers the power requirements of the ’C2xx.
Topic
Page
5.1
Program-Address Generation
5-2
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2
Pipeline Operation
5-7
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3
Branches, Calls, and Returns
5-8
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4
Conditional Branches, Calls, and Returns
5-10
. . . . . . . . . . . . . . . . . . . . . .
5.5
Repeating a Single Instruction
5-14
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.6
Interrupts
5-15
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.7
Reset Operation
5-33
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.8
Power-Down Mode
5-36
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Chapter 5