Udivlonglong() (32Bit : 32Bit); Description; Actions; Prototype - Infineon SP37 Function Manual

High integrated single-chip tpms sensor with a low power embedded microcontroller and wireless fsk/ask uhf transmitter
Table of Contents

Advertisement

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

Table 97
UDivLongLong: Input Parameters
Register / Address
R7
R5
2.22.5

Outputs

Table 98
UDivLongLong: Output values
Register/ Address
R4(MSB),
R5,
R6,
R7(LSB)
Note: The output value for the remainder can be found in R0 (MSB), R1, R2, R3 (LSB).
2.22.6

Resource Usage

Table 99
UDivLongLong: Resources
Type
Registers
SFR
Stack
1) Two additional bytes, not included here, are needed to call the library function
ROM Library Function Guide
Type
Name
unsigned long
Dividend
idata*
unsigned long
Divisor
idata*
Type
Name
unsigned long
Quotient
Used or Modified
R0, R1, R2, R3, R4, R5, R6, R7
ACC, B, DPH, DPL, PSW
1)
0 Bytes
Tire Pressure Monitoring Sensor
Description
Pointer to 32 bit Dividend
Pointer to 32 bit Divisor
Description
32 bit Quotient of the division (Dividend / Divisor)
89
SP37
ROM Library Functions
Revision 1.0, 2011-12-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents