- //乘除法器
- MDU_MultiplicationConfig(0x55AA, 0xAA55); //乘法计算
- MDU_StartOperation();
- product = MDU_GetProduct();
- if(product == 0x38ff5572) //判断积
- {
-
- }
-
- MDU_DivisionConfig(0xFFAA5500,0xAA55); //除法计算
- MDU_StartOperation();
- quotient = MDU_GetQuotient();
- remainder = MDU_GetRemainder();
- if(quotient == 0x18040 && remainder == 0x3FC0) //判断商和余数
- {
-
- }
|