Tui dùng thạch anh 32.768Hz nối với chân Tocs1 của con Mega8 định làm một cái đồng hồ nhưng sao mạch không hoạt động. (When AS2 is set, pins TOSC1 and TOSC2 are disconnected
from Port B. A crystal can then be connected between the TOSC1 and TOSC2 pins to
serve as an independent clock source for Timer/Counter2. The Oscillator is optimized
for use with a 32.768 kHz crystal. Applying an external clock source to TOSC1 is not
recommended.)
Theo datasheet của nó thì khi dùng chế độ này thì chân này không còn kết nối tới portB vậy thi xung clock của hệ thống sẽ lấy ở đâu ra.
Có ai làm về RTC bằng Mega8 thì giúp tôi với. Tôi viết chương trình bằng CodeVision AVR.
thank !
from Port B. A crystal can then be connected between the TOSC1 and TOSC2 pins to
serve as an independent clock source for Timer/Counter2. The Oscillator is optimized
for use with a 32.768 kHz crystal. Applying an external clock source to TOSC1 is not
recommended.)
Theo datasheet của nó thì khi dùng chế độ này thì chân này không còn kết nối tới portB vậy thi xung clock của hệ thống sẽ lấy ở đâu ra.
Có ai làm về RTC bằng Mega8 thì giúp tôi với. Tôi viết chương trình bằng CodeVision AVR.
thank !

Comment