Download RX Family Application Note Coding Example of Wait Processing by

Transcript
RX Family
Coding Example of Wait Processing by Software
Contents
1.
Wait Processing.................................................................................................................................. 3
2.
Operation Confirmation Conditions .................................................................................................... 4
3.
Software ............................................................................................................................................. 6
3.1 Operation Overview ..................................................................................................................... 6
3.2 Coding Examples of Wait Processing .......................................................................................... 6
3.3 Notes on Using Functions ............................................................................................................ 7
3.4 File Composition .......................................................................................................................... 8
3.5 Functions...................................................................................................................................... 8
3.6 Function Specifications ................................................................................................................ 8
3.7 Flowcharts .................................................................................................................................... 9
3.7.1 Function That Specifies the Number of Loops ..................................................................... 9
3.7.2 Function That Specifies Execution Time .............................................................................. 9
4.
Reference ......................................................................................................................................... 10
4.1 Influence of Optimization Options on Instruction Codes ............................................................ 10
4.2 Influence of the Instruction Allocation Address on the Number of Instruction Execution Cycles
11
5.
Sample Code .................................................................................................................................... 12
6.
Reference Documents ...................................................................................................................... 12
R01AN1852EJ0100 Rev. 1.00
Feb. 3, 2014
Page 2 of 12