EasyManua.ls Logo

Infineon SP37 - Udivlonglong() (32 Bit: 32 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 89 Revision 1.0, 2011-12-15
2.22 UDivLongLong() (32Bit : 32Bit)
2.22.1 Description
This function divides the unsigned long value (32 bit) Dividend by the unsigned long value (32 bit) Divisor.
2.22.2 Actions
• Perform division
2.22.3 Prototype
unsigned long UDivLongLong(unsigned long idata * Dividend, unsigned long idata * Divisor)
2.22.4 Inputs
2.22.5 Outputs
Note: The output value for the remainder can be found in R0 (MSB), R1, R2, R3 (LSB).
2.22.6 Resource Usage
Table 97 UDivLongLong: Input Parameters
Register / Address Type Name Description
R7 unsigned long
idata*
Dividend Pointer to 32 bit Dividend
R5 unsigned long
idata*
Divisor Pointer to 32 bit Divisor
Table 98 UDivLongLong: Output values
Register/ Address Type Name Description
R4(MSB),
R5,
R6,
R7(LSB)
unsigned long Quotient 32 bit Quotient of the division (Dividend / Divisor)
Table 99 UDivLongLong: Resources
Type Used or Modified
Registers R0, R1, R2, R3, R4, R5, R6, R7
SFR ACC, B, DPH, DPL, PSW
Stack 0 Bytes
1)
1) Two additional bytes, not included here, are needed to call the library function

Table of Contents