V850E2/ML4 APPLICATION NOTE. Performance Evaluation Software. Abstract. Products. R01AN1228EJ0100 Rev Aug. 24, 2012
|
|
|
- Rosalyn Neal
- 10 years ago
- Views:
Transcription
1 APPLICATION NOTE V850E2/ML4 R01AN1228EJ0100 Rev.1.00 Abstract This document describes a sample code that uses timer array unit A (TAUA) of the V850E2/ML4 to evaluate performance of the user-created tasks (functions). Products V850E2/ML4 When using this application note with other Renesas MCUs, careful evaluation is recommended after making modifications to comply with the alternate MCU. R01AN1228EJ0100 Rev.1.00 Page 1 of 39
2 Contents 1. Specifications Operation Confirmation Conditions Hardware Pins Used Software Operation Overview File Composition Constants Variables Functions Function Specifications Flowcharts Main Processing Execution Processing for Command Line String Split Processing for Command Line String Analytical Processing for Command String Group Help Command Processing UARTJ0 Initialization UARTJ0 Receive Interrupt Processing UARTJ0 Specified Format Serial Output Processing UARTJ0 Line Reading Serial Input Processing TAUA0 Initialization TAUA0 Interrupt Processing TAUA0 Timer Counting Operation Start Processing TAUA0 Timer Counting Operation Stop Processing TAUA0 Timer Counting Acquisition Processing Evaluation Processing for Math Function Library Speed Evaluation Processing for Cosine Calculation Speed Evaluation Processing for Square Root Calculation Speed Evaluation Processing for User-Created Function Processing Speed User-Created Function Processing Application Example Performance Evaluation Adding A User-Created Task Sample Code Reference Documents R01AN1228EJ0100 Rev.1.00 Page 2 of 39
3 1. Specifications In this application note, the V850E2/ML4 evaluates performance of the user-created tasks (functions). This sample code is designed to have the user-created tasks embedded in it to select and activate the user-created tasks from a serial terminal. It evaluates the performance by counting the number of cycles taken from start to end of the user-created tasks. As shown in Figure 1.2 "Specification Diagram", the V850E2/ML4 CPU board waits a command which specifies the processing to be executed from several evaluation processing (evaluation command). When the evaluation command is transmitted, it executes a corresponding evaluation processing and transmits the result via serial output. When a performance evaluation is executed, an evaluation command is transferred to the V850E2/ML4 CPU board from the host PC via the serial cable. For this reason, the host PC is required to install a serial cable and a serial communication application soft such as hyper terminal other than the V850E2/ML4 CPU board. Refer to the section 5.1 "Performance Evaluation" for details. Table 1.1 lists the Peripheral Functions and Their Applications and Figure 1.1 shows the System Configuration Diagram. Table 1.1 Peripheral Functions and Their Applications Peripheral Function Timer array unit A (TAUA) Asynchronous serial interface (UARTJ) Interrupt function Application Measures the time for task processing Receives an evaluation command from the host PC and transmits the evaluation result Used for UARTJ receive interrupt and TAUA interrupt V850E2/ML4 CPU Board Model: R0K0F4022C000BR Serial communication application soft Evaluation result Serial cable Evaluation command > Evaluation command ============ Evaluation result displayed ============ Input from keyboard etc. V850E2/ML4 Host PC Figure 1.1 System Configuration Diagram R01AN1228EJ0100 Rev.1.00 Page 3 of 39
4 Start sample code Initialize module in use Output starting message Receive evaluation command? Evaluation command? [Global variations] int8_t * g_cmd_str[] : Command table int32_t (* g_cmdexe[])(int32_t, int8_t **) : Function table corresponding to command table Blue letters and blue lines are added by the user. The "n" is the integer greater than 3 appropriate to implementation. Select which evaluation shall be executed by the evaluation command (Transmit from the host PC using the serial communication application) /* ==== Command table ==== */ int8_t *g_cmd_str[] = { "HELP", /* ---- Evaluation command ---- */ "MATH", "FUNC1", /* Add a command to execute evaluation processing for usercreated task */ NULL }; /* ==== Function table corresponding to command table ==== */ int32_t (* g_cmdexe[])(int32_t, int8_t **) = { help, /* corresponds to "HELP" */ /* ---- Evaluation function ---- */ test_math, /* corresponds to "MATH" */ test_user_func1, /* corresponds to "FUNC1" */ /* Add a processing function to evaluate user-created task */ NULL }; Evaluation for the additional user-created tasks (added by the user) > EXIT > HELP > MATH > FUNC1 > g_cmd_str[n] Output ending message Output help message help Math function evaluation processing Result output test_math User-created task evaluation processing (Evaluation for the user_func1 function) Result output test_user_func1 User-created task xx evaluation processing (Evaluation for the user_func2 function etc.) Result output g_cmdexe[n] Evaluation command MATH Evaluation processing (evaluation and function which outputs the result) test_math() Internal call test_math_cos() test_math_sqrt() Task for evaluation (function) cos(), cosf(), sqrt(), sqrtf() FUNC1 test_user_func1() user_func1() FUNC2 etc.* test_user_func2() etc.* user_func2() etc.* : : : Description Evaluation for math function attached to the CX compiler Example of implementation for the user-created task evaluation Created and added by the user * The required numbers should be implemented in the appropriate names. Start evaluation processing for... Clear the total Start counting Clear counter Tasks for evaluation End counting Add counts to the total Count only this range Repeat to calculate the average When there is more than one task for evaluation, execute this range within the evaluation processing function. Accomplish the number of evaluations? Display results to the serial output result => average (total/the number of evaluations) End evaluation processing for... Figure 1.2 Specification Diagram R01AN1228EJ0100 Rev.1.00 Page 4 of 39
5 2. Operation Confirmation Conditions The sample code accompanying this application note has been run and confirmed under the conditions below. Table 2.1 Operation Confirmation Conditions Item Contents MCU used V850E2/ML4 Operating frequency Internal system clock (f CLK ) : 200MHz P bus clock (f PCLK ) : MHz Operating voltage Vcc: 3.3V Integrated development Renesas Electronics Corporation environment CubeSuite+ Ver C compiler Renesas Electronics Corporation CX compiler package Ver.1.21 Compile option -C f4022 -o DefaultBuild\v850e2ml4_eval.lmf -Xobj_path=Defaultbuild -g -l%projectdir%\inc -Xdef_ver +Xide -Xmap=DefaultBuild\v850e2ml4_eval.map -Xhex=DefaultBuild\v850e2ml4_eval.hex Operating mode rmal operating mode Sample code version 1.00 Board used R0K0F4022C000BR Tool used Serial communication application R01AN1228EJ0100 Rev.1.00 Page 5 of 39
6 3. Hardware 3.1 Pins Used Table 3.1 lists the Pins Used and Their Functions. Table 3.1 Pins Used and Their Functions Pin Name I/O Function P2_13/TXD0F Output Used as output to the serial port P2_12/RXD0F Input Used as input from the serial port R01AN1228EJ0100 Rev.1.00 Page 6 of 39
7 4. Software 4.1 Operation Overview This sample code uses the timer array unite A (TAUA) to evaluate user-created tasks (functions). The evaluation command is transferred to the performance evaluation software in which had the user-created tasks embedded from the serial communication application (serial terminal) of the host PC to execute evaluation. During execution of the user-created tasks, the number of PCLK cycles required for the TAUA is counted, and the number of CPU clock cycles is calculated to evaluate the performance. The result of the performance evaluation will be displayed in the serial terminal by transmitting from the serial output. Figure 4.1 shows the Performance Evaluation Diagram. V850E2/ML4 Performance evaluation software Evaluation command Serial terminal task selection and activation Start Task 1 Created and added by the user Task Task 1 Task End TAUA Evaluation result Evaluation result xxx (cycle) yyy (cycle)..... Figure 4.1 Performance Evaluation Diagram R01AN1228EJ0100 Rev.1.00 Page 7 of 39
8 4.2 File Composition Table 4.1 lists the Files Used in the Sample Code. Files not generated by the integrated development environment should not be listed in this table. Table 4.1 Files Used in the Sample Code File Name Outline Remarks main.c Main processing module io_taua0_timer.c Timer processing module io_uartj0_stdio.c Serial I/O processing module test_math.c Math functions evaluation module test_user.c User-created task evaluation module user_func1.c User-created function module io_taua0_timer.h Timer processing header io_uartj0_stdio.h Serial I/O processing header user_func1.h User-created function module header r_typedefs.h Fixed width integral types definition header R01AN1228EJ0100 Rev.1.00 Page 8 of 39
9 4.3 Constants Table 4.2 lists the Constants Used in the Sample Code. Table 4.2 Constants Used in the Sample Code Constant Name Setting Value Contents MAX_ARGNUM 8 Maximum number of arguments MAX_ARGLENGTH 256 Maximum length of argument characters BUF_SIZE_WAIT 256 Buffer size waiting for string input BUF_SIZE_UARTJ0_STDOUT 512 Output buffer size BUF_SIZE_UARTJ0_STDIN 256 Input buffer size PI Pi EVAL_NUM 256 Number of evaluations executed for MATH command processing EVAL_TIMES 10 Number of evaluations executed for FUNC1 command processing LOOP_TIMES 100 Number of empty loops executed during the usercreated task processing R01AN1228EJ0100 Rev.1.00 Page 9 of 39
10 4.4 Variables Table 4.3 lists the Global Variables. Table 4.3 Global Variables Type Variable Name Contents Function Used int8_t g_buf_wait[wait_buf_size] Buffer waiting for string input Main, cmdline_pars int8_t g_arg [MAX_ARGNUM][MAX_ARGLENGTH] Storage area for command string group command_exe, cmdline_split, cmdline_pars int8_t g_cmd_str[] Command table cmdline_pars int32_t ( g_cmdexe[])(int32_t, int8_t ) Processing function table corresponding to command table cmdline_pars double g_buf_double_result[eval_num] Storage buffer for calculation result of cos function and sqrt function float g_buf_float_result[eval_num] Storage buffer for calculation result of cosf function and sqrtf function uint32_t g_cnt_int_taua0 Counter for measuring the number of interrupt processing executions uint8_t g_buf_uartj0_stdout Output data buffer [UARTJ0_STDOUT_BUF_SIZE] uint8_t g_buf_uartj0_stdin Input data buffer [UARTJ0_STDIN_BUF_SIZE] int32_t g_cnt_uartj0_stdin Counter for the number of input data test_math, test_math_cos, test_math_sqrt test_math, test_math_cos, test_math_sqrt io_int_taua0_count_time, io_taua0_start_timer, io_taua0_get_counter io_uartj0_printf io_int_uartj0_recv, io_uartj0_fgets io_int_uartj0_recv, io_uartj0_fgets R01AN1228EJ0100 Rev.1.00 Page 10 of 39
11 4.5 Functions Table 4.4 lists the Functions. Table 4.4 Functions Function Name Main command_exe cmdline_split cmdline_pars Help io_init_uartj0 io_int_uartj0_recv io_uartj0_printf io_uartj0_fgets io_init_taua0 io_int_taua0_count_timer io_taua0_start_timer io_taua0_stop_timer io_taua0_get_counter test_math test_math_cos test_math_sqrt test_user_func1 user_func1 Outline Main processing Execution processing for command line string Split processing for command line string Analytical processing for command string group Help command processing UARTJ0 initialization UARTJ0 receive interrupt processing UARTJ0 specified format serial output processing UARTJ0 line reading serial input processing TAUA0 initialization TAUA0 interrupt processing TAUA0 timer counting operation start processing TAUA0 timer counting operation stop processing TAUA0 timer counting acquisition processing Evaluation processing for math function library speed Evaluation processing for cosine calculation speed Evaluation processing for square root calculation speed Evaluation processing for user-created function processing speed User-created function processing R01AN1228EJ0100 Rev.1.00 Page 11 of 39
12 4.6 Function Specifications The following tables list the sample code function specifications. Main Outline Header Declaration Description Arguments Return Value Main processing void main(void) After initialization, waits and executes the command input by calling the command_exe function. ne ne command_exe Outline Header Declaration Description Execution processing for command line string int32_t command_exe(int8_t buf) Executes a processing which corresponds to the command line string specified by the argument. Execute the split processing of the command line string by calling the cmdline_split function, and stores the string into the command string and the stringarray (command string group) which includes more than one argument string. Then analyzes the command string group by calling the cmdline_pars function. Arguments int8_t buf : Command line string Return Value >0 : Depends on command processing 0 : rmal end -1 : Detects EXIT command cmdline_split Outline Split processing for command line string Header Declaration int32_t cmdline_split(int8_t cmdline, int8_t argv[]) Description Splits the command line string specified by the cmdline with a space, and the split command string and argument string can be stored into the array argv up to the number of MAX_ARGNUM. When the beginning of the command line string specified by the cmdline has '>', split processing will be started from the character secondary to the '>'. When there are more than two consecutive spaces during split processing, the spaces shall be considered as one space. But if the string is surrounded by double quotes, it is considered as a single string. Also, returns the number of stored strings. Arguments int8_t cmdline : Command line string int8_t argv[] : Address to store the split result (command string group) Return Value Number of strings in the command string group R01AN1228EJ0100 Rev.1.00 Page 12 of 39
13 cmdline_pars Outline Analytical processing for command string group Header Declaration int32_t cmdline_pars(int32_t argc, int8_t argv[]) Description Analyzes the command string specified by the argument argv and executes corresponding command processing function. The command to be executed is registered in the command table g_cmd_str[]. When adding or deleting a command, change the command table g_cmd_str[] and the function table g_cmdexe[] corresponding to the command table. Arguments int32_t argc : Number of strings in the command string group int8_t argv[] : Command string group Return Value >0 : Depends on command processing 0 : rmal end other than command table -1 : Detects EXIT command Help Outline Help command processing Header Declaration int32_t help(int32_t argc, int8_t argv) Description Describes the evaluation command using the UARTJ0 serial output. Arguments int32_t argc : Number of strings in the command string group int8_t argv : Command string group Return Value 0 : rmal end -1 : Error io_init_uartj0 Outline Header Declaration Description Arguments Return Value UARTJ0 initialization void io_init_uartj0(void) Initializes the UARTJ0 to set it for the serial I/O. ne ne R01AN1228EJ0100 Rev.1.00 Page 13 of 39
14 io_int_uartj0_recv Outline Header Declaration Description Arguments Return Value UARTJ0 receive interrupt processing void io_int_uartj0_recv(void) Stores the UARTJ0 received data to the receive data buffer. ne ne io_uartj0_printf Outline UARTJ0 specified format serial output processing Header Declaration int32_t io_uartj0_printf(const int8_t format[],...) Description Executes serial output using the UARTJ0 according to the format specified by the argument. Arguments const int8_t format[],... : Output format string and data based on the format Return Value Number of output bytes io_uartj0_fgets Outline UARTJ0 line reading serial input processing Header Declaration int8_t io_uartj0_fgets(int8_t s, int32_t n, FILE stream) Description Reads a string one line by the UARTJ0 serial input. Arguments int8_t s : Address to store the read data int32_t n : Designation of the read size FILE stream : File pointer (stdin fixed) Return Value NULL : End without doing anything when the value of argument stream is not stdin. Other than NULL : The value of arguments (rmal end) io_init_taua0 Outline Header Declaration Description Arguments Return Value TAUA0 initialization void io_init_taua0(void) Initializes the TAUA0 to use it as the measurement timer for the PCLK clock cycle counts. ne ne R01AN1228EJ0100 Rev.1.00 Page 14 of 39
15 io_int_taua0_count_timer Outline TAUA0 interrupt processing Header Declaration void io_int_taua0_count_timer(void) Description Increments the measurement counter for the number of interrupt processing executions. Arguments ne Return Value ne io_taua0_start_timer Outline Header Declaration Description Arguments Return Value TAUA0 timer counting operation start processing void io_taua0_start_timer(void) Clears the measurement counter for the number of interrupt processing executions, and starts the TAUA0 timer counting operation. ne ne io_taua0_stop_timer Outline Header Declaration Description Arguments Return Value TAUA0 timer counting operation stop processing void io_taua0_stop_timer(void) Stops the TAUA0 timer counting operation. ne ne io_taua0_get_counter Outline Header Declaration Description Arguments Return Value TAUA0 timer counting acquisition processing uint32_t io_taua0_get_counter(void) Calculates the number of CPU clock cycles counted by the measurement counter for the number of interrupt processing execution and the TAUAT0 register during the timer counting operation. ne Number of cycles counted during the timer counting test_math Outline Evaluation processing for math function library speed Header Declaration int32_t test_math (int32_t argc, int8_t argv) Description Evaluates the math function library speed. Calls the evaluation processing function for cosine calculating speed and the evaluation processing function for square root calculation speed. Arguments int32_t argc : Number of strings in the command string group int8_t argv : Command string group Return Value 1 R01AN1228EJ0100 Rev.1.00 Page 15 of 39
16 test_math_cos Outline Header Declaration Description Arguments Return Value Evaluation processing for cosine calculation speed void test_math_cos (void) Evaluates the cosine calculating speed. Executes the cos function and cosf function of the MATH library for 256 times, and calculates the average of processing time every time being measured by the TAUA (CPU clock cycles). Outputs the calculation results by calling the io_uartj0_printf function. ne ne test_math_sqrt Outline Header Declaration Description Arguments Return Value Evaluation processing for square root calculation speed void test_math_sqrt (void) Evaluates the square root calculation speed. Executes the sqrt function and sqrtf function of the MATH library for 256 times, and calculates the average of processing time every time being measured by the TAUA (CPU clock cycles). Outputs the calculation results by calling the io_uartj0_printf function. ne ne test_user_func1 Outline Evaluation processing for user-created function processing speed Header Declaration int32_t test_user_func1 (int32_t argc, int8_t argv[]) Description Executes the user_func1 function for ten times, and calculates the average of processing time every time being measured by the TAUA (CPU clock cycles). Outputs the calculation results by calling the io_uartj0_printf function. Arguments int32_t argc : Number of strings in the command string group int8_t argv : Command string group Return Value 1 user_func1 Outline Header Declaration Description Arguments Return Value User-created function processing void user_func1(void) Example of implementation for the user-created function. In the sample code, the empty loop will be executed for 100 times. ne ne R01AN1228EJ0100 Rev.1.00 Page 16 of 39
17 4.7 Flowcharts Main Processing Figure 4.2 shows the Main Processing. main UARTJ0 serial output initialization io_init_uartj0 TAUA0 instrument timer initialization io_init_taua0 Interrupt allowed EI Serial output processing io_uartj0_printf Serial output processing io_uartj0_printf Output startup message ======================================================================= V850E2/ML4 Evaluation Program. Ver Copyright (C) 2012 Renesas Electronics Corporation. ALL rights reserved and Renesas Solutions Corporation. ALL rights reserved ======================================================================= Wait for input > Wait for serial string input io_uartj0_fgets String input error? Command execution processing command_exe Serial output processing io_uartj0_printf Output error message error: gets error End? Serial output processing io_uartj0_printf Output ending message end command input operation please stop debugger Figure 4.2 Main Processing R01AN1228EJ0100 Rev.1.00 Page 17 of 39
18 4.7.2 Execution Processing for Command Line String Figure 4.3 shows the Execution Processing for Command Line String. command_exe Split processing for command line string cmdline_split Copy argument into local variable [Argument] int8_t * buf : Command line string Split command line string Store split result into g_arg[] argc <- return value of the cmdline_split function Copy argument for the cmdline_pars function call argv[] <- g_arg[] [Global variable] int8_t g_arg[max_argnum][max_arglength] : Storage area for command string group [Local variables] int8_t * argv[max_argnum] : Command string group int32_t argc : Number of strings in command string group argc==0? The number of split strings, argc, is a return value of the cmdline_split function. Analytical execution processing for command string group cmdline_pars The argc and the argv will be delivered to the first argument and the second argument, respectively. return (0) return (return value of cmdline_pars) Figure 4.3 Execution Processing for Command Line String R01AN1228EJ0100 Rev.1.00 Page 18 of 39
19 4.7.3 Split Processing for Command Line String Figure 4.4 and Figure 4.5 show the Split Processing for Command Line String cmdline_split Loop1 (for statement) i = 0; i < MAX_ARGNUM; i++ Initialization of character string g_arg[] Loop1 (for statement) End [Arguments] int8_t * cmdline int8_t * argv[] : Command line string : Address to store split result (command string group) [Global variable] int8_t g_arg[max_argnum][max_arglength] : Storage area for command string group [Local variables] int32_t i : Counter for the number of strings int32_t argc : Number of strings in command string group int8_t * s : Character position for processing int8_t * ptr : Character position for processing result Initialization of character position s <- cmdline The beginning of command line character string is '>' s++ ('>' at the beginning of command-line string is ignored) Loop2 (for statement) argc = 0; argc < MAX_ARGNUM; A Repeat the processing for one array to reach the maximum argument using for statement B argc++ The character pointed by s indicates space or terminal character? i == 0? Loop2 (for statement) End argc-- return (argc) Figure 4.4 Split Processing for Command Line String R01AN1228EJ0100 Rev.1.00 Page 19 of 39
20 A Termination character or space? Delete space in front of a string Delete space in front of a string [Arguments] int8_t * cmdline : Command line string int8_t * argv[] : Address to store split result (command string group) [Global variables] int8_t g_arg[max_argnum][max_arglength] : Storage area for command string group [Local variables] int32_t i : Counter for the number of strings int32_t argc : Number of strings in command string group int8_t * s : Character position for processing int8_t * ptr : Character position for processing result i = 0 Double quotation? s++ Other than double quotation and terminal character? Go to double quotation or terminal character s++ Update pointer and the number of characters i >= MAX_ARGLENGTH? Serial output processing io_uartj0_printf *ptr <- *s *ptr++ *s++ i++ When the number of characters exceeds the maximum argument, output error message to end. command line is too long return (0) Any character other than termination character and space? Update pointer and the number of characters i >= MAX_ARGLENGTH? *ptr <- *s *ptr++ *s++ i++ B Serial output processing io_uartj0_printf return (0) When the number of characters exceeds the maximum argument, output error message to end. command line is too long Figure 4.5 Split Processing for Command Line String R01AN1228EJ0100 Rev.1.00 Page 20 of 39
21 4.7.4 Analytical Processing for Command String Group Figure 4.6 shows the Analytical Processing for Command String Group. cmdline_pars for loop1 s = argv[0]; s!= 0; s++ Uppercase conversion toupper [Arguments] int32_t argc : Number of strings in the command string group int8_t * argv[] : Command string group [Local variables] int8_t * s : Pointer for character position int32_t i : Loop counter Command string (the first string) uppercase conversion for loop1 End for loop2 i = argv1; i<argc; i++ Option first character? for loop3 s = argv[i]; *s!= '\0'; s++ Uppercase conversion toupper for loop3 End Option string uppercase conversion Convert option (string starting with /, + or - after the second argument) to uppercase for loop2 End for loop4 i = argv1; i<argc; i++ Match with command string? Call corresponding function g_cmdexe[i] registered function return (g_cmdexe[i] return value of registered function) Execute command processing function When the command matches with the corresponding string, execute appropriate function to end. for loop4 End The following processing will be executed when a corresponding command is given. argv[0] is "EXIT"? When the command shows EXIT, return the completion detection. return (-1) argv[0] is "ECHO"? When the command shows ECHO, return without doing anything. argv[0] is "PAUSE"? Wait for serial string input io_uartj0_fgets When the command shows PAUSE, wait until something is input and return. Serial output processing io_uartj0_printf When none of the above applies, output error message to end. error: %s is unsupport command return (0) Figure 4.6 Analytical Processing for Command String Group R01AN1228EJ0100 Rev.1.00 Page 21 of 39
22 4.7.5 Help Command Processing Figure 4.7 shows the Help Command Processing. help Argument error? When there are several argument strings, and the second string does not have "/H", it is an argument error. Serial output processing io_uartj0_printf Output error message help error return (-1) Serial output processing io_uartj0_printf Output help message commands help MATH : math function test FUNC1 : user task(=func1) test return (0) Figure 4.7 Help Command Processing R01AN1228EJ0100 Rev.1.00 Page 22 of 39
23 4.7.6 UARTJ0 Initialization Figure 4.8 shows the UARTJ0 Initialization. io_init_uartj0 [Local variable] uint32_t set_pdsc2 : PDSC2 register setting value PFC2 register setting PFC2 = H'3000 PFCE2 register setting PFCE2 = H'3000 PMC2 register setting PM2 register setting PMC2 = H'3000 PM2 = H'1000 PM2 &= ~H'2000 Set the necessary bit for P2_13 TXD0F output setting and P2_12 RXD0F input setting PIBC2 register setting PIBC2 = H'1000 PDSC2 register setting value calculation PDSC2 register protect cancellation procedure 1 Write H'A5 to PPCMD2 register PDSC2 register setting value : Set the present value of 13 bits to 0 set_pdsc2 <- PDSC2 & (~0x2000) PPCMD2 <- H'A5 PDSC2 register protect cancellation procedure 2 Write the setting value to PDSC2 register PDSC2 register protect cancellation procedure 3 Write the reversal value to PDSC2 register PDSC2 register protect cancellation procedure 4 Write the setting value to PDSC2 register PIS2 register setting PDSC2 <- set_pdsc2 PDSC2 is a register subject to protection. The procedures are required to change. PDSC2 <- ~set_pdsc2 PDSC2 <- set_pdsc2 PFC2 = H'1000 PISE2 register setting PISE2 &= ~H'1000 PISA2 register setting PISA2 &= ~H'1000 URTJ0CTL2 register setting URTJ0CTL2 <- H'0D90 : Baudrate = 9600bps URTJ0CTL1 register setting URTJ0CTL1 <- H'5102 : Data = 8 bits, parity, LSB first Interrupt level control set_il UARTJ0IR interrupt allowed URTJ0CTL1 register setting URTJ0CTL0 = H'E0 : UARTJ0 module enable return Figure 4.8 UARTJ0 Initialization R01AN1228EJ0100 Rev.1.00 Page 23 of 39
24 4.7.7 UARTJ0 Receive Interrupt Processing Figure 4.9 shows the UARTJ0 Receive Interrupt Processing. io_int_uartj0_recv [Global variables] uint8_t g_buf_uartj0_stdin[uartj0_stdin_buf_size] int32_t g_cnt_uartj0_stdin : Input data buffer : Counter for the number of input data Store received data into input buffer g_buf_uartj0_stdin[g_cnt_uartj0_stdin] <- URTJ0FRX Update counter for the number of input data g_cnt_uartj0_stdin++ Buffer over? : g_cnt_uartj0_stdin >= UARTJ0_STDIN_BUF_SIZE? Clear counter for g_cnt_uartj0_stdin <- 0 the number of input data return Figure 4.9 UARTJ0 Receive Interrupt Processing R01AN1228EJ0100 Rev.1.00 Page 24 of 39
25 4.7.8 UARTJ0 Specified Format Serial Output Processing Figure 4.10 shows the UARTJ0 Specified Format Serial Output Processing. io_uartj0_printf Initialize variables Initialize variable for argument list scanning va_start Output position setting [Argument] uint8_t format[],... : Output format string and data according to the format cnt <- 0 pt <- format int8_t * pt_out pt_buf <- pt int8_t * pt_buf pt_out <- g_buf_uartj0_stdout int32_t cnt_buf cnt_buf <- 0 int32_t i [Global variable] uint8_t g_buf_uartj0_stdout[uartj0_stdout_buf_size] : Output data buffer [Local variables] int32_t cnt : Output characters int8_t * pt : Current processing position : Writing position of output data buffer : Compiled processing position : Number of compiled processing : Loop counter Loop1 (for statement) i=0; i<(uartj0_stdout_buf_size-5); i++ *pt_buf == line feed? Line feed code processing *pt_buf == '%'? Format conversion *pt_buf == termination character? Initialize variables Update variables *pt_out++ <- *pt_buf++ cnt_buf++ Loop1 (for statement) End Output termination character setting *pt_out <- '\0' pt += cnt_buf Output string io_uartj0_serial_output *pt == termination character? *pt_buf == termination character? Initialize variable for argument list scanning va_start return (cnt) Figure 4.10 UARTJ0 Specified Format Serial Output Processing R01AN1228EJ0100 Rev.1.00 Page 25 of 39
26 4.7.9 UARTJ0 Line Reading Serial Input Processing Figure 4.11 shows the UARTJ0 Line Reading Serial Input Processing. io_uartj0_fgets input stream is standard input? Exceed the input size? [Arguments] uint8_t *s int32_t n FILE * stream return (NULL) Loop1 (for statement) i = 0; i < (n - 2); i++ End without doing anything if standard input is not used Copy input s[i] <- g_buf_uartj0_stdin[i] Loop1 (for statement) End : Address to store read data : Specified read size : Input stream stdin fixed [Global variables] uint8_t g_buf_uartj0_stdin[uartj0_stdin_buf_size] : Received data buffer int32_t g_cnt_uartj0_stdin : Counter for the number of received data [Local variable] int32_t i : Loop counter When exceed the specified size, Loop by for statement and copy input data until just before the last position in the data storage area s[i] <- g_buf_uartj0_stdin[i] Update input buffer counter Substitute termination character Subtract for the size copied g_cnt_uartj0_stdin <- g_cnt_uartj0_stdin - i Store termination character in the last position of the data storage area s[n-1] <- '\0' return (s) Make line feed? When make the line feed, Wait for interrupt using infinite loop until a line feed or specified size is input Loop2 (for statement) i = 0; i < (g_cnt_uartj0_stdin- 1); i++ Initialize variable Loop2 (for statement) End Loop by for statement and copy input data until just before the line feed in the data storage area s[i] <- g_buf_uartj0_stdin[i] Clear input buffer counter Substitute termination character return (s) Clear the counter after all input was copied. g_cnt_uartj0_stdin <- 0 Store termination character in the last position of the data storage area s[i] <- '\0' Figure 4.11 UARTJ0 Line Reading Serial Input Processing R01AN1228EJ0100 Rev.1.00 Page 26 of 39
27 TAUA0 Initialization Figure 4.12 shows the TAUA0 Initialization. io_init_taua0 TAUA0CMOR0 register setting TAUA0TPS register setting TAUA0CMOR0 <- H'0000 TAUA0CKS bit <- B'00 TAUA0STS bit <- B'000 TAUA0MD bit <- B'0000 TAUA0TPS0 <- H'F<-FF0 TAUA0PRS0 bit <- B'0000 : Operating clock selection CK0 : Software trigger : Interval timer mode, INTTAUA0Im cannot be output : CK0 clock division ratio specified PCLK/2^0 TAUA0CDR0 register setting TAUA0CDR0 <- H'FFFF : Compare value setting Interrupt level control set_il Set TAUA0 (ch0) interrupt priority level to 0 TAUA0 (ch0) interrupt Mask bit (EIMK) clear MKTAUA0I0 <- 0 : Clear TAUA0 (ch0) interrupt mask bit (EIMK) return Figure 4.12 TAUA0 Initialization R01AN1228EJ0100 Rev.1.00 Page 27 of 39
28 TAUA0 Interrupt Processing Figure 4.13 shows the TAUA0 Interrupt Processing. io_int_taua0_count_timer Increment counter [Global variable] uint32_t g_cnt_int_taua0 : Counter for measuring the number of interrupt processing executions g_cnt_int_taua0++ return Figure 4.13 TAUA0 Interrupt Processing TAUA0 Timer Counting Operation Start Processing Figure 4.14 shows the TAUA0 Timer Counting Operation Start Processing. io_taua0_start_timer Clear measured value for the number of TAUA0 interrupts [Global variable] uint32_t g_cnt_int_taua0 : Counter for measuring the number of interrupt processing executions g_cnt_int_taua0 <- 0 Start TAUA0 timer counting operation TAUA0TS <- 1 return Figure 4.14 TAUA0 Timer Counting Operation Start Processing R01AN1228EJ0100 Rev.1.00 Page 28 of 39
29 TAUA0 Timer Counting Operation Stop Processing Figure 4.15 shows the TAUA0 Timer Counting Operation Stop Processing. io_taua0_stop_timer Stop TAUA0 timer counting operation TAUA0TT <- 1 return Figure 4.15 TAUA0 Timer Counting Operation Stop Processing TAUA0 Timer Counting Acquisition Processing Figure 4.16 shows the TAUA0 Timer Counting Acquisition Processing. io_taua0_get_counter Number of PCLK cycles The lower 16 bits calculation Number of PCLK cycles The upper 16 bits calculation Calculate the number of CPU clock cycles from the number of PCLK cycles return (result) result <- (H'FFFF - TAUA0CNT0) result = (g_cnt_int_taua0 << 16u) result *= 3 [Global variable] uint32_t g_cnt_int_taua0 [Local variable] result : Number of PCLK cycles Substitute the lower 16 bits Read from TAUA0CNT0 register to calculate : Number of PCLK cycles Substitute the upper 16 bits Calculate from g_cnt_int_taua0 : CPU clock = 200MHz, PCLK = MHz : Counter for measuring the number of interrupt processing executions : Counter for calculating the return value Figure 4.16 TAUA0 Timer Counting Acquisition Processing R01AN1228EJ0100 Rev.1.00 Page 29 of 39
30 Evaluation Processing for Math Function Library Speed Figure 4.17 shows the Evaluation Processing for Math Function Library Speed. test_math Evaluation processing for cosine calculation speed test_math_cos Evaluation processing for square root calculation speed test_math_sqrt return (1) Figure 4.17 Evaluation Processing for Math Function Library Speed R01AN1228EJ0100 Rev.1.00 Page 30 of 39
31 Evaluation Processing for Cosine Calculation Speed Figure 4.18 shows the Evaluation Processing for Cosine Calculation Speed. test_math_cos Initialize total cycles Serial output processing io_uartj0_printf [Local variables] uint32_t cyc_float : Total cycles required for the cosf function uint32_t cyc_double : Total cycles required for the cos function cyc_float <- 0 cyc_double <- 0 Output processing starting message ============ Start cosine calculation =========================== Argument calculation of cosine TAUA0 timer counting operation start processing io_taua0_start_timer Double floating point cosine calculationcos Measure the timer for double floating point cosine calculation processing (PCLK cycles) TAUA0 timer counting operation stop processing io_taua0_stop_timer TAUA0 timer counting acquisition processing io_taua0_get_counter Add total cycles Convert the measured PCLK cycles into CPU clock cycles cyc_double += time for double floating point cosine calculation processing (CPU clock cycles) Achieve the number of speed evaluation? Argument calculation of cosine Repeat until the number of times defined by the EVAL_NUM will be reached TAUA0 timer counting operation start processing io_taua0_start_timer Floating point cosine calculation cosf TAUA0 timer counting operation stop processing io_taua0_stop_timer TAUA0 timer counting acquisition processing io_taua0_get_counter Add total cycles Measure the time for floating point cosine calculation processing (PCLK cycles) Convert the measured PCLK cycles into CPU clock cycles cyc_float += time for floating point cosine calculation processing (CPU clock cycles) Achieve the number of speed evaluation? Serial output processing io_uartj0_printf Repeat until the number of times defined by the EVAL_NUM will be reached Output the number of evaluations, average cycles and processing ending message (XXX indicates EVAL_NUM, YYY indicates cyc_double/eval_num, and ZZZ indicates cyc_float/eval_num) return Evaluation Result: Number Of Data = XXX Renesas V850 Double Calculation Cycles (XXX point average) = YYY Renesas V850 Float Calculation Cycles (XXX point average) = ZZZ ============ End cosine calculation ============================= Figure 4.18 Evaluation Processing for Cosine Calculation Speed R01AN1228EJ0100 Rev.1.00 Page 31 of 39
32 Evaluation Processing for Square Root Calculation Speed Figure 4.19 shows the Evaluation Processing for Square Root Calculation Speed. test_math_sqrt Initialize total cycles Serial output processing io_uartj0_printf [Local variables] uint32_t cyc_float : Total cycles required for the sqrtf function uint32_t cyc_double : Total cycles required for the sqrt function cyc_float <- 0 cyc_double <- 0 Output processing starting message ============ Start square root calculation ====================== Argument calculation of square root TAUA0 tiemr counting operation start processing io_taua0_start_timer Double floating point square root calculation sqrt TAUA0 timer counting operation stop processing io_taua0_stop_timer TAUA0 timer counting acquisition processing io_taua0_get_counter Add total cycles Measure the time for double floating point square root calculation processing (PCLK cycles) Convert the measured PCLK cycles into CPU clock cycles cyc_double += time for double floating point square root calculation processing (CPU clock cycles) Achieve the number of speed evaluation? Argument calculation of square root Repeat until the number of times defined by the EVAL_NUM will be reached TAUA0 timer counting operation start processing io_taua0_start_timer Floating point square root calculation sqrtf TAUA0 timer counting operation stop processing io_taua0_stop_timer TAUA0 timer counting acquisition processing io_taua0_get_counter Add total cycles Measure the timer for floating point square root calculation processing (PCLK cycles) Convert the measured PCLK cycles into CPU clock cycles cyc_float += time for floating point square root calculation processing (CPU clock cycles) Achieve the number of speed evaluation? Serial output processing io_uartj0_printf return Repeat until the number of timer defined by the EVAL_NUM will be reached Output the number of evaluations, average cycles and processing ending message (XXX indicates EVAL_NUM, YYY indicates cyc_double/eval_num, and ZZZ indicates cyc_float/eval_num) Evaluation Result: Number Of Data = XXX Renesas V850 Double Calculation Cycles (XXX point average) = YYY Renesas V850 Float Calculation Cycles (XXX point average) = ZZZ ============ End square root calculation ======================== Figure 4.19 Evaluation Processing for Square Root Calculation Speed R01AN1228EJ0100 Rev.1.00 Page 32 of 39
33 Evaluation Processing for User-Created Function Processing Speed Figure 4.20 shows the Evaluation Processing for User-Created Function Processing Speed. test_user_func1 [Local variable] cyc_func1 : Total cycles Initialize total cycles cyc_func1 <- 0 Serial output processing io_uartj0_printf Output processing starting message ======== Start user task(=func1) operation ===================== TAUA0 timer counting operation start processing io_taua0_start_timer User-created function1 processing user_func1 Measure the time for user-created function1 calculation processing (PCLK cycles) TAUA0 timer counting operation stop processing io_taua0_stop_timer TAUA0 timer counting acquisition processing io_taua0_get_counter Convert the measured PCLK cycles into the CPU clock cycles Add total cycles cyc_func1 += time for user-created funcion1 calculation processing (CPU clock cycles) Achieve the number of speed evaluation? Serial output processing io_uartj0_printf return (1) Repeat until the number of times defined by the EVAL_TIMES will be reached Output the number of evaluations, average cycles and processing ending message (XXX indicates EVAL_NUM, and YYY indicates cyc_func1/eval_num) Evaluation Result: Number Of Evaluation Times = XXX User Task(=func1) Operation Cycles (YYY times average ============ End user task(=func1) operation ===================== Figure 4.20 Evaluation Processing for User-Created Function Processing Speed R01AN1228EJ0100 Rev.1.00 Page 33 of 39
34 User-Created Function Processing Figure 4.21 shows the User-Created Function Processing. user_func1 This is an example of implementation. The user needs to implement a processing to have speed evaluation. Achieved the number of loops? Number of loops defined by the LOOP_TIMES Empty loop return Figure 4.21 User-Created Function Processing R01AN1228EJ0100 Rev.1.00 Page 34 of 39
35 5. Application Example This chapter describes the performance evaluation method using sample code and how to add a user-creased task. 5.1 Performance Evaluation This section describes the procedure for the evaluation. 1. Connect the host CP and the V850E2/ML4 CPU board with the serial cable. If the PC does not have a serial port, a USB serial convertible cable can be used. 2. Activate the serial communication application in the host PC and make communication setting as follows. Transfer rate 9600bps, Data length 8, parity, 1 stop bit, Flow control Xon/Xoff 3. Load and execute the program. 4. After executing the program, the following log will be displayed on the serial communication application. ======================================================================= V850E2/ML4 Evaluation Program. Ver Copyright (C) 2012 Renesas Electronics Corporation. ALL rights reserved and Renesas Solutions Corporation. ALL rights reserved ======================================================================= > Figure 5.1 Performance Evaluation Activation Log 5. When input "HELP" in the console of the serial communication application, the evaluation command type will be displayed. The following is a display example when 100 times loop processing (=user_func1) are embedded for the math function calculation included in the sample code and the user-created task. Any task the user desires to evaluate and its corresponding command can be added as may be necessary. > HELP commands help MATH : math function test FUNC1 : user task(=func1) test > Figure 5.2 Performance Evaluation HELP Log R01AN1228EJ0100 Rev.1.00 Page 35 of 39
36 6. When input "MATH" in the console of the serial communication application, it executes the math function calculation using the V850 embedded library (=math.h) included in the sample code, and the number of cycles required for the calculation will be displayed. The following shows the average value when repeating the math function calculation for 256 times using the V850 embedded library. > MATH ============ Start cosine calculation =========================== Evaluation Result: Number Of Data = 256 Renesas V850 Double Calculation Cycles (256 point average) = 341 Renesas V850 Float Calculation Cycles (256 point average) = 75 ============ End cosine calculation ============================= ============ Start square root calculation ====================== Evaluation Result: Number Of Data = 256 Renesas V850 Double Calculation Cycles (256 point average) = 56 Renesas V850 Float Calculation Cycles (256 point average) = 38 ============ End square root calculation ======================== > Figure 5.3 Performance Evaluation MATH Log 7. When input "FUNC1" in the console of the serial communication application, it executes 100 times loop processing included in the sample code as a user-created task example, and the number of cycles required for the processing will be displayed. The following shows the average value when repeating 100 times loop processing for ten times. > FUNC1 ======== Start user task(=func1) operation ===================== Evaluation Result: Number Of Evaluation Times = 10 User Task(=func1) Operation Cycles (10 times average) = 1221 ============ End user task(=func1) operation ===================== > Figure 5.4 Performance Evaluation FUNC1 Log [te] Precaution for Evaluation The measurement in the sample code is executed by the timer, but the number of cycles is required for the CPU timer start processing and end processing. Therefore, it is necessary to measure the number of cycles when the task is not executed and deduct it from the number of cycles when the task is executed. For example, if the EMPTY_LOOP of the test_math.c is validated (comment out #undef EMPTY_LOOP) in the sample code math function calculation, the number of cycles when the task is not executed can be measured. R01AN1228EJ0100 Rev.1.00 Page 36 of 39
37 /* ---- Empty loop calculation ---- */ /* Calculation result will be derived by subtraction from empty loop calculation result */ #define EMPTY_LOOP //#undef EMPTY_LOOP /* Empty loop calculation will be executed when comment out this line */ Figure 5.5 Example of Implementation for Empty loop R01AN1228EJ0100 Rev.1.00 Page 37 of 39
38 5.2 Adding A User-Created Task This section describes how to add a user-created task. 1. Create a task to be added as a function with C language (hereinafter called user_func2). 2. Embed the user_func2 into the test_user.c, along with the user_func1 in the test_user_func1, by executing the io_taua0_start_timer function before the user_func2, and also executing the io_taua0_stop_timer function after the user_func2, which for (i = 0; i < EVAL_TIMES; i++) { io_taua0_start_timer(); #ifndef EMPTY_LOOP user_func2(); #endif io_taua0_stop_timer(); } cyc_func1 += io_taua0_get_counter(); Figure 5.6 Example of Adding A User-Created Task R01AN1228EJ0100 Rev.1.00 Page 38 of 39
39 6. Sample Code Sample code can be downloaded from the Renesas Electronics website. 7. Reference Documents User's Manual: Hardware V850E2/ML4 User's Manual: Hardware (R01UH0262EJ) The latest version can be downloaded from the Renesas Electronics website. Technical Update/Technical News The latest information can be downloaded from the Renesas Electronics website. User's Manual: Development Tools CubeSuite+ V Integrated development environment User's Manual: Coding (CX compiler) (R20UT0554EJ) CubeSuite+ V Integrated development environment User's Manual: Build (CX compiler) (R20UT0558EJ) The latest version can be downloaded from the Renesas Electronics website. Website and Support Renesas Electronics website Inquiries R01AN1228EJ0100 Rev.1.00 Page 39 of 39
40 REVISION HISTORY V850E2/ML4 Application te Rev. Date Page 1.00 First edition issued Description Summary All trademarks and registered trademarks are the property of their respective owners. A-1
41 General Precautions in the Handling of MPU/MCU Products The following usage notes are applicable to all MPU/MCU products from Renesas. For detailed usage notes on the products covered by this manual, refer to the relevant sections of the manual. If the descriptions under General Precautions in the Handling of MPU/MCU Products and in the body of the manual differ from each other, the description in the body of the manual takes precedence. 1. Handling of Unused Pins Handle unused pins in accord with the directions given under Handling of Unused Pins in the manual. The input pins of CMOS products are generally in the high-impedance state. In operation with an unused pin in the open-circuit state, extra electromagnetic noise is induced in the vicinity of LSI, an associated shoot-through current flows internally, and malfunctions occur due to the false recognition of the pin state as an input signal become possible. Unused pins should be handled as described under Handling of Unused Pins in the manual. 2. Processing at Power-on The state of the product is undefined at the moment when power is supplied. The states of internal circuits in the LSI are indeterminate and the states of register settings and pins are undefined at the moment when power is supplied. In a finished product where the reset signal is applied to the external reset pin, the states of pins are not guaranteed from the moment when power is supplied until the reset process is completed. In a similar way, the states of pins in a product that is reset by an on-chip power-on reset function are not guaranteed from the moment when power is supplied until the power reaches the level at which resetting has been specified. 3. Prohibition of Access to Reserved Addresses Access to reserved addresses is prohibited. The reserved addresses are provided for the possible future expansion of functions. Do not access these addresses; the correct operation of LSI is not guaranteed if they are accessed. 4. Clock Signals After applying a reset, only release the reset line after the operating clock signal has become stable. When switching the clock signal during program execution, wait until the target clock signal has stabilized. When the clock signal is generated with an external resonator (or from an external oscillator) during a reset, ensure that the reset line is only released after full stabilization of the clock signal. Moreover, when switching to a clock signal produced with an external resonator (or by an external oscillator) while program execution is in progress, wait until the target clock signal is stable. 5. Differences between Products Before changing from one product to another, i.e. to one with a different type number, confirm that the change will not lead to problems. The characteristics of MPU/MCU in the same group but having different type numbers may differ because of the differences in internal memory capacity and layout pattern. When changing to products of different type numbers, implement a system-evaluation test for each of the products.
42 tice 1. Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software, and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from the use of these circuits, software, or information. 2. Renesas Electronics has used reasonable care in preparing the information included in this document, but Renesas Electronics does not warrant that such information is error free. Renesas Electronics assumes no liability whatsoever for any damages incurred by you resulting from errors in or omissions from the information included herein. 3. Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property rights of third parties by or arising from the use of Renesas Electronics products or technical information described in this document. license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights of Renesas Electronics or others. 4. You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part. Renesas Electronics assumes no responsibility for any losses incurred by you or third parties arising from such alteration, modification, copy or otherwise misappropriation of Renesas Electronics product. 5. Renesas Electronics products are classified according to the following two quality grades: "Standard" and "High Quality". The recommended applications for each Renesas Electronics product depends on the product's quality grade, as indicated below. "Standard": Computers; office equipment; communications equipment; test and measurement equipment; audio and visual equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots etc. "High Quality": Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anti-crime systems; and safety equipment etc. Renesas Electronics products are neither intended nor authorized for use in products or systems that may pose a direct threat to human life or bodily injury (artificial life support devices or systems, surgical implantations etc.), or may cause serious property damages (nuclear reactor control systems, military equipment etc.). You must check the quality grade of each Renesas Electronics product before using it in a particular application. You may not use any Renesas Electronics product for any application for which it is not intended. Renesas Electronics shall not be in any way liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for which the product is not intended by Renesas Electronics. 6. You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics, especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation characteristics, installation and other product characteristics. Renesas Electronics shall have no liability for malfunctions or damages arising out of the use of Renesas Electronics products beyond such specified ranges. 7. Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further, Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measures to guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. Because the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or systems manufactured by you. 8. Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with applicable laws and regulations. 9. Renesas Electronics products and technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited under any applicable domestic or foreign laws or regulations. You should not use Renesas Electronics products or technology described in this document for any purpose relating to military applications or use by the military, including but not limited to the development of weapons of mass destruction. When exporting the Renesas Electronics products or technology described in this document, you should comply with the applicable export control laws and regulations and follow the procedures required by such laws and regulations. 10. It is the responsibility of the buyer or distributor of Renesas Electronics products, who distributes, disposes of, or otherwise places the product with a third party, to notify such third party in advance of the contents and conditions set forth in this document, Renesas Electronics assumes no responsibility for any losses incurred by you or third parties as a result of unauthorized use of Renesas Electronics products. 11. This document may not be reproduced or duplicated in any form, in whole or in part, without prior written consent of Renesas Electronics. 12. Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this document or Renesas Electronics products, or if you have any other inquiries. (te 1) "Renesas Electronics" as used in this document means Renesas Electronics Corporation and also includes its majority-owned subsidiaries. (te 2) "Renesas Electronics product(s)" means any product developed or manufactured by or for Renesas Electronics. SALES OFFICES Refer to " for the latest and detailed information. Renesas Electronics America Inc Scott Boulevard Santa Clara, CA , U.S.A. Tel: , Fax: Renesas Electronics Canada Limited 1101 Nicholson Road, Newmarket, Ontario L3Y 9C3, Canada Tel: , Fax: Renesas Electronics Europe Limited Dukes Meadow, Millboard Road, Bourne End, Buckinghamshire, SL8 5FH, U.K Tel: , Fax: Renesas Electronics Europe GmbH Arcadiastrasse 10, Düsseldorf, Germany Tel: , Fax: Renesas Electronics (China) Co., Ltd. 7th Floor, Quantum Plaza,.27 ZhiChunLu Haidian District, Beijing , P.R.China Tel: , Fax: Renesas Electronics (Shanghai) Co., Ltd. Unit 204, 205, AZIA Center,.1233 Lujiazui Ring Rd., Pudong District, Shanghai , China Tel: , Fax: / Renesas Electronics Hong Kong Limited Unit , 16/F., Tower 2, Grand Century Place, 193 Prince Edward Road West, Mongkok, Kowloon, Hong Kong Tel: , Fax: /9044 Renesas Electronics Taiwan Co., Ltd. 13F,. 363, Fu Shing rth Road, Taipei, Taiwan Tel: , Fax: Renesas Electronics Singapore Pte. Ltd. 1 harbourfront Avenue, #06-10, keppel Bay Tower, Singapore Tel: , Fax: Renesas Electronics Malaysia Sdn.Bhd. Unit 906, Block B, Menara Amcorp, Amcorp Trade Centre,. 18, Jln Persiaran Barat, Petaling Jaya, Selangor Darul Ehsan, Malaysia Tel: , Fax: Renesas Electronics Korea Co., Ltd. 11F., Samik Lavied' or Bldg., Yeoksam-Dong, Kangnam-Ku, Seoul , Korea Tel: , Fax: Renesas Electronics Corporation. All rights reserved. Colophon 2.0
Block 3 Size 0 KB 0 KB 16KB 32KB. Start Address N/A N/A F4000H F0000H. Start Address FA000H F8000H F8000H F8000H. Block 2 Size 8KB 16KB 16KB 16KB
APPLICATION NOTE M16C/26 1.0 Abstract The following article describes using a synchronous serial port and the FoUSB (Flash-over-USB ) Programmer application to program the user flash memory of the M16C/26
RL78/G12 APPLICATION NOTE. Serial Array Unit (CSI Master Communication) Introduction. Target Device. R01AN1369EJ0100 Rev. 1.00. Mar.
APPLICATION NOTE RL78/G12 R01AN1369EJ0100 Rev. 1.00 Introduction This application note describes how the serial array unit (SAU) performs communication tasks using the CSI master communication feature.
RENESAS TECHNICAL UPDATE
RENESAS TECHNICAL UPDATE TN-RX*-A***A/E RENESAS TECHNICAL UPDATE 1753, Shimonumabe, Nakahara-ku, Kawasaki-shi, Kanagawa 211-8668 Japan Renesas Electronics Corporation Date: Apr. 1, 2013 Product Category
ARM Thumb Microcontrollers. Application Note. Software ISO 7816 I/O Line Implementation. Features. Introduction
Software ISO 7816 I/O Line Implementation Features ISO 7816-3 compliant (direct convention) Byte reception and transmission with parity check Retransmission on error detection Automatic reception at the
Serial Communications
Serial Communications 1 Serial Communication Introduction Serial communication buses Asynchronous and synchronous communication UART block diagram UART clock requirements Programming the UARTs Operation
8-Bit Flash Microcontroller for Smart Cards. AT89SCXXXXA Summary. Features. Description. Complete datasheet available under NDA
Features Compatible with MCS-51 products On-chip Flash Program Memory Endurance: 1,000 Write/Erase Cycles On-chip EEPROM Data Memory Endurance: 100,000 Write/Erase Cycles 512 x 8-bit RAM ISO 7816 I/O Port
PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram
TOOLSTICK VIRTUAL TOOLS USER S GUIDE RELEVANT DEVICES 1. Introduction The ToolStick development platform consists of a ToolStick Base Adapter and a ToolStick Daughter card. The ToolStick Virtual Tools
Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs
Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs AN033101-0412 Abstract This describes how to interface the Dallas 1-Wire bus with Zilog s Z8F1680 Series of MCUs as master devices. The Z8F0880,
AN141 SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES. 1. Introduction. 2. Overview of the SMBus Specification. 2.1.
SMBUS COMMUNICATION FOR SMALL FORM FACTOR DEVICE FAMILIES 1. Introduction C8051F3xx and C8051F41x devices are equipped with an SMBus serial I/O peripheral that is compliant with both the System Management
Old Company Name in Catalogs and Other Documents
To our customers, Old Company Name in Catalogs and Other Documents On April 1 st, 2010, NEC Electronics Corporation merged with Renesas Technology Corporation, and Renesas Electronics Corporation took
File driver for FTP server and Web server Module Firmware Integration Technology Contents
Introduction APPLICATION NOTE R20AN0333EJ0101 Rev.1.01 This Application Note explains about Filesystem interface called from Web server and FTP server for Embedded TCP/IP M3S-T4-Tiny. Please refer to the
TivaWare Utilities Library
TivaWare Utilities Library USER S GUIDE SW-TM4C-UTILS-UG-1.1 Copyright 2013 Texas Instruments Incorporated Copyright Copyright 2013 Texas Instruments Incorporated. All rights reserved. Tiva and TivaWare
Software User Guide UG-461
Software User Guide UG-461 One Technology Way P.O. Box 9106 Norwood, MA 02062-9106, U.S.A. Tel: 781.329.4700 Fax: 781.461.3113 www.analog.com ezlinx icoupler Isolated Interface Development Environment
Freescale Semiconductor, I
nc. Application Note 6/2002 8-Bit Software Development Kit By Jiri Ryba Introduction 8-Bit SDK Overview This application note describes the features and advantages of the 8-bit SDK (software development
Programing the Microprocessor in C Microprocessor System Design and Interfacing ECE 362
PURDUE UNIVERSITY Programing the Microprocessor in C Microprocessor System Design and Interfacing ECE 362 Course Staff 1/31/2012 1 Introduction This tutorial is made to help the student use C language
Lab Experiment 1: The LPC 2148 Education Board
Lab Experiment 1: The LPC 2148 Education Board 1 Introduction The aim of this course ECE 425L is to help you understand and utilize the functionalities of ARM7TDMI LPC2148 microcontroller. To do that,
8-bit Microcontroller. Application Note. AVR134: Real-Time Clock (RTC) using the Asynchronous Timer. Features. Theory of Operation.
AVR134: Real-Time Clock (RTC) using the Asynchronous Timer Features Real-Time Clock with Very Low Power Consumption (4µA @ 3.3V) Very Low Cost Solution Adjustable Prescaler to Adjust Precision Counts Time,
Hello, and welcome to this presentation of the STM32L4 reset and clock controller.
Hello, and welcome to this presentation of the STM32L4 reset and clock controller. 1 The STM32L4 reset and clock controller manages system and peripheral clocks. STM32L4 devices embed three internal oscillators,
SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual
SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual Version 1.0 - January 20, 2015 CHANGE HISTORY Version Date Description of Changes 1.0 January 20, 2015 Initial Publication
How to read this guide
How to read this guide The following shows the symbols used in this Quick start guide with descriptions and examples. Symbol Description Example P oint Reference Caution [ ] This symbol explains information
MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual
MCB3101 (Class I) WiRobot Serial Bluetooth Wireless Module User Manual Version: 1.0.1 Dec. 2005 Table of Contents I. Introduction 2 II. Operations 2 II.1. Theory of Operation 2 II.2. Configuration (PC-PC
Microtronics technologies Mobile: 99707 90092
For more Project details visit: http://www.projectsof8051.com/rfid-based-attendance-management-system/ Code Project Title 1500 RFid Based Attendance System Synopsis for RFid Based Attendance System 1.
Embedded Systems Design Course Applying the mbed microcontroller
Embedded Systems Design Course Applying the mbed microcontroller Serial communications with SPI These course notes are written by R.Toulson (Anglia Ruskin University) and T.Wilmshurst (University of Derby).
Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester
Leonardo Journal of Sciences ISSN 1583-0233 Issue 20, January-June 2012 p. 31-36 Microcontroller Based Low Cost Portable PC Mouse and Keyboard Tester Ganesh Sunil NHIVEKAR *, and Ravidra Ramchandra MUDHOLKAR
MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence : 0660-3
MODULE BOUSSOLE ÉLECTRONIQUE CMPS03 Référence : 0660-3 CMPS03 Magnetic Compass. Voltage : 5v only required Current : 20mA Typ. Resolution : 0.1 Degree Accuracy : 3-4 degrees approx. after calibration Output
AN10850. LPC1700 timer triggered memory to GPIO data transfer. Document information. LPC1700, GPIO, DMA, Timer0, Sleep Mode
LPC1700 timer triggered memory to GPIO data transfer Rev. 01 16 July 2009 Application note Document information Info Keywords Abstract Content LPC1700, GPIO, DMA, Timer0, Sleep Mode This application note
This document describes the guidelines for Hi-Speed USB 2.0 board design. 1. Introduction... 2. 2. USB Transmission Line... 3
APPLICATION NOTE Summary This document describes the guidelines for Hi-Speed USB 2.0 board design. Operation Check Devices The application explained in this document applies to the following. R01AN3012EJ0100
C Programming. for Embedded Microcontrollers. Warwick A. Smith. Postbus 11. Elektor International Media BV. 6114ZG Susteren The Netherlands
C Programming for Embedded Microcontrollers Warwick A. Smith Elektor International Media BV Postbus 11 6114ZG Susteren The Netherlands 3 the Table of Contents Introduction 11 Target Audience 11 What is
AN1754 APPLICATION NOTE
AN1754 APPLICATION NOTE DATA LOGGING PROGRAM FOR TESTING ST7 APPLICATIONS VIA ICC by Microcontroller Division Application Team INTRODUCTION Data logging is the process of recording data. It is required
USB Peripheral Communications Device Class Driver for USB Mini Firmware Using Firmware Integration Technology
APPLICATION NOTE USB Peripheral Communications Device Class Driver for USB Mini Firmware Using Firmware Integration Technology Introduction This application note describes USB Peripheral Communication
SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.
SKP16C62P Tutorial 1 Software Development Process using HEW Renesas Technology America Inc. 1 Overview The following tutorial is a brief introduction on how to develop and debug programs using HEW (Highperformance
AN3998 Application note
Application note PDM audio software decoding on STM32 microcontrollers 1 Introduction This application note presents the algorithms and architecture of an optimized software implementation for PDM signal
AN3265 Application note
Application note Handling hardware and software failures with the STM8S-DISCOVERY Application overview This application is based on the STM8S-DISCOVERY. It demonstrates how to use the STM8S window watchdog
How To Port A Program To Dynamic C (C) (C-Based) (Program) (For A Non Portable Program) (Un Portable) (Permanent) (Non Portable) C-Based (Programs) (Powerpoint)
TN203 Porting a Program to Dynamic C Introduction Dynamic C has a number of improvements and differences compared to many other C compiler systems. This application note gives instructions and suggestions
ET-BASE AVR ATmega64/128
ET-BASE AVR ATmega64/128 ET-BASE AVR ATmega64/128 which is a Board Microcontroller AVR family from ATMEL uses MCU No.ATmega64 and ATmega128 64PIN. Board ET-BASE AVR ATmega64/128 uses MCU s resources on
Application Note 120 Communicating Through the 1-Wire Master
www.dalsemi.com Application Note 120 Communicating Through the 1-Wire Master INTRODUCTION The DS1WM 1-Wire Master was created to facilitate host CPU communication with devices over a 1-Wire bus without
NortechCommander Software Operating Manual MAN-00004 R6
NortechCommander Software Operating Manual MAN-00004 R6 If the equipment described herein bears the symbol, the said equipment complies with the applicable European Union Directive and Standards mentioned
RZ/T1 Group. User's Manual. Renesas Starter Kit+ User s Manual For e 2 studio. RENESAS MCU Family / RZ/T1 Series. Rev. 1.
User's Manual 32 RZ/T1 Group Renesas Starter Kit+ User s Manual For e 2 studio RENESAS MCU Family / RZ/T1 Series All information contained in these materials, including products and product specifications,
RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards
RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards 2012 Roving Networks. All rights reserved. Version 1.0 9/7/2012 USER MANUAL OVERVIEW The RN-131 and RN-171 WiFly radio modules are complete, standalone
Exceptions in MIPS. know the exception mechanism in MIPS be able to write a simple exception handler for a MIPS machine
7 Objectives After completing this lab you will: know the exception mechanism in MIPS be able to write a simple exception handler for a MIPS machine Introduction Branches and jumps provide ways to change
Keil C51 Cross Compiler
Keil C51 Cross Compiler ANSI C Compiler Generates fast compact code for the 8051 and it s derivatives Advantages of C over Assembler Do not need to know the microcontroller instruction set Register allocation
An Introduction to MPLAB Integrated Development Environment
An Introduction to MPLAB Integrated Development Environment 2004 Microchip Technology Incorporated An introduction to MPLAB Integrated Development Environment Slide 1 This seminar is an introduction to
Tutorial for MPLAB Starter Kit for PIC18F
Tutorial for MPLAB Starter Kit for PIC18F 2006 Microchip Technology Incorporated. All Rights Reserved. WebSeminar Title Slide 1 Welcome to the tutorial for the MPLAB Starter Kit for PIC18F. My name is
Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A
Application Note Implementing SPI Master and Slave Functionality Using the Z8 Encore! F083A AN026701-0308 Abstract This application note demonstrates a method of implementing the Serial Peripheral Interface
Quick Installation. A Series of Intelligent Bar Code Reader with NeuroFuzzy Decoding. Quick Installation
Quick Installation A Series of Intelligent Bar Code Reader with NeuroFuzzy Decoding This chapter intends to get your new FuzzyScan scanner working with your existing system within minutes. General instructions
Debouncing Switches. Mechanical switches are one of the most common interfaces to a uc.
Mechanical switches are one of the most common interfaces to a uc. Switch inputs are asynchronous to the uc and are not electrically clean. Asynchronous inputs can be handled with a synchronizer (2 FF's).
TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT
TURBO PROGRAMMER USB, MMC, SIM DEVELOPMENT KIT HARDWARE GUIDE This document is part of Turbo Programmer documentation. For Developer Documentation, Applications and Examples, see http:/// PRELIMINARY (C)
Flash Microcontroller. Memory Organization. Memory Organization
The information presented in this chapter is collected from the Microcontroller Architectural Overview, AT89C51, AT89LV51, AT89C52, AT89LV52, AT89C2051, and AT89C1051 data sheets of this book. The material
Storage Classes CS 110B - Rule Storage Classes Page 18-1 \handouts\storclas
CS 110B - Rule Storage Classes Page 18-1 Attributes are distinctive features of a variable. Data type, int or double for example, is an attribute. Storage class is another attribute. There are four storage
ontroller LSI with Built-in High- Performance Graphic Functions for Automotive Applications
C ontroller LSI with Built-in High- Performance Graphic Functions for Automotive Applications 1-chip solution for color display, video input and meter control with built-in highperformance CPU core FR81S
Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2. Instruction Manual
Firmware version: 1.10 Issue: 7 AUTODIALER GD30.2 Instruction Manual Firmware version: 2.0.1 Issue: 0.6 Version of the GPRS transmitters configurator: 1.3.6.3 Date of issue: 07.03.2012 TABLE OF CONTENTS
TMS320C67x FastRTS Library Programmer s Reference
TMS320C67x FastRTS Library Programmer s Reference SPRU100A October 2002 Printed on Recycled Paper IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections,
AN974 APPLICATION NOTE
AN974 APPLICATION NOTE Real time clock with ST7 Timer Output Compare By MCD Application Team 1 INTRODUCTION The purpose of this note is to present how to use the ST7 Timer output compare function. As an
Name: Class: Date: 9. The compiler ignores all comments they are there strictly for the convenience of anyone reading the program.
Name: Class: Date: Exam #1 - Prep True/False Indicate whether the statement is true or false. 1. Programming is the process of writing a computer program in a language that the computer can respond to
AN3252 Application note
Application note Building a wave generator using STM8L-DISCOVERY Application overview This application note provides a short description of how to use the STM8L-DISCOVERY as a basic wave generator for
Software Manual RS232 Laser Merge Module. Document # SU-256521-09 Rev A
Laser Merge Module Document # SU-256521-09 Rev A The information presented in this document is proprietary to Spectral Applied Research Inc. and cannot be used for any purpose other than that for which
Technical Note. Micron NAND Flash Controller via Xilinx Spartan -3 FPGA. Overview. TN-29-06: NAND Flash Controller on Spartan-3 Overview
Technical Note TN-29-06: NAND Flash Controller on Spartan-3 Overview Micron NAND Flash Controller via Xilinx Spartan -3 FPGA Overview As mobile product capabilities continue to expand, so does the demand
Digitale Signalverarbeitung mit FPGA (DSF) Soft Core Prozessor NIOS II Stand Mai 2007. Jens Onno Krah
(DSF) Soft Core Prozessor NIOS II Stand Mai 2007 Jens Onno Krah Cologne University of Applied Sciences www.fh-koeln.de [email protected] NIOS II 1 1 What is Nios II? Altera s Second Generation
OPERATION MANUAL. MV-410RGB Layout Editor. Version 2.1- higher
OPERATION MANUAL MV-410RGB Layout Editor Version 2.1- higher Table of Contents 1. Setup... 1 1-1. Overview... 1 1-2. System Requirements... 1 1-3. Operation Flow... 1 1-4. Installing MV-410RGB Layout
Chapter 5 Real time clock by John Leung
Chapter 5 Real time clock 5.1 Philips PCF8563 Real time clock (RTC) Philips PCF8563 (U5) is an I 2 C compatible real time clock (RTC). Alternatively, this chip can be replaced by a software module like
8051 Serial Port. Crystal TXD. I/O Device RXD. Embedded Systems 1 5-1 8051 Peripherals
8051 Serial Port The 8051 contains a UART Universal Asynchronous Receiver Transmitter The serial port is full-duplex It can transmit and receive simultaneously 2 Port 3 pins are used to provide the serial
Features Reference. About Unified Communication System. Before Using This Machine. Starting a Meeting. What You Can Do During the Meeting
Features Reference About Unified Communication System Before Using This Machine Starting a Meeting What You Can Do During the Meeting Leaving a Meeting Managing Address Book Changing Network Configuration
GTS-4E Hardware User Manual. Version: V1.1.0 Date: 2013-12-04
GTS-4E Hardware User Manual Version: V1.1.0 Date: 2013-12-04 Confidential Material This document contains information highly confidential to Fibocom Wireless Inc. (Fibocom). Fibocom offers this information
Serial Communications
April 2014 7 Serial Communications Objectives - To be familiar with the USART (RS-232) protocol. - To be able to transfer data from PIC-PC, PC-PIC and PIC-PIC. - To test serial communications with virtual
PROPERTY MANAGEMENT SYSTEM
PROPERTY MANAGEMENT SYSTEM COMMUNICATION INTERFACE SPECIFICATION NEC America, Inc. NDA-305-00 Revision.0 June, 998 Stock # 24727 LIABILITY DISCLAIMER NEC America reserves the right to change the specifications,
2 ASCII TABLE (DOS) 3 ASCII TABLE (Window)
1 ASCII TABLE 2 ASCII TABLE (DOS) 3 ASCII TABLE (Window) 4 Keyboard Codes The Diagram below shows the codes that are returned when a key is pressed. For example, pressing a would return 0x61. If it is
APPLICATION. si32library. Callback CMSIS HARDWARE. Figure 1. Firmware Layer Block Diagram
PRECISION32 SOFTWARE DEVELOPMENT KIT CODE EXAMPLES OVERVIEW 1. Introduction The Precision32 code examples are part of the Software Development Kit (SDK) installed with the Precision32 software package
MARTECH SPI Tools. MARTECH SPI Tools User Manual v1.0. User Manual
MARTECH SPI Tools v1.0 Contents 1. Basic informations about the product...3 1.1 Memory types supported by SPI Tool...3 2. Main features and application possibilities...4 2.1 Technical Support activation...4
Single channel data transceiver module WIZ2-434
Single channel data transceiver module WIZ2-434 Available models: WIZ2-434-RS: data input by RS232 (±12V) logic, 9-15V supply WIZ2-434-RSB: same as above, but in a plastic shell. The WIZ2-434-x modules
DS1621 Digital Thermometer and Thermostat
Digital Thermometer and Thermostat www.dalsemi.com FEATURES Temperature measurements require no external components Measures temperatures from 55 C to +125 C in 0.5 C increments. Fahrenheit equivalent
Lesson 10: Video-Out Interface
Lesson 10: Video-Out Interface 1. Introduction The Altera University Program provides a number of hardware controllers, called cores, to control the Video Graphics Array (VGA) Digital-to-Analog Converter
WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide
WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide Version 2.1, 4/2010 Disclaimer While every effort has been made to ensure that the information in this guide is accurate
Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C
Embedded Programming in C/C++: Lesson-1: Programming Elements and Programming in C 1 An essential part of any embedded system design Programming 2 Programming in Assembly or HLL Processor and memory-sensitive
8051 hardware summary
8051 hardware summary 8051 block diagram 8051 pinouts + 5V ports port 0 port 1 port 2 port 3 : dual-purpose (general-purpose, external memory address and data) : dedicated (interfacing to external devices)
User Manual Software for DSL Digital Speed Switch
User Manual Software for DSL Digital Speed Switch Software version from 1.0.1 Baumer Hübner GmbH Max-Dohrn-Str. 2+4 D-10589 Berlin Phone +49 (0)30 690 03-0 Fax +49 (0)30 690 03-104 [email protected]
Embedded Component Based Programming with DAVE 3
Embedded Component Based Programming with DAVE 3 By Mike Copeland, Infineon Technologies Introduction Infineon recently introduced the XMC4000 family of ARM Cortex -M4F processor-based MCUs for industrial
Remote control circuitry via mobile phones and SMS
Remote control circuitry via mobile phones and SMS Gunther Zielosko 1. Introduction In application note No. 56 ( BASIC-Tiger sends text messages, in which we described a BASIC-Tiger sending text messages
Von der Hardware zur Software in FPGAs mit Embedded Prozessoren. Alexander Hahn Senior Field Application Engineer Lattice Semiconductor
Von der Hardware zur Software in FPGAs mit Embedded Prozessoren Alexander Hahn Senior Field Application Engineer Lattice Semiconductor AGENDA Overview Mico32 Embedded Processor Development Tool Chain HW/SW
Wireless Communication With Arduino
Wireless Communication With Arduino Using the RN-XV to communicate over WiFi Seth Hardy [email protected] Last Updated: Nov 2012 Overview Radio: Roving Networks RN-XV XBee replacement : fits in the
A RF18 Remote control receiver MODULE
A RF18 Remote control receiver MODULE User Guide No part of this document may be reproduced or transmitted (in electronic or paper version, photocopy) without Adeunis RF consent. This document is subject
Designing VM2 Application Boards
Designing VM2 Application Boards This document lists some things to consider when designing a custom application board for the VM2 embedded controller. It is intended to complement the VM2 Datasheet. A
Understanding PIC WEB boards and how to use Microchip's TCP-IP Stack. Rev.A, April 2008. Copyright(c) 2008, OLIMEX Ltd, All rights reserved
Understanding PIC WEB boards and how to use Microchip's TCP-IP Stack Rev.A, April 2008 Copyright(c) 2008, OLIMEX Ltd, All rights reserved INTRODUCTION: The PIC-WEB family of boards are development boards
LEN s.r.l. Via S. Andrea di Rovereto 33 c.s. 16043 CHIAVARI (GE) Tel. +39 0185 318444 - Fax +39 0185 472835 mailto: [email protected] url: http//www.len.
MA511 General Index 1 INTRODUCTION... 3 1.1 HARDWARE FEATURES:... 4 2 INTERFACE... 5 2.1 KEYBOARD... 6 2.2 POWER ON... 7 2.3 POWER OFF... 7 2.4 DETECTOR CONNECTION... 7 2.5 DETECTOR SUBSTITUTION...7 3
(Cat. No. 6008-SI) Product Data
(Cat. No. 6008-SI) Product Data 1 Because of the variety of uses for this product and because of the differences between solid state products and electromechanical products, those responsible for applying
Building a Simulink model for real-time analysis V1.15.00. Copyright g.tec medical engineering GmbH
g.tec medical engineering GmbH Sierningstrasse 14, A-4521 Schiedlberg Austria - Europe Tel.: (43)-7251-22240-0 Fax: (43)-7251-22240-39 [email protected], http://www.gtec.at Building a Simulink model for real-time
SIMATIC NET. CP 243-2 AS-Interface Master B C. Preface Contents. Technical Description and Installation Instructions Interface to the User Program
Preface Contents SIMATIC NET CP 243-2 AS-Interface Master Manual Technical Description and Installation Instructions Interface to the User Program 2 in the S7-200 CPU Access to the Data of the AS-i Slaves
Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication
Using the HT46R46 I/O Ports to Implement Half-Duplex SPI Communication D/N: HA0150E Introduction This application explains how to use two I/O lines on the HT46R46 to implement half-duplex SPI communication.
ENGI E1112 Departmental Project Report: Computer Science/Computer Engineering
ENGI E1112 Departmental Project Report: Computer Science/Computer Engineering Daniel Estrada Taylor, Dev Harrington, Sekou Harris December 2012 Abstract This document is the final report for ENGI E1112,
RS-232 Baud Rate Converter CE Model 232BRC Documentation Number 232BRC-3903 (pn5104-r003)
S-232 Baud ate Converter CE Model 232BC Documentation Number 232BC-3903 (pn5104-r003) International Headquarters B&B Electronics Mfg. Co. Inc. 707 Dayton oad -- P.O. Box 1040 -- Ottawa, IL 61350 USA Phone
Developing an Application on Core8051s IP-Based Embedded Processor System Using Firmware Catalog Drivers. User s Guide
Developing an Application on Core8051s IP-Based Embedded Processor System Using Firmware Catalog Drivers User s Guide Developing an Application on Core8051s IP-Based Embedded Processor System Using Firmware
Section 14. Compare/Capture/PWM (CCP)
M Section 14. Compare/Capture/PWM (CCP) HIGHLIGHTS This section of the manual contains the following major topics: 14.1 Introduction...14-2 14.2 Control Register...14-3 14.3 Capture Mode...14-4 14.4 Compare
DS1104 R&D Controller Board
DS1104 R&D Controller Board Cost-effective system for controller development Highlights Single-board system with real-time hardware and comprehensive I/O Cost-effective PCI hardware for use in PCs Application
Application Note. Introduction AN2471/D 3/2003. PC Master Software Communication Protocol Specification
Application Note 3/2003 PC Master Software Communication Protocol Specification By Pavel Kania and Michal Hanak S 3 L Applications Engineerings MCSL Roznov pod Radhostem Introduction The purpose of this
Fondamenti su strumenti di sviluppo per microcontrollori PIC
Fondamenti su strumenti di sviluppo per microcontrollori PIC MPSIM ICE 2000 ICD 2 REAL ICE PICSTART Ad uso interno del corso Elettronica e Telecomunicazioni 1 2 MPLAB SIM /1 MPLAB SIM is a discrete-event
Hardware and Software Requirements
C Compiler Real-Time OS Simulator Training Evaluation Boards Installing and Using the Keil Monitor-51 Application Note 152 May 31, 2000, Munich, Germany by Keil Support, Keil Elektronik GmbH [email protected]
LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER
LAB #3 VHDL RECOGNITION AND GAL IC PROGRAMMING USING ALL-11 UNIVERSAL PROGRAMMER OBJECTIVES 1. Learn the basic elements of VHDL that are implemented in Warp. 2. Build a simple application using VHDL and
Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of
Hello and welcome to this training module for the STM32L4 Liquid Crystal Display (LCD) controller. This controller can be used in a wide range of applications such as home appliances, medical, automotive,
CENTRONICS interface and Parallel Printer Port LPT
Course on BASCOM 8051 - (37) Theoretic/Practical course on BASCOM 8051 Programming. Author: DAMINO Salvatore. CENTRONICS interface and Parallel Printer Port LPT The Parallel Port, well known as LPT from
OPERATING INSTRUCTIONS Model ST-888 DTMF ANI/ENI Display Decoder
P R O D U C T G R O U P OPERATING INSTRUCTIONS Model ST-888 DTMF ANI/ENI Display Decoder Manual # 600-0901 November 30, 1999 Rev. D - 99068 DESCRIPTION The ST-888 Mobilecall Display Decoder is a desktop
