14 led indicator (led1 & led2), 1 power led (led1), 2 status led (led2) – Acrosser AR-B1320 User Manual

Page 32: 1) active square wave output (act_sqw), 2) inactive square wave output, 3) set flash rate, Led indicator (led1 & led2) -12, Power led (led1) -12, Status led (led2) -12

Advertising
background image

A

A

R

R

-

-

B

B

1

1

3

3

2

2

0

0

U

U

s

s

e

e

r

r

s

s

G

G

u

u

i

i

d

d

e

e

3.14

LED INDICATOR (LED1 & LED2)

AR-B1320 provides 2 on-board LEDs; one is power LED and the other is user-defined status LED.
Both LEDs are located at the right-hand corner of the board next to the CN2 floppy connector.

3.14.1

POWER LED (LED1)
This LED indicates if the VCC(+5V) power is supplied or not.

3.14.2

STATUS LED (LED2)
This LED is designed for the user to define. The LED is driven by the square wave output pin of
the RTC chip. You can activate, inactivate, and change the flash rates just by programming the
register of the RTC chip. Use different flash rates to indicate different status or operating modes.
The I/O port address of index register is 70H and data register is 71h.

(1) Active Square Wave Output (Act_Sqw)

Mov al,

0bh

Out 70h,

al

In al,71h
Or al,08h
Xchg ah,al
Mov al,0bh
Out 70h,

al

Xchg ah,al
Out 71h,al

(2) Inactive Square Wave Output

Mov al,0bh
Out 70h,al
In al,71h
And al,0f7h
Xchg ah,al
Mov al,0bh
Out 70h,al
Xchg ah,al
Out 71h,al

(3) Set Flash Rate

Mov

ah,FR_Data

;Flash rate data in ah register

Mov al,0ah

Out 70h,al

In al,71h
And al,0f0h
Or ah,al

Mov al,0ah

Out 70h,al

Xchg ah,al

Out 71h,al

Act_Sqw

;Active square wave output


3-12

Advertising