Real Time Clock ATMega16

Real Time Clock

Description

The ATMega16 chip in the M16 has a real-time counter that operates asynchronously when a 32,768hz watch crystal is connected to it, providing a real-time clock. Bascom has built-in support for the RTC, making it very easy to use time functions. The watch crystal needs to connect to pins TOSC1(pin 28) and TOSC2(pin 29). The time and date can be set via the PC serial port connection.

Real Time Clock

Hardware requirements

  • ATMega16
  • 32,768 KHz crystal
  • LCD display
  • RS232 port

Software

BASCOM-AVR Real Time Clock example, the time can be set in a terminal program like hyperterminal.

Read more: Real Time Clock ATMega16

Leave a Comment

Your email address will not be published. Required fields are marked *