Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ Shanghai Belling-Systron Microelectronics Co., Ltd. ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ %/ Сଶޏ೬ֳڟ cંԅۤၮဈֳถ ᴀ㾘㣗㾘ᅮњ BL3501 ⬉䏃ⱘᡔᴃᣛᷛঞ BENCH TEST 乍Ⳃ QC ⌟䆩ᷛޚDŽ cСଶ߅೭ ·ݮٟટۤဈා BL3501 ᰃϔℒ䗮⫼㑶䘹఼⬉䏃ˈᰃ䩜ᇍ䘹఼⬉䏃ⱘ⡍⚍ϧ䮼䆒䅵ⱘᖂࠊ఼ ˄MCU˅ऩܗDŽBL3501 ৃҹ⫼Ѣ㉏ᆊ⬉˄བ⬉㾚ǃVCD ᴎㄝ˅ⱘ㑶䘹఼ˈᅠ៤ᣝ 䬂ⱘᠿᦣ㑶㓪ⷕֵোⱘ⫳៤ˈᑊᦤկᯊ䯈ᰒ⼎ǃᅮᯊㄝࡳ㛑DŽ⬅ѢᏖഎϞⱘ䘹఼㓪ⷕ ᮍᓣ᳝ᕜ⾡ˈ䳔㽕㓪ⳌݭᑨⱘᑣDŽˈBL3501 гৃҹ䗖⫼Ѣ LCDǃLED ᰒ⼎ⱘ ⬉ᄤᯊ䩳⬉䏃DŽ ԨাࣟރඋԤ ⡍⚍˖ ᣛҸϢ BL2220 ݐᆍ CPU˖8 ԡ ROM ऩ˖ܗ2K byte RAM ऩ˖ܗ64 byte ᤃ⬉䏃˖455KHz˄Џᤃ˅ǃ32.768Hz˄RTC ᤃ˅ I/O ষ˖2 㒘 8 ԡঠষ 㑶㓪ⷕֵো䕧ߎষ˖ৃ䕃ӊ䗝ᢽ 38KHz 䇗ࠊ ᣝ䬂ᠿᦣⱘ᳔᭄Ⳃ˖64 ݊Ҫೈ⬉䏃˖ᅲᯊᯊ䩳˄RTC˅ǃ8 ԡৃ㓪ᅮᯊ఼ Ꮉ⬉⑤⬉य़˖2.5̚5.0V Ꮉ⏽ᑺ˖-20̚80к 䴭ᗕࡳ㗫˖< 10uA @ VDD = 3V ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. ࡼᗕࡳ㗫˖< 1mA @ VDD = 3V ࡴᎹᎹ㡎˖Belling 1.2um ᷛ ޚCMOS ᇕ㺙ᔶᓣ˖SOP-24 Ḛ˖ USER MASK ROM - 2K BYTES EOSC1 OSC-II EOSC2 Real Time Clock SRAM - 64 BYTES 7 0 KEYBOARD INTERRUPT D D R P O R T A A D D R P O R T B B ACCUMULATOR 7 0 8 PA0~PA7 INDEX REGISTER 0 12 STACK POINTER 0 15 PROGRAM COUNTER 7 RST 0 RESET BUS-CLOCK 8 PB0~PB7 CONDITION CODE REGISTER OSC1 OSC2 OSC-I 7-BIT PRESCALER 38K modulate OUT 8-BIT COUNTER TIMER CONTROL ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. ߶ڕ 1 24 PA7 OSC2 2 23 PA6 GND 3 22 VDD PB0 4 21 PA5 PB1 5 20 PA4 PB2 6 19 PA3 PB3 7 18 PA2 PB4 8 17 PA1 PB5 9 16 PA0 PB6 10 15 EOSC2 PB7 11 14 EOSC1 OUT 12 13 RSTB SOP-24 OSC1 ߶ڕٟટഊੜ No. Name I/O Description 1 OSC1 input 2 OSC2 output 3 GND source source ground 4 PB0 i/o io port B 0 5 PB1 i/o io port B 1 6 PB2 i/o io port B 2 7 PB3 i/o io port B 3 8 PB4 i/o io port B 4 9 PB5 i/o io port B 5 10 PB6 i/o io port B 6 11 PB7 i/o io port B 7 12 OUT output 13 RSTB input reset 14 EOSC1 input RTC oscillator input 15 EOSC2 output 16 PA0 i/o io port A 0 17 PA1 i/o io port A 1 18 PA2 i/o io port A 2 19 PA3 i/o io port A 3 20 PA4 i/o io port A 4 21 PA5 i/o io port A 5 main oscillator input main oscillator output coding signal output RTC oscillator output ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. 22 VDD source source input 23 PA6 i/o io port A 6 24 PA7 i/o io port A 7 2.4.1 VDD ۤ GND VDD GND ߚ߿ᰃᎹ⬉⑤ഄᓩ㛮DŽBL3501 ⱘᎹ⬉⑤㣗ೈЎ 2.2̚5.0VDŽ 2.4.2 OSC1 ۤ OSC2 OSC1 OSC2 ᓩ㛮П䯈䖲ϔϾԧᤃ㤵఼ᦤկ㋏㒳ᎹⱘЏᯊ䩳DŽᤃৃ䗝⫼ 455KHz˄⫼Ѣ䘹఼˅ǃ4M ㄝDŽᤃⱘൟ䖲㾕ϟˈড作⬉䰏Ꮖ㒣خ㢃⠛ݙ䚼њˈ ᬙ᮴䳔ᑊ㘨ড作⬉䰏DŽˈᤃ㤵⬉䏃Ё䗝ᢽ⬉ᆍⱘᆍ䞣ᯊᑨᔧ㗗㰥ߚᏗ⬉ᆍⱘᕅડˈ Ўޣᇣ䕧ߎ༅ⳳˈᤃ⬉ᆍሑ䞣䴴䖥ᓩ㛮DŽ 26& 26& S S 2.4.3 EOSC1 ۤ EOSC2 EOSC1 EOSC2 ᓩ㛮П䯈䖲ϔϾԧᤃ㤵఼ᦤկ㋏㒳Ꮉⱘ RTC ᯊ䩳DŽᤃৃ 䗝⫼ 32.768KHz 32KHzDŽRTC ᤃⱘൟ䖲㾕ϟˈড作⬉䰏ᮕ䏃⬉ᆍ䛑خ㢃⠛ ݙ䚼њˈ᮴䳔DŽ (26& (26& .+] 2.4.4 RSTB ߶ RSTB ᰃ㋏㒳ԡᓩ㛮DŽRSTB ᓩ㛮ⱘ䘏䕥䳊ৃҹᔎࠊ㋏㒳䖯ܹԡ⢊ᗕDŽ བᵰϞ⬉ৢ䳔㽕ࡼԡৃҹབϟ䖭ḋ䖲DŽ . 567% X ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ Shanghai Belling-Systron Microelectronics Co., Ltd. ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ ⬅Ѣ BL3501 ݙ䚼Ꮖ᳝Ϟ⬉ԡ⬉䏃Ϟᢝ⬉䰏ˈᇍ⬠ᑆᡄϡᔎϨϡ䳔㽕ࡼԡ ⱘᚙމϟˈRSTB ぎгᰃܕ䆌ⱘDŽ 2.4.5 PA7:PA0 PA7:PA0 ᰃঠッষ A ⱘᓩ㛮DŽབᵰᓔਃ䬂ⲬЁᮁࡳ㛑ⱘ䆱ˈⳌᑨⱘᓩ㛮ݙ䚼᳝ 12Kohm ⱘϞᢝ⬉䰏DŽ 2.4.6 PB7:PB0 PB7:PB0 ᰃঠッষ B ⱘᓩ㛮DŽᓩ㛮ݙ䚼᳝ৃ䗝ⱘ 12Kohm Ϟᢝ⬉䰏DŽ 2.4.7 OUT ߶ OUT ᰃϔϾ䕧ߎᓩ㛮DŽ cٟટື೭ Ңᴀ䋼Ϟ䆆ˈBL3501 ᰃϔℒ MCU ⬉䏃ˈ݊ԧ㋏㒧ᵘᣛҸ㋏㒳Ϣ BL2220 ᅠܼⳌৠDŽ ϟ䴶䆺㒚ᦣ䗄 BL3501 ⱘ Memory Map ᆘᄬ఼DŽ 0HPRU\0DS ݊Ё⫼᠋ ROM ऎৃḍϡৠ⫼᠋ⱘ㽕∖䖯㸠DŽ ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. BL3501 Memory Map ) General Register 16 bytes RAM 32 bytes ) Unused ) Special Register 16 bytes ) $ Unused ') ( Stack 32 bytes )) Unused )) User ROM 1792 bytes ()) ) Selfcheck ROM 240 bytes )() )) User Vectors 16 bytes ))) ޗӉ୶ഊੜ BL3501 ⱘܼ䚼ᆘᄬ఼㾕ϟ㸼DŽ Addr Name $00 PORTA R/W R 7 6 5 4 3 2 1 0 Reset PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 unaffected PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 unaffected W $01 PORTB R ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. W $02 PORTC R PC0 unaffected W $04 DDRA R DDRA7 DDRA6 DDRA5 DDRA4 DDRA3 DDRA2 DDRA1 DDRA0 0000 0000 DDRB7 DDRB6 DDRB5 DDRB4 DDRB3 DDRB2 DDRB1 DDRB0 0000 0000 TD7 TD6 TD5 TD4 TD3 TD2 TD1 TD0 1111 1111 TIF TIM PR2 PR1 PR0 0100 0100 PBP PB1 PB0 ---- -000 KBE2 KBE1 KBE0 0000 0000 F38KE 000- ---0 CT1 CT0 01-1 00-0 W $05 DDRB R W $08 TDR R W $09 TCR R 0 W $0A POPR PRER R W $0B KBIM R KBE7 KBE6 KBE5 KBE4 KBE3 W $0C MCR R 0 KBIE W $90 $91 RCR RAR R 0 W RTCIF R RTCT KBIC XSTP FLAG RTCIE XSL ADJ F6 F5 F4 F3 F2 F1 F0 unaffected SEC6 SEC5 SEC4 SEC3 SEC2 SEC1 SEC0 unaffected MIN6 MIN5 MIN4 MIN3 MIN2 MIN1 MIN0 unaffected HR5 HR4 HR3 HR2 HR1 HR0 unaffected DAY5 DAY4 DAY3 DAY2 DAY1 DAY0 unaffected MON4 MON3 MON2 MON1 MON0 unaffected YR4 YR3 YR2 YR1 YR0 unaffected WK2 WK1 WK0 unaffected W $92 RSR R W $93 RMR R W $94 RHR R W $95 RDR R W $96 RMOR R W $97 RYR R YR7 YR6 YR5 W $98 RWR R W 3.2.1 A ࣇޗӉ୶ PORTAďPort A Data RegisterĐ PORTA ᰃ A ষᰃ᭄ᆘᄬ఼ˈ↣ϔԡᇍᑨ I/O ষ PA7:PA0 ЁⱘϔϾDŽᔧ I/O ষЎ䕧ܹ ⢊ᗕᯊ䇏 PORTA Ⳍᑨⱘԡৃҹ߸ᮁ I/O ষⱘ⬉ᑇ䘏䕥˗ᔧ I/O ষЎ䕧ߎ⢊ᗕᯊ ݭPORTA Ⳍ ᑨⱘԡৃҹࠊ I/O ষⱘ⬉ᑇ䘏䕥DŽ ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. PORTA Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset $00 PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 unaffected 3.2.2 B ࣇޗӉ୶ PORTBďPort B Data RegisterĐ PORTB ᰃ B ষᰃ᭄ᆘᄬ఼ˈ↣ϔԡᇍᑨ I/O ষ PB7:PB0 ЁⱘϔϾDŽᔧ I/O ষЎ䕧ܹ ⢊ᗕᯊ䇏 PORTB Ⳍᑨⱘԡৃҹ߸ᮁ I/O ষⱘ⬉ᑇ䘏䕥˗ᔧ I/O ষЎ䕧ߎ⢊ᗕᯊ ݭPORTB Ⳍ ᑨⱘԡৃҹࠊ I/O ষⱘ⬉ᑇ䘏䕥DŽ PORTB Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset $01 PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 unaffected 3.2.3 C ࣇޗӉ୶ PORTCďPort C Data RegisterĐ PORTC া᳝ PC0 䖭ϔԡˈ⫼Ѣࠊ OUT ⱘ䕧ߎ䘏䕥DŽOUT ᓩ㛮ᰃ৺ࡴ䕑 38KHz ⱘ䇗 ࠊֵো⬅ F38KE ᆘᄬ఼އᅮDŽ Address PORTC bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 $02 bit 0 Reset PC0 unaffected 3.2.4 A ࣇֺޗӉ୶ DDRAďPort A Data Direction RegisterĐ DDRA ⫼Ѣࠊ PA ষⱘ䕧ܹ䕧ߎᮍˈDDRAx˙0 ᯊˈPAx Ў䕧ܹ⢊ᗕ˗DDRAx˙1 ᯊˈPAx Ў䕧ߎ⢊ᗕDŽ DDRA Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset $04 DDRA7 DDRA6 DDRA5 DDRA4 DDRA3 DDRA2 DDRA1 DDRA0 00000000 3.2.5 B ࣇֺޗӉ୶ DDRBďPort B Data Direction RegisterĐ DDRB ⫼Ѣࠊ PB ষⱘ䕧ܹ䕧ߎᮍˈDDRBx˙0 ᯊˈPBx Ў䕧ܹ⢊ᗕ˗DDRBx˙1 ᯊˈPBx Ў䕧ߎ⢊ᗕDŽ DDRB Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset $05 DDRB7 DDRB6 DDRB5 DDRB4 DDRB3 DDRB2 DDRB1 DDRB0 00000000 3.2.6 Շನ୶୶ TDRďTimer Data RegisterĐ TDR ᰃϔϾৃ䇏 ⱘݭ8 ԡᆘᄬ఼ˈᅗⱘݙᆍᰃ 8 ԡᅮᯊ఼䅵఼᭄ⱘᔧࠡؐDŽ䇏䆹ᆘᄬ ఼ᯊϡӮᕅડᅮᯊ఼ⱘᎹDŽ TDR Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset $08 TD7 TD6 TD5 TD4 TD3 TD2 TD1 TD0 11111111 3.2.7 Շನ୶ࣅᄥޗӉ୶ TCRďTimer Control RegisterĐ TCR ⫼Ѣᇍ 8 ԡᅮᯊ఼䖯㸠䆒ᅮDŽ ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. Address bit 7 bit 6 $09 TIF TIM TCR bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset PRER PRE2 PRE1 PRE0 01--0100 TIFĔTimer Interrupt Flag 1˖ᅮᯊ఼ޣ䅵᭄ࠄ 0DŽ 0˖ᅮᯊ఼ᇮ䅵᭄ࠄ 0DŽ ᅮᯊ఼ⱘ䅵఼᭄ϔᮺ䅵᭄㒧ᵰЎĀ0āˈ߭ᡞ TIF 㕂Ā1āˈ㸼⼎᳝ᅮᯊ఼Ёᮁ䇋∖DŽ㋏㒳 ԡᇍ TIF ݭĀ0āৃҹᇚ TIF ⏙䳊DŽ TIMĔTimer Interrupt Mask 1˖ϡܕ䆌ᅮᯊ఼ЁᮁDŽ 0˖ܕ䆌ሣ㬑ᅮᯊ఼ЁᮁDŽ ㋏㒳ԡᯊˈӮᡞ TIM 㕂Ā1āˈҢ㗠ሣ㬑ᅮᯊ఼Ёᮁˈ㽕ܕ䆌ᅮᯊ఼Ёᮁˈᖙ乏⫼䕃 ӊᡞ TIM ⏙䳊DŽTIM া㛑⫼Ѣሣ㬑Ёᮁ䇋∖ˈϡᕅડ TIFDŽ PRERĔPREscaler Reset ᇍ PRER ݭĀ1āᇚᇍ乘ᅮ఼ᷛԡˈᇍ TDR ⱘ᭄䖯㸠ᮄⱘᯊ᳝ᖙ㽕ᇍ乘ᅮ఼ᷛ ⏙䳊DŽᇍ䆹ԡ䇏ⱘ㒧ᵰᘏЎĀ0āDŽ PRE2:PRE0 PRE2:PRE0 ᰃ乘ᅮ఼ᷛߚ乥⥛ⱘ䗝ᢽԡˈ㋏㒳ԡᯊ㹿㕂ԡĀ100āˈгህᰃ 16 ߚ乥DŽ 䖭 3 ԡⱘؐߚ乥⥛ⱘᇍᑨ݇㋏㾕ϟ㸼DŽ PRE2 PRE1 PRE0 ߚ乥⥛ 0 0 0 1 0 0 1 2 0 1 0 4 0 1 1 8 1 0 0 16 1 0 1 32 1 1 0 64 1 1 1 128 3.2.8 ժࣇ༪႔ޗӉ୶ POPRďPort Option RegisterĐ POPR ⫼Ѣ䗝ᢽ PB ষᰃ৺᳝Ϟᢝ⬉䰏DŽ Address POPR bit 7 bit 6 bit 5 bit 4 $0A bit 3 bit 2 bit 1 bit 0 Reset PBP PB1 PB0 ------00 PBPĔPB2:PB7 Pull-up 1˖ݙ䚼 12Kohm ⱘ⬉䰏䖲ࠄ PB2:PB7 ⱘ䕧ܹッDŽ 0˖PB2:PB7 ᮴Ϟᢝ⬉䰏DŽ ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. PB1ĔPB1 Pull-up 1˖ݙ䚼 12Kohm ⱘ⬉䰏䖲ࠄ PB1 ⱘ䕧ܹッDŽ 0˖PB1 ᮴Ϟᢝ⬉䰏DŽ PB0ĔPB0 Pull-up 1˖ݙ䚼 12Kohm ⱘ⬉䰏䖲ࠄ PB0 ⱘ䕧ܹッDŽ 0˖PB0 ᮴Ϟᢝ⬉䰏DŽ 3.2.9 ߏ૭ᄯծୀΗޗӉ୶ KBIMďKeyboard Interrupt Mask RegisterĐ KBIM ⫼Ѣ䗝ᢽ PA ষⱘ䬂Ⲭᠿᦣࡳ㛑ᰃ৺ᠧᓔDŽ Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset $0B KBE7 KBE6 KBE5 KBE 4 KBE 3 KBE 2 KBE 1 KBE 0 00000000 KBIM KBE7:KBE0ĔKeyboard Enable 1˖PA7:PA0 Ў䬂Ⲭᠿᦣ䕧ܹষDŽ 0˖PA7:PA0 Ў᱂䗮ⱘ I/O ষDŽ 3.2.10 ၶဈࣅᄥޗӉ୶ MCRďMiscellanceous Control RegisterĐ MCR ⫼Ѣࠊ䬂ⲬЁᮁǃ38K 䕑⊶ RTC ⱘ⌟䆩DŽ MCR Address bit 7 bit 6 bit 5 $0C KBIE KBIC RTCT bit 4 bit 3 bit 2 bit 1 bit 0 Reset F38KE 00000000 KBIEĔKeyboard Interrupt Enable 1˖ܕ䆌䬂ⲬЁᮁDŽ 0˖⽕ℶ䬂ⲬЁᮁDŽ ㋏㒳ԡᯊˈKBIE ⏙䳊DŽKBIE Ͼ⣀ゟⱘ䬂ⲬЁᮁ䗝ᢽԡ KBEx ᠻ㸠ĀϢā᪡ˈ Ң㗠އᅮᰃ৺㛑ѻ⫳䬂ⲬЁᮁ䇋∖ֵোDŽ KBICĔKeyboard Interrupt Clear 1˖⏙䬂ⲬЁᮁ䫕ᄬֵোDŽ 0˖ֱ⬭䬂ⲬЁᮁ䫕ᄬֵোDŽ ㋏㒳ԡᯊˈKBIC ⏙䳊DŽડᑨ䬂ⲬЁᮁৢˈ䬂ⲬЁᮁ໘⧚ᄤᑣЁᑨᇍ⏙䬂ⲬЁᮁ 䫕ᄬֵোˈेᇍ KBIC ݭĀ1āDŽӏԩᯊ䇏 KBIC ⱘ㒧ᵰᘏЎĀ0āDŽ RTCTĔRTC Test 1˖ᠧᓔ RTC ⌟䆩ᓣDŽ 0˖݇䯁 RTC ⌟䆩ᓣDŽ RTCT ⫼Ѣᓔ݇ RTC ⱘ⌟䆩ᓣˈ䖯ܹ RTC ⌟䆩ᓣৢˈᇚ㋏㒳ᯊ䩳ᓩܹ RTC ഫˈ ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. Ң㗠ৃҹࡴ䗳 RTC ⱘ⌟䆩䖛DŽ㋏㒳ԡᯊˈRTCT ⏙䳊DŽ F38KEĔ38KHz Modulation Enable 1˖ܕ䆌 38KHz 䇗ࠊ 0˖ϡܕ䆌 38KHz 䇗ࠊDŽ F38KE އᅮᰃ৺ OUT ᓩ㛮ⱘ䕧ߎֵোϞࡴ䕑 38KHz ⱘ䇗ࠊ⊶DŽ㋏㒳ԡᯊˈF38KE ⏙䳊DŽ 3.2.11 RTC ࣅᄥޗӉ୶ RCRďRTC Control RegisterĐ RCR ᰃϔϾ⫼Ѣࠊ RTC ഫᎹᮍᓣⱘᆘᄬ఼DŽ RCR Address bit 7 bit 6 $90 RTCIF RTCIE bit 5 bit 4 bit 3 ADJ/XSTP FLAG bit 2 bit 1 bit 0 Reset CT1 CT0 0101 00-0 RTCIFĔRTC Interrupt Flag 1˖⏙ RTC Ёᮁ䫕ᄬֵোDŽ 0˖ֱ⬭ RTC Ёᮁ䫕ᄬֵোDŽ ㋏㒳ԡᯊˈRTCIF ⏙䳊DŽRTC ѻ⫳ЁᮁৢˈЁᮁֵোᇚ㹿䫕ᄬˈᔧ RTCIF=1 ᯊˈ⏙ RTC Ёᮁ䫕ᄬֵো˗RTCIF=0 ᯊˈRTC Ёᮁ䫕ᄬֵোϡবDŽડᑨ RTC ЁᮁПৢˈЁᮁ ໘⧚ᄤᑣЁᑨᇍ RTCIF ݭĀ1āˈ৺߭ᇚϡᮁડᑨ RTC ЁᮁDŽ䇏 RTCIF 㒧ᵰྟ㒜ЎĀ0āDŽ RTCIEĔRTC Interrupt Enable 1˖⽕ℶ RTC ЁᮁDŽ 0˖ܕ䆌 RTC ЁᮁDŽ RTCIE ᰃ RTC ЁᮁՓ㛑ԡˈЁᮁֵোḍ CT1:CT0 ⱘ㓪ⷕϡৠ䕧ߎϡৠⱘ਼ᳳᗻЁᮁDŽ ㋏㒳ԡᯊˈRTCIE 㕂 1ˈ⽕ℶ RTC ЁᮁDŽ ADJ/XSTPĔClock Adjust or Crystal Oscillator Stop ADJ/XSTP ᰃϔԡ⫼ԡˈܹݭᯊᰃ ADJ˄ᯊ䩳᷵ℷԡ˅ ˈ䇏ߎᯊᰃ XSTP˄RTC ᤃذᤃẔ⌟ԡ˅DŽᇍ ADJ 㕂Ā1āৢˈབᵰ⾦㑻ⱘ䅵᭄Ѣ 30ˈ߭ߚ䩳ⱘ䅵᭄ࡴϔˈ䱣ৢ ⾦䅵᭄㹿⏙䳊ˈПৢ ADJ 䖨ಲॳ⢊ᗕDŽXSTP˖া㛑䇏ߎˈ᮴ࡳݭ㛑DŽᯊ䩳ഫϞ⬉ৢЎ 1ˈ ᇍᅗᅲ⦄߱ྟ࣪˄ݭ᪡˅ৢˈবЎ 0DŽབᵰ XSTP さ✊বЎ 1ˈ䇈ᯢϞϔ䇏᪡ৢˈ RTC ⱘ 32KHz ᤃ᳒㒣ذᤃˈᯊ䯈᭄ϡᇍˈᦤ⼎ᮄᯊ䯈᭄DŽ FLAGĔRTC R/W Enable Flag 1˖⽕ℶ䇏ݭ᪡DŽ 0˖ܕ䆌䇏ݭ᪡DŽ FLAG ᰃ䇏ܕݭ䆌ᷛᖫԡˈᰃা䇏ⱘDŽ⬅Ѣ RTC ЁᄬѨ㑻䅵఼᭄ˈⳌѦП䯈ᄬ䖯 ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. ԡ݇㋏ˈ㢹䖯ԡথ⫳ᯊ䇏 ݭRTC ⱘ᭄ᆘᄬ఼ˈ᳝ৃ㛑䗴៤᭄ߎ䫭ˈ᠔ҹ䆒㕂䆹ᷛᖫ ԡˈᅗ⾦䅵᭄ব࣪ࠡⱘ 1/128 ⾦বЎĀ1āˈ⾦ⱘ䖯ԡᅠ៤ৢゟेᘶЎĀ0āDŽЎњֱ䆕 䇏ݭ᭄ⱘℷ⹂ˈᑨ䇏ݭ᪡ࠡẔ⌟䆹ᷛᖫԡᰃ৺ЎĀ0āˈ㢹ЎĀ0ā߭ܕ䆌䇏ݭ᪡ˈ ৺߭⽕ℶ䇏ݭ᪡DŽৠᯊЎњ䇏ⱘݭ᭄ϢᳳᳯؐⳌヺˈᓎ䆂ᇍ RTC ᭄ⱘ䇏ݭᑨ៤ᡍ䖯 㸠DŽ CT1:CT0ĔRTC Interrupt Period Select 00˖ѻ⫳਼ᳳЎ 1 ⾦ⱘЁᮁֵোDŽ 10˖ѻ⫳਼ᳳЎ 10 ⾦ⱘЁᮁֵোDŽ 11˖ѻ⫳਼ᳳЎ 60 ⾦ⱘЁᮁֵোDŽ CT1:CT0 ⫼Ѣ䗝ᢽ RTC ⱘЁᮁ਼ᳳDŽ㋏㒳ԡᯊⱘؐЎĀ00āDŽ 3.2.12 RTC ࣅᄥޗӉ୶ RARďRTC Adjustment RegisterĐ RAR ⫼Ѣᇍ 32.000KHz 32.768KHz ᤃⱘ䗝ᢽᯊ䩳᷵ޚDŽ RAR Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset $91 XSL F6 F5 F4 F3 F2 F1 F0 unaffected XSLĔCrystal Select 1˖䗝⫼ 32.000KHz ⱘᤃDŽ 0˖䗝⫼ 32.768KHz ⱘᤃDŽ Փ⫼ RTC ᯊϔᅮ㽕ḍ᠔䗝ᢽⱘᤃ䆒㕂 XSLDŽ F6:F0ĔAdjustment Data ݙ䚼᷵⬉ޚ䏃ϔᮺਃ⫼ˈ↣䱨 20 ⾦ˈḍ⫼᠋ⱘ䆒ᅮ᭄ˈ㞾ࡼᇍߚ乥఼ⱘ᭄䖯㸠 ׂᬍˈҢ㗠䖒ࠄ䇗ᭈ乥⥛ⱘࡳ㛑DŽϔᮺᇍ䆹ᆘᄬ఼ܹݭ䴲䳊 F6:F0 ϡㄝѢ䳊ˈݙ䚼᷵⬉ޚ䏃 ᇚ㞾ࡼਃ⫼DŽᔧ F6=0 ᯊˈߚ乥఼ⱘ䅵఼᭄㽕䅵((F5,F4,F3,F2,F1,F0)-1)*2 Ͼᯊ䩳ᠡѻ⫳⾦ ֵো˗ᔧ F6=1 ᯊˈߚ乥఼㽕ᇥ䅵(!(F5,F4,F3,F2,F1,F0)+1)*2 Ͼᯊ䩳ህѻ⫳⾦ֵোDŽ՟བˈ ᔧ䗝⫼ 32.768KHz ᤃᯊˈ㗠ᅲ䰙ᤃ乥⥛ᰃ 32.770KHzˈ䙷Мᯊ䩳䍄ⱘ↨ᷛޚᯊ䩳ᖿˈЎ њ䅽ᅗᷛޚᯊ䩳ৠℹˈ៥Ӏህᑨ䆹↣Ͼ 20 ⾦Փᕫߚ乥఼䅵(32770-32768)*20 Ͼᯊ䩳ˈ гህᰃ 40 Ͼᯊ䩳਼ᳳˈѢᰃ(F6,F5,F4,F3,F2,F1,F0)㹿䆒㕂៤Ў(0,0,1,0,1,0,1)DŽ䖭ḋˈҢϔϾ 䕗䭓ⱘ਼ᳳᴹⳟˈⳌᔧѢᡞ 32.770KHz ⱘᤃㄝᬜЎ 32.768KHz ⱘᤃDŽ 3.2.13 RTC ޗӉ୶ďRTC Data RegisterĐ RTC ЁࣙᣀѨϾ᭄ᆘᄬ఼ˈߚ߿Ў⾦ᆘᄬ఼ RSRǃߚ䩳ᆘᄬ఼ RMRǃᇣᯊᆘᄬ఼ RHRǃ᭄ᆘᄬ఼ RDRǃ᳜ӑᆘᄬ఼ RMORǃᑈӑᆘᄬ఼ RYRǃ᯳ᳳᆘᄬ఼ RWRˈ䖭ѯ ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. ᆘᄬ఼ⱘ᭄ഛᰃ BCD ⷕḐᓣDŽ Address RSR bit 7 $92 Address RMR bit 7 $93 Address RHR bit 7 bit 7 RYR bit 3 bit 2 bit 1 bit 0 Reset SEC6 SEC5 SEC4 SEC3 SEC2 SEC1 SEC0 unaffected bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset MIN6 MIN5 MIN4 MIN3 MIN2 MIN1 MIN0 unaffected bit 6 bit 6 bit 7 bit 5 bit 4 bit 3 bit 2 bit 1 Bit 0 Reset HR5 HR4 HR3 HR2 HR1 HR0 unaffected bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset DAY5 DAY4 DAY3 DAY2 DAY1 DAY0 unaffected bit 6 bit 5 $96 bit 4 bit 3 bit 2 bit 1 bit 0 Reset MON4 MON3 MON2 MON1 MON0 unaffected Address bit 7 bit 6 bit 5 bit 4 bit 3 bit 2 bit 1 bit 0 Reset $97 YR7 YR6 YR5 YR4 YR3 YR2 YR1 YR0 unaffected bit 7 bit 6 bit 5 bit 4 bit 3 Address RWR bit 4 $95 Address RMOR bit 5 $94 Address RDR bit 6 $98 bit 2 bit 1 bit 0 Reset WK2 WK1 WK0 unaffected cԨাඋϵ ᆫӖ֍Շᄔ ϵ Ꮉ⬉य़ ۜ Vdd 䕧ܹ⬉य़ VIN 䕧ߎ偅ࡼ⬉⌕ Ꮉ⏽ᑺ ᄔ 2.2̚5.5 Ӧส V V Id Vss-0.3lVdd+0.3 3 mA TA -40l85 § ᄐঠԨ୷ϵރՇ࿌ Vdd=3.0Vf10%ˈVss=0.0V ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. උ ۜ 䕧ߎ催⬉ᑇ Voh 䕧ߎԢ⬉ᑇ Vol ඨߑ ᆫ໌ Iload=ˉ0.8mA Vdd-0.5 V PA7~PA0 PB7~PB0 OUT Iload=0.8mA 0.1 0.5 V Ioh PA7~PA0 PB7~PB0 OUT Voh˙2.3V 3 5 mA Iol PA7~PA0 PB7~PB0 OUT Vol˙1.0V 3 5 mA Vih PA7~PA0 PB7~PB0 RSTB 0.7Vdd Vdd V 䕧ܹԢ⬉ᑇ Vil PA7~PA0 PB7~PB0 RSTB 0 0.2Vdd V ࡼᗕࡳ㗫 Iddd VDD Џᤃ 455KHz RTC ᤃ 32KHz 0.5 1 mA 䴭ᗕࡳ㗫 Idds VDD Џᤃذ RTC ᤃ 32KHz 5 10 uA Ϟᢝ⬉䰏 Rp PA7~PA0 1 12 30 Kohm 䕧ߎ催⬉ᑇ 偅ࡼ⬉⌕ 䕧ߎԢ⬉ᑇ 偅ࡼ⬉⌕ 䕧ܹ催⬉ᑇ ߶ PA7~PA0 PB7~PB0 OUT ԥ ᆫӖ Ӧส ߬ঠԨ୷ϵރՇ࿌ Vdd=3.0Vf10%ˈVss=0.0V උ ۜ ᆫ໌ ԥ ᆫӖ Ӧส Џᤃ乥⥛ Fosc1 455K 4M Hz RTC ᤃ乥⥛ Fosc2 32K 32.768K Hz ᤃ䍋ᤃᯊ䯈 Toxov 100 ms ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. c%(1&+7(674& ົં ંԅ 㾘ᅮ BL3501 ⬉䏃 BENCH TEST QC ⌟䆩ⱘᡔᴃᣛᷛDŽ ುဈֳถ 䗖⫼ BL3501 ⬉䏃 BENCH TEST QC ⌟䆩DŽ Љೋඨߑ BL3501 ᠻ㸠 MASKROM Ёⱘ㞾Ẕᑣᅠ៤䚼ߚࡳ㛑ഫⱘࡳ㛑⌟䆩DŽ TEST BENCH ᵓϞˈབᵰࡳ㛑ℷᐌˈPB7~PB0 ⱘ LED Ӯձᕾ⦃䮾҂ˈ৺߭ᇚ ذϔϾ⢊ᗕϡࡼˈ⬅ℸৃҹ߸ᮁ㢃⠛ાϔഫⱘࡳ㛑ᓖᐌˈབϟ㸼DŽ PB7 1 PB6 0 PB5 1 PB4 1 PB3 1 PB2 1 PB1 1 PB0 1 ࡳ㛑༅ᬜ TIMER 1 1 0 1 1 1 1 1 RTC 1 1 1 0 1 1 1 1 ROM 1 1 1 1 0 1 1 1 RAM ⌟䆩ᴎϞ⌟䆩ࡳ㛑ⱘ Pattern 䰘DŽ Љೋֳڟ 5.4.1 DC ֳڟ Vdd=3.0Vf10%ˈVss=0.0V උ ۜ 䕧ߎ催⬉ᑇ 偅ࡼ⬉⌕ Ioh 䕧ߎԢ⬉ᑇ 偅ࡼ⬉⌕ Iol 䕧ܹ催⬉ᑇ Vih ߶ PA7~PA0 PB7~PB0 OUT PA7~PA0 PB7~PB0 OUT PA7~PA0 PB7~PB0 RSTB ඨߑ ᆫ໌ ԥ ᆫӖ Voh˙2.3V 5 3 mA Vol˙1.0V 5 3 mA 0.7Vdd Vdd V Ӧส ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Shanghai Belling-Systron Microelectronics Co., Ltd. RSTB 䕧ܹԢ⬉ᑇ Vil PA7~PA0 PB7~PB0 RSTB ࡼᗕࡳ㗫 Iddd VDD Џᤃ 455KHz RTC ᤃ 32KHz 0.5 1 mA 䴭ᗕࡳ㗫 Idds VDD Џᤃذ RTC ᤃ 32KHz 5 10 uA Ϟᢝ⬉䰏 Rp PA7~PA0 1 12 30 Kohm 0 0.2Vdd V 䇈ᯢ˖ D 偅ࡼ⬉⌕⌟䆩Ϟᢝ⬉䰏ࡳ㛑㞾Ẕ⌟䆩ⱘৠᯊ䖯㸠ˈԧⱘ⌟䆩ᯊ䯈⚍⌟䆩乍Ⳃ ࡳ㛑⌟䆩 3DWWHUQ 䰘㸼Ё㒭ߎDŽ E ⌟䆩ࡼᗕ䴭ᗕᎹ⬉⌕ⱘℹ偸བϟ˖ z 26& 㛮䗕ܹ .+] ⱘᮍ⊶ֵোˈ(26& 䗕Ԣ⬉ᑇˈ Ͼᯊ䩳਼ᳳ˄PV˅ৢˈ ⌟䆩 9'' 㛮ⱘ⬉⌕ˈेЎࡼᗕᎹ⬉⌕ ,GGGDŽ z 26& 㛮䗕催⬉ᑇˈ(26& 䗕ܹ .+] ⱘᮍ⊶ֵোˈPV ৢˈ⌟䆩 9'' 㛮ⱘ⬉⌕ˈेЎ䴭 ᗕᎹ⬉⌕ ,GGVDŽ 5.4.2 ࢶЉೋԅົં ࣙᣀࡳ㛑⌟䆩 5.4.1 Ё߫ߎⱘ⬉ᗻ㛑খ᭄DŽ 5.4.3 ESD ટᄗγ f800VDŽ 5.4.4 Latchup ટᄗγ ḍ݀ৌ㾘㣗ĀGROUND INPUTSāPulse Lvl=100mADŽ ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ Shanghai Belling-Systron Microelectronics Co., Ltd. ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ Ԩ୷ϵЉೋၐस ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI R7 R6 R5 R4 72 73 74 75 76 77 S77 71 S74 S73 S72 S71 70 67 66 S76 65 S75 64 63 62 61 S70 S64 S63 S62 S61 60 57 S67 56 S66 55 S65 54 53 52 51 S60 S54 S53 S52 S51 50 47 S57 46 S56 45 S55 44 43 42 41 S50 S45 S44 S43 S42 S41 40 37 S47 36 S46 35 34 33 32 31 S40 S35 S34 S33 S32 S31 S30 30 27 S37 26 S36 25 24 23 22 21 20 17 S27 S26 S25 S24 S23 S22 S21 S20 S17 16 15 14 13 12 11 10 07 S16 S15 S14 S07 S13 S06 S12 S05 S11 S04 Q1 9013 S10 C1 06 C2 05 C3 04 C4 03 S03 10K R2 IR_LED R3 100ohm VCC R3 BL3501 C7 C6 C5 C4 C3 C2 C1 C0 11 10 12 R7 R6 R5 R4 R3 R2 R1 R0 24 23 21 20 19 18 17 16 C5 02 S02 OUT GND EOSC1 RST EOSC2 PA7 PA6 PA5 PA4 PA3 PA2 PA1 PA0 PB7 PB6 PB5 PB4 PB3 PB2 PB1 PB0 OSC2 OSC1 VDD U1 C6 01 15 14 13 22 Shanghai Belling-Systron Microelectronics Co., Ltd. R2 C3 10u Y2 32786Hz S01 C2 100p 10k R1 VCC C7 00 S00 455KHz Y1 CON2 J1 Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ R1 R0 C1 100p C4 10u VCC GND ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ cԥဈ C0 䖭ᓴॳ⧚ᰃ BL3501 ᑨ⫼Ѣ㑶䘹఼ⱘൟ⬉䏃ˈḍᣝ䬂˄݅ 64 Ͼ˅থ䗕Ⳍᑨ ⱘ㑶㓪ⷕֵোDŽ ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI Ϟ⍋䋱ኁⷑ߯ᖂ⬉ᄤ᳝䰤݀ৌ Shanghai Belling-Systron Microelectronics Co., Ltd. ԡᏺ57&ⱘ0$6.ऩ⠛ᴎ㢃⠛%/ cचܤೋི c·Сଶပॹֳڟڑζ ⬉䆱˖Ӵⳳ˖㔥ഔZZZV\VWURQVKFQ RI