EasyManua.ls Logo

Infineon SP37 - Udivintint() (16 Bit: 16 Bit); Description; Actions; Prototype

Infineon SP37
135 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
SP37
Tire Pressure Monitoring Sensor
ROM Library Functions
ROM Library Function Guide 91 Revision 1.0, 2011-12-15
2.23 UDivIntInt() (16Bit : 16Bit)
2.23.1 Description
This function divides the unsigned int value (16 bit) Dividend by the unsigned int value (16 bit) Divisor.
2.23.2 Actions
• Perform division
2.23.3 Prototype
unsigned int UDivIntInt(unsigned int Dividend, unsigned int Divisor)
2.23.4 Inputs
2.23.5 Outputs
Note: The output value for the remainder can be found in R4 (MSB) and R5 (LSB).
2.23.6 Resource Usage
Table 101 UDivIntInt: Input Parameters
Register / Address Type Name Description
R6(MSB)
R7(LSB)
unsigned int Dividend 16 bit Dividend
R4(MSB)
R5(LSB)
unsigned int Divisor 16 bit Divisor
Table 102 UDivIntInt: Output values
Register/ Address Type Name Description
R6(MSB),
R7(LSB)
unsigned int Quotient 16 bit Quotient of the division (Dividend / Divisor)
Table 103 UDivIntInt: Resources
Type Used or Modified
Registers R0, R4, R5, R6, R7
SFR ACC, B, PSW
Stack 0 Bytes
1)
1) Two additional bytes, not included here, are needed to call the library function

Table of Contents