| 数据搜索系统,热门电子元器件搜索 |
|
AN910 数据表(PDF) 44 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN910 数据表(HTML) 44 Page - STMicroelectronics |
|
44 / 51 page ![]() 44/51 ST7 AND ST9 PERFORMANCE BENCHMARKING 8.4 CHARACTER SEARCH 8.5 BUBBLE SORT 8.6 BLOCK MOVE 8.7 BLOCK TRANSLATION 8.8 16-BIT INTEGER MULTIPLICATION Algorithm The Character search consists in searching a byte in a 40-byte block. Implementation The data are also predefined. The algorithm searches the byte “o” in the 40-byte block “-------------------------------o--------”, where the character 'o' is the 32nd character of the block. Features stressed As the string search, this program measures the efficiency in data comparison. Algorithm The Bubble sort benchmark manages the sorting of a one dimension array of 16-bit integers. Implementation The test is performed with 10 words and then with 600 words. The array is initialized with 10 or 600 words (16-bit integers) in reverse order. The algorithm is a classic bubble sort which arranges the 10 words (or the 600 words) in the ascending order of magnitude. Note that the routine used is intentionally almost the same for the two values (as though it could have been optimized for the first value). Few differences may exist, but they do not modify the way the test is done. Features stressed This benchmark demonstrates the efficiency in data comparison and data manipulation but especially in 16-bit value comparison and 16-bit value manipulation. Algorithm The Block move test routine aims at transferring a block from a place to another place in memory. Implementation This program is tested with a 64-byte block and with a 512-byte block. Note that the routine used is intentionally almost the same for the two values (as though it could have been optimized for the first value). Few differences may exist, but they do not modify the way test is done. Features stressed It shows the data blocks manipulation ability. Algorithm The Convert test routine aims at transferring a block from a place to another place in memory. Implementation It uses a table to convert the source block into the destination block. The table contains the translation of the source block elements. This benchmark is useful to convert for example from an ASCII code to an EBCDIC code... Features stressed As the block move test program, it shows the data blocks manipulation ability, but also the ability to use a lookup table. Algorithm The 16-bit integer multiplication program performs a multiplication of two unsigned words (16-bit integers), giving a 32-bit result. Implementation The two operands chosen here are 256, so that the multiplication performed is: 256 x 256 = 65536 (=10000h hexadecimal value) Features stressed This test measures the computational capability of the microcontroller with 16-bit integers. |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |