DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

ST9291J6/N6 View Datasheet(PDF) - STMicroelectronics

Part Name
Description
Manufacturer
ST9291J6/N6 Datasheet PDF : 20 Pages
First Prev 11 12 13 14 15 16 17 18 19 20
ST9291
SYSTEM REGISTERS (Continued)
EXAMPLES
Using the Single 16 Register Group
When the system is operating in the single 16-reg-
ister group mode, the registers are referred to as
r0-r15. In this mode, the offset value (i.e. the num-
ber of the working register referred to) is supplied
in the address (preceded by a small r, e.g. r5) and
is added to the Register Pointer 0 value to give the
absolute address.
For example, if the Register Pointer contains the
value 70h, then working register r7 would have the
absolute address, R77h.
In this mode, the single 16-registers group will al-
ways start from the lowest even number equal or
lower to the number given in the instruction.
Example: srp #3 is equivalent to srp #2.
Figure 1-9. Single 16 Register pointing Mode
255
GROUP F
240
239
GROUP E
REGISTER POINTER 0
224
Using the Twin 8-Register Group
When working in the twin working group mode, the
registers pointed by Register Pointer 0 (RP0R), are
referred as r0-r7 and those pointed by Register
Pointer 1 (RP1R), are referred to as r8-r15, regard-
less of their absolute addresses. In this mode,
when operating with the first 8 working registers
(i.e. r0 - r7) the working register number acts as an
offset which is added to the value in Register
Pointer 0.
So if Register Pointer 0 contains the value 96, then
working register 0 has the absolute address 96,
working register 5 has the absolute address 101,
and so on. The second group of working registers,
r8-r15, has the offset values 0 to 7 respectively (i.e.
r8 has the offset value 0, r9 has the offset value 1,
and so on), this offset value being added to the
value in Register Pointer 1.
For example, given that the value in Register
Pointer 1 is 32, then working register 12 supplies
an offset value of 4 (given by 12 minus 8) to the
value in Register Pointer 1 to give an absolute ad-
dress of 36.
Figure 1-10. Double Register pointing Mode
GROUP F
GROUP E
255
240
239
REGISTER POINTER 1
REGISTER POINTER 0
224
GROUP 4
14/20
r15
WORKING
REGISTER
r0
0
VA00097
®
GROUP 8
r7
WORKING REGISTER
r0
GROUP 3
r15
WORKING REGISTER
r8
0
VA00098

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]