RX23E-A Group Force Sensor Measurement Example
R01AN5447EJ0100 Rev.1.00 Page 2 of 35
Nov.15.21
Contents
1. Overview ................................................................................................................................. 3
2. Related Documents ................................................................................................................. 3
3. Environment for Operation Confirmation .................................................................................. 4
4. Force Sensor Measurement .................................................................................................... 5
4.1 Force Sensor ........................................................................................................................................... 6
4.2 A/D Conversion of Strain Gauge Output ................................................................................................. 7
4.3 Calculation Procedure ............................................................................................................................. 8
4.4 Zero-Reset ............................................................................................................................................... 8
5. Sample Program ...................................................................................................................... 9
5.1 Operation Overview ................................................................................................................................. 9
5.2 Peripheral Functions and Pins to be Used ............................................................................................ 11
5.2.1 AFE・DSAD0・DSAD1 ...................................................................................................................... 12
5.2.2 SCI1・DMAC0・DMAC3・CMT0....................................................................................................... 13
5.2.3 PORT ................................................................................................................................................... 14
5.3 Zero-Reset Processing .......................................................................................................................... 15
5.4 Communication Control ......................................................................................................................... 16
5.5 Program Configuration .......................................................................................................................... 18
5.5.1 File Configuration ................................................................................................................................ 18
5.5.2 Macro Definition................................................................................................................................... 19
5.5.3 Structure .............................................................................................................................................. 19
5.5.4 Functions ............................................................................................................................................. 20
6. Importing a Project................................................................................................................. 27
6.1 Importing a Project into e2 studio .......................................................................................................... 27
6.2 Importing a Project into CS+ ................................................................................................................. 28
7. Measurement Result using Sample Program ......................................................................... 29
7.1 Memory Usage and Execution Cycle .................................................................................................... 29
7.1.1 Build Conditions................................................................................................................................... 29
7.1.2 Memory Usage .................................................................................................................................... 29
7.1.3 The number of Execution Cycle .......................................................................................................... 29
7.2 Force Sensor Measurement .................................................................................................................. 30
7.2.1 Measurement Appearance .................................................................................................................. 30
7.2.2 Measurement Condition ...................................................................................................................... 31
7.2.3 Measurement Result ........................................................................................................................... 33
Revision History ............................................................................................................................ 35