| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
TMP86FS23UG bảng dữ liệu(PDF) 195 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP86FS23UG bảng dữ liệu(HTML) 195 Page - Toshiba Semiconductor |
|
195 / 252 page ![]() Page 183 TMP86FS23UG 17.6.1 Operation Status Flag (CALC) CALC indicates the status of the MAC unit. It is set to "1" when calculation is in progress and "0" when cal- culation is not in progress. 17.6.2 Overflow Flag (OVRF) OVRF is set to “1” if the sum of positive values is negative or the sum of negative values is positive in signed multiply-accumulate mode. In other cases, it is cleared to “0”. Note:In multiply mode, OVRF is always read as "0". 17.6.3 Carry Flag (CARF) CARF is set to “1” if a carry occurs in the highest-order bit (bit 31) in a multiply-accumulate operation. In other cases, it is cleared to "0". Note: In multiply mode, CARF is always read as "0". 17.6.4 Sign Flag (SIGN) SIGN contains the same data as the highest-order bit (bit 31) of the calculation result (regardless of whether calculation is performed in signed or unsigned mode). Note:SIGN is programmed by the calculation result. This flag is not affected by a write to the addend register. 17.6.5 Zero Flag (ZERF) ZERF is set to “1” if the result register contains “00000000H”. In other cases, it is cleared to “0”. It is also set to “1” if the result register contains “00000000H” after an overflow or carry has occurred. Note:ZERF is programmed by the calculation result. This flag is not affected by a write to the addend register. 17.7 Example of Software Processing The following shows an example of calculating X = αx + βy + γz. The calculation time is 3µs when fc = 8 MHz. The multiplier and multiplicand are separately stored in data RAM. The W and A registers are used as general-pur- pose registers. The general-purpose registers are not saved on the stack. The processing for enabling/disabling the MAC unit is not included. Note 1: If the operation mode is changed by processing an interrupt during calculation, the correct calculation result may not be obtained. Thus, before starting calculation, be sure to execute the DI instruction to disable interrupts. Note 2: Before reading the result register after calculation is started, check that the CALC flag in the MACSR register is "0" or wait for at least three machine cycles (e.g. NOP x 3). Instruction Processing Time DI (Disables interrupts.) LD WA, (RAM_Multiplier α) 6 cycles/3 µs LD (MPLDRL), WA ; Multiplier register 6 cycles/3 µs LD WA, (RAM_Multiplier x) 6 cycles/3 µs LD (MPCDRL), WA ; Multiplicand register 6 cycles/3 µs ; The next data can be written in succession. |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |