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

SM8578BV 데이터 시트보기 (PDF) - Nippon Precision Circuits

부품명
상세내역
제조사
SM8578BV
NPC
Nippon Precision Circuits  NPC
SM8578BV Datasheet PDF : 16 Pages
First Prev 11 12 13 14 15 16
SM8578BV
Alarm Interrupt
Alarms can be set for day, day-of-week, hour, and minute. Also, multiple day-of-week alarms can be set.
It is recommended that the AF bit and AIE bit be initialized to “0” to avoid unexpected hardware interrupts dur-
ing the alarm setting procedure. Subsequent alarm data can be set and then the AF flag can be reset to zero for
reliable initialization. Then the AIE bit should be set to “1”. If hardware interrupts are never used, the AIE
should be set to “0” and the AF bit should be monitored using software as necessary.
Example 1) Alarm output for 6pm tomorrow:
• Write “0” to AIE bit, and “0” to AF bit.
• Write “1” to day alarm AE bit.
• Write register 3’s current day-of-week data left-shifted by 1 bit into the day-of-week alarm register.
If bit 6 in register 3 is “1”, left shift into the fr bit is not allowed. Instead, write “01h” (Sunday).
• Write “18h” to the hour alarm register.
• Write “00h” to the minute alarm register.
• Reset the AF bit to zero.
• Write “1” to the AIE bit.
Example 2) Alarm output for 6am every day excluding Saturday and Sunday:
• Write “0” to AIE bit, and “0” to AF bit.
• Write “1” to day alarm AE bit.
• Write “3Eh” to the day-of-week alarm register.
• Write “06h” to the hour alarm register.
• Write “00h” to the minute alarm register.
• Reset the AF bit to zero.
• Write “1” to the AIE bit.
Interrupt Output (INTN)
I The INTN output mode can be selected, by internal mode setting, for timer interrupt output, alarm interrupt
output, or arbitrary frequency output.
I The output mode setting is set by the TIE, AIE, and FE bits as shown in the following table.
Note that multiple “1” bits are invalid.
Mode
Bit
TIE
AIE
FE
Timer interrupt output
1
0
0
Alarm interrupt output
0
1
0
Arbitrary frequency output
0
0
1
Output disabled
0
0
0
NIPPON PRECISION CIRCUITS INC.—14

Share Link: 

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