From 988b9f8e76e734137b81f96a7b6f2dae1e21db85 Mon Sep 17 00:00:00 2001 From: Razvalyaev Date: Sat, 18 Jan 2025 20:41:05 +0300 Subject: [PATCH] =?UTF-8?q?readme=20=D0=B4=D0=BB=D1=8F=20=D1=8D=D1=82?= =?UTF-8?q?=D0=BE=D0=B9=20=D0=B2=D0=B5=D1=82=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 126 +++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 125 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 23ba3bc..4e71ce6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,126 @@ - . +# MATLAB 23550 + **** +- [ ](#--) +- [ ](#--) + - [ ](#-) + - [ ](#-) + - [ ](#-) + - [ ](#-) +- [](#) + - [ ](#-) + - [ ](#--) + - [ ](#--) + - [ ](#) +## + S-Function ***Inu***. : +- ** ([ ](#-))**: S-Function, +- ** ([_app_wrapper_](#-))**: S-Function +- ** ([_Src_](#-))**: +- ** (beta) ([_xilinx_wrapper_](#-))**: ( ) + + . MATLAB [](#) + +## + : +- [ ](#-) +- [ ](#-) +- [ ](#-) +- [ (beta)](#-) + +### + (. wrapper) MATLAB ( , TMS). S-Function - Simulink, . MSVC-. + +S-Function : `n` . , S-Function `n+1`. + + , . S-Function: +- . , - , . S-Function . +- . while. while, . , `while()` `main()` . + + 4 : +- ***mcu_wrapper.c***     - , . / , S-Function. +- ***MCU.c***          - S-Function MATLAB. ***mcu_wrapper.c*** +- ***mcu_wrapper_conf.h***   - ***mcu_wrapper.c*** ***MCU.c*** . S-Function, . +- ***run_mex.bat***       - MSVC. ***.h***, ***.c*** . + + : +- `RUN_APP_MAIN_FUNC_THREAD` - main() +- `DEKSTOP_CYCLES_FOR_MCU_APP` - for(;;), main() +- `MCU_CORE_CLOCK` - ( ) +- `IN_PORT_WIDTH` - S-Function +- `IN_PORT_NUMB` - S-Function +- `OUT_PORT_WIDTH` - S-Function +- `OUT_PORT_NUMB` - S-Function + +_Note: `RUN_APP_MAIN_FUNC_THREAD` main() )_ + +_Note for future: _ + +### + . , / S-Function + + : +- ***app_includes.h***     - ARM MSVC. +- ***app_init.c/.h***      - +- ***app_io.c/.h***        - / / S-Function +- ***app_wrapper.c/.h***      - +- ***def.h***          - ( ) + + ***\app_wrapper\device_support*** TMS, MSVC ( `volatile`, `interrupt`, `asm`, `cregister`, IQlib). + +### + . , [ ](#-). . + +### + . - , S-Function. . + +###### adc_sim +***adc_sim.c/.h*** - ( ) + +###### pwm_sim +***pwm_sim.c/.h*** - + : +- (PWM_SIMULATION_MODE_REGULAR_PWM) +- (PWM_SIMULATION_MODE_TK_LINES). + + +## + MATLAB . . +1. [ MATLAB](#-) ( 2) +2. [ ](#--). : + - , [ ](#--) 2. + - , 3. +3. . : + - , [ ](#--) [ ](#--) 3. + - , , [ ](#--) [ ](#--) 3. + - , , 4. +4. . : + - - . + - - 2. + +#### + . "***\Src***". + + "[run_bat.mex](#-)" (***\Includes***) . "***.c***" . - , , . + +#### + ***mexing.m***. MATLAB-, "[***run_bat.mex***](#-)" . [](#--) + +#### + ***mexing.m*** ***run_mex.bat*** `debug`, . Visual Studio, ( ). ***MATLAB.exe***. + + . MATLAB , Visual Studio , , . + + , . . . . + + +#### +##### + - - . . + + MSVC, , `volatile`, `interrupt`, `asm`... DPS. -define + +##### + . . , . + + (. `ReadMemory`/`WriteMemory` - "" ) \ No newline at end of file