2 – quick trip register descriptions, Ds4830a user’s guide – Maxim Integrated DS4830A Optical Microcontroller User Manual

Page 77

Advertising
background image

DS4830A User’s Guide

77

9.2 – Quick Trip Register Descriptions

The quick trip has 7 SFRs. These are the Quick Trip Control Register (QTCN), Quick Trip List Register (QTLST),
Quick Trip Data Register (QTDATA), Low Trip Interrupt Lower Flag Register (LTIL), High Trip Interrupt Lower Flag
Register (HTIL), Low Trip Interrupt High Register (LTIH) and High Trip Interrupt High Register (HTIH). The QTCN
register controls the quick trip operation. The QTLIST register defines the list for the quick trip controller. The
QTDATA register is used to read and write list and threshold (high and low threshold) registers. The LTIL and HTIL
are interrupt flag registers for high and low threshold. The LTIH and HTIH are the interrupt enable registers. The
Quick Trip SFRs are located in module 5.

9.2.1 – Quick Trip Control Register (QTCN)

Bit

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

Name

-

-

-

QTEN

-

-

-

-

RW_LST

-

-

LTHT

QTIDX[3:0]

Reset

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

0

Access

r

r

r

rw

r

r

r

r

rw

r

r

rw

rw

rw

rw

rw

BIT

NAME

DESCRIPTION

15:13

-

Reserved. The user should write these bits to ‘0’.

12

QTEN

Quick Trip Enable. When this bit is set to ‘1’, it enables the quick trip operation. After
setting the QTEN bit to ‘1’, there is an initial delay for 120 core clock to wake up the
quick trip circuitry. When this bit is set to ‘0’, it disables the quick trip operation.

11:8

-

Reserved. The user should write these bits to ‘0’.

7

RW_LST

Read List Register: When this bit is set to ‘1’, it selects one of the sixteen list register
(addressed by QTIDX[3:0], see below) in the list configuration. When this bit is set to ‘0’,
the low or high threshold register (depends upon the LTHT bit) are configured.

6:5

-

Reserved. The user should write these bits to ‘0’.

4

LTHT

Low or High Threshold Select: This bit is used only when RW_LST is set to ‘0’. This
bit is used to select low or high threshold read or write. When the LTHT bit is set to ‘0’, it
points to the low threshold configuration register list. When this bit is set to ‘1’, it points to
the high threshold configuration register list. The address of low or high threshold
configuration is addressed by QTIDX[3:0] bits.

3:0

QTIDX[3:0]

Quick Trip Index Select. These bits together with LTHT and RW_LST bits select the
source or destination address for the QTDATA register access.

When the RW_LST and LTHT bits are set to ‘0’, the QTIDX[3:0] bits address to one of
the sixteen low threshold register for read or write. When RW_LST = 0 and LTHT = 1,
the QTIDX[3:0] bits address one of the sixteen high threshold register for read or write.

When RW_LST = 1 (irrespective of LTHT bit), the QTDATA register selects the list
register addressed by QTIDX[3:0] bits for read and write operation. A read or write
operation on the QTDATA register reads or writes to the list register addressed by
QTIDX[3:0].

These bits are auto incremented on any read or write operation to the QTDATA register.


9.2.2 Quick Trip Data Register (QTDATA)

The Quick Trip Data register is used with LTHT, RW_LST and QTIDX[3:0] bits to configure thresholds and list
configurations. The QTDATA register selects the list register and threshold registers addressed by QTIDX[3:0] bits
for read and write operation.

Threshold registers are selected when the bit RW_LST is set to ‘0’. List registers are selected when the bit RW_LST
is set to ‘1’. See the following tables for RW_LST = 0 and RW_LST = 1.






Advertising