Re: pic16f946ㄏノcrystal 32768暗real timeノぇ拜肈

 garyyang  202001る09ら 15:17:18
まノ:

Ryang 糶笵
禟瓜┮ボ: LP OSC 北琌ㄏノ T1OSCEN=1 and Fosc= 0x000 秨币场 32768Hz 綺历竟

T1CS = 1 璶砞﹚ㄏノ獶˙家Α硂妓何痸家Α璸

┮ T1CON = 0b00001111 + Fosc= 0b000

bit 2-0 FOSC<2:0>: Oscillator Selection bits
111 = RC oscillator: CLKO function on RA6/OSC2/CLKO/T1OSO pin, RC on RA7/OSC1/CLKI/T1OSI
110 = RCIO oscillator: I/O function on RA6/OSC2/CLKO/T1OSO pin, RC on RA7/OSC1/CLKI/T1OSI
101 = INTOSC oscillator: CLKO function on RA6/OSC2/CLKO/T1OSO pin, I/O function on RA7/OSC1/CLKI/T1OSI
100 = INTOSCIO oscillator: I/O function on RA6/OSC2/CLKO/T1OSO pin, I/O function on RA7/OSC1/CLKI/T1OSI
011 = EC: I/O function on RA6/OSC2/CLKO/T1OSO pin, CLKI on RA7/OSC1/CLKI/T1OSI
010 = HS oscillator: High-speed crystal/resonator on RA6/OSC2/CLKO/T1OSO and RA7/OSC1/CLKI/T1OSI
001 = XT oscillator: Crystal/resonator on RA6/OSC2/CLKO/T1OSO and RA7/OSC1/CLKI/T1OSI
000 = LP oscillator: Low-power crystal on RA6/OSC2/CLKO/T1OSO and RA7/OSC1/CLKI/T1OSI


ぃ癸パ瓜いFosc=000┪x00常ㄏenable场crystalノFosc=000穦ㄏ╰参clock禲32.768k璝砞Fosc=100╰参砞﹚INTOSC禲眔е

ㄓ http://www.microchip.com.tw/newbb/viewtopic.php?forum=1&topic_id=22790&post_id=80208