Download RZ/A1H Group Capture Engine Unit Sample Program
Transcript
RZ/A1H Group Capture Engine Unit Sample Program Contents 1. Specifications .......................................................................................................................................... 3 2. Operation Confirmation Conditions......................................................................................................... 4 3. Related Application Notes ...................................................................................................................... 5 4. Peripheral Functions ............................................................................................................................... 5 5. Hardware ................................................................................................................................................ 6 5.1 Hardware Configuration .................................................................................................................. 6 5.2 Pins Used ....................................................................................................................................... 7 6. Software .................................................................................................................................................. 8 6.1 Operational Overview ..................................................................................................................... 8 6.1.1 Data capture timing ..................................................................................................................... 8 6.1.2 Conversion of 10-bit data into 8-bit data ..................................................................................... 8 6.2 Memory Mapping ............................................................................................................................ 9 6.2.1 Section Assignment in Sample Code ....................................................................................... 10 6.2.2 Setting for MMU ........................................................................................................................ 13 6.3 Interrupts ....................................................................................................................................... 14 6.4 Fixed-Width Integers..................................................................................................................... 14 6.5 List of Constants and Error Codes ............................................................................................... 15 6.6 List of Variables ............................................................................................................................ 17 6.7 List of Functions ............................................................................................................................ 17 6.8 Function Specifications ................................................................................................................. 18 6.8.1 R_CEU_ModuleInit ................................................................................................................... 18 6.8.2 R_CEU_ConfigInit..................................................................................................................... 18 6.8.3 R_CEU_SetMemoryAddress .................................................................................................... 18 6.8.4 R_CEU_CallbackISR ................................................................................................................ 19 6.8.5 R_CEU_CaptureStart ............................................................................................................... 19 6.8.6 R_CEU_InterruptEnable ........................................................................................................... 19 6.8.7 R_CEU_InterruptDisable .......................................................................................................... 19 6.8.8 CEU_SAMPLE_CeuSingleCaptureInit ..................................................................................... 20 6.8.9 CEU_SAMPLE_CeuSingleCapture .......................................................................................... 20 6.8.10 CEU_SAMPLE_CeuConvert8bitRgbData ............................................................................ 21 6.9 Flowcharts .................................................................................................................................... 22 6.9.1 Main Processing ....................................................................................................................... 22 7. Sample Code ........................................................................................................................................ 23 8. Documents for Reference ..................................................................................................................... 23 R01AN1824EJ0100 May 28, 2014 Rev.1.00 Page 2 of 26