Datasheet.kr   

AN1355 데이터시트 PDF




Microchip에서 제조한 전자 부품 AN1355은 전자 산업 및 응용 분야에서
광범위하게 사용되는 반도체 소자입니다.


PDF 형식의 AN1355 자료 제공

부품번호 AN1355 기능
기능 A Complete Electronic Watch Based on MCP79410 I2C RTCC
제조업체 Microchip
로고 Microchip 로고


AN1355 데이터시트 를 다운로드하여 반도체의 전기적 특성과 매개변수에 대해 알아보세요.



전체 8 페이지수

미리보기를 사용할 수 없습니다

AN1355 데이터시트, 핀배열, 회로
AN1355
A Complete Electronic Watch Based on MCP79410
I2C™ RTCC
Author: Alexandru Valeanu
Microchip Technology Inc.
INTRODUCTION
An increasing number of applications that involve
time measurement are requiring a Real-Time Clock/
Calendar (RTCC) device. The MCP79410 is a fea-
ture-rich RTCC that incorporates EEPROM, SRAM,
unique ID and time-stamp.
FEATURES OF THE RTCC
STRUCTURE
• I2C™ Bus Interface
• RTCC with Time/Date Registers: Year, Month,
Date, Day of Week, Hours, Minutes, Seconds
• Support for Leap Year
• Low-power CMOS Technology
• Input for External Battery Backup (maintains
SRAM, RTCC and Timekeeping)
• On-board 32,768 kHz Crystal Oscillator for the
RTCC
• On-chip Digital Trimming/Calibration of the
Oscillator
• Operates down to 1.3V VBAT Minimum
• Operating Temperature Range:
- Industrial (I): -40C to +85C
• Multi-function Pin:
- Open-drain configuration
- Programmable clock frequency out
- Programmable alarm output
• Interrupt Capability (based on the 2 sets of Alarm
Registers, ALM0 and ALM1)
• Time-stamp Registers for holding the Time/Date
of Crossing:
- from VDD to VBAT
- from VBAT to VDD
SCHEMATIC
The schematic includes a PIC18 Explorer demo board
and the I2C RTCC PICtail™ daughter board as shown
in Figure 1.
FIGURE 1:
SCHEMATIC
LCD
LUMEX
DB7 - 0
RS
E
MCP23S17
SPI
Expander
SCK
CS
SDI
C4 = 0.1 uF
C3 32.768 kHz
1 X1
10pF
Y
C4
R4
BAT 85 1K
BAT
2 X2
3 VBAT
100pF
4 VSS
RTCC
MCP 79410
VDD 8
MFP 7
SCL 6
SDA 5
VDD
2K
VDD
2K
2K VDD
RC5/SD01
RA2
RA4/T0 CKI
PIC18F87J11
RC3/SCK1/SCL1
RC4/SDA1
RB0
RA5
VDD
10K
S1
VDD
10K
MENU KEY
S2
INCR KEY
2010 Microchip Technology Inc.
DS01355A-page 1
Free Datasheet http://www.Datasheet4U.com




AN1355 pdf, 반도체, 판매, 대치품
AN1355
ACCESSING THE RTCC REGISTERS
There are two basic functions for accessing the RTCC
register: one for writes and one for reads. They can be
defined as: void rtcc_wr (unsigned char
time_var, unsigned char rtcc_reg),
unsigned char rtcc_rd (unsigned char
rtcc_reg). Each of these two functions include error
messages displayed on LEDs, which could signal when
an operation is not acknowledged by the slave (RTCC).
EXAMPLE 1: WRITES TO THE RTCC
i2c_start()
; // start I2C communication: SDA goes down while SCL remains high
i2c_wr(ADDR_RTCC_WRITE); // send the RTCC's address for write = 0xde
i2c_wr(rtcc_reg)
i2c_wr (time_var)
i2c_stop()
; //
; //
; //
send the register's address
send the data byte
stop I2C communication: SDA goes high while SCL remains high
EXAMPLE 2: READS FROM THE RTCC
i2c_start()
; // start I2C communication: SDA goes down while SCL remains high
i2c_wr(ADDR_RTCC_WRITE ; // send the RTCC's address for write = 0xde
i2c_wr(rtcc_reg)
; //
i2c_restart()
; //
i2c_wr(ADDR_RTCC_READ) ; //
i2c_rd()
; //
send the register's address
switch to reads
send the RTCC's address for read = 0xdf
read the byte from the RTCC (register's content)
i2c_nack
i2c_stop()
; //
; //
NoACK from MCU to the RTCC (no more bytes to read)
stop I2C communication: SDA goes high while SCL remains high
As described in the data sheet, the addresses of the
RTCC register are shown in Table 1.
TABLE 1: RTCC REGISTER ADDRESSES
Address BIT 7
00h ST
01h
02h
BIT 6
12/24
BIT 5
BIT 4
10 Seconds
10 Minutes
10 Hour 10 Hour
AM/PM
BIT 3
BIT 2
BIT 1
Seconds
Minutes
Hour
BIT 0
03h
OSCON
VBAT VBATEN
Day
04h
10 Date
Date
05h
LP 10 Month
Month
06h 10 Year
Year
07h OUT
SQWE ALM1
ALM0
EXTOSC RS2
RS1
RS0
According to these addresses, in the basic read/write
functions, only the register’s address will differ. Reads
are used in the interrupt function (once/second). Writes
are used in the initialization function and in the setup
sequence (the main function).
FUNCTION RANGE
Seconds
00-59
Minutes
00-59
Hours
1-2 + AM/
PM
00-23
Day 1-7
Date
01-31
Month
01-12
Year
00-99
Control
Reg.
DS01355A-page 4
2010 Microchip Technology Inc.
Free Datasheet http://www.Datasheet4U.com

4페이지










AN1355 전자부품, 판매, 대치품
Note the following details of the code protection feature on Microchip devices:
• Microchip products meet the specification contained in their particular Microchip Data Sheet.
• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
• Microchip is willing to work with the customer who is concerned about the integrity of their code.
• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro, PICSTART,
PIC32 logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL and The Embedded Control
Solutions Company are registered trademarks of Microchip
Technology Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified
logo, MPLIB, MPLINK, mTouch, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance,
TSHARC, UniWinDriver, WiperLock and ZENA are
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
© 2010, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-60932-603-6
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
2010 Microchip Technology Inc.
DS01355A-page 7
Free Datasheet http://www.Datasheet4U.com

7페이지


구       성 총 8 페이지수
다운로드[ AN1355.PDF 데이터시트 ]

당사 플랫폼은 키워드, 제품 이름 또는 부품 번호를 사용하여 검색할 수 있는

포괄적인 데이터시트를 제공합니다.


구매 문의
일반 IC 문의 : 샘플 및 소량 구매
-----------------------------------------------------------------------

IGBT, TR 모듈, SCR 및 다이오드 모듈을 포함한
광범위한 전력 반도체를 판매합니다.

전력 반도체 전문업체

상호 : 아이지 인터내셔날

사이트 방문 :     [ 홈페이지 ]     [ 블로그 1 ]     [ 블로그 2 ]



관련 데이터시트

부품번호상세설명 및 기능제조사
AN135

Sensor Circuits and Digitally Controlled Potentiometers

Xicor
Xicor
AN1355

A Complete Electronic Watch Based on MCP79410 I2C RTCC

Microchip
Microchip

DataSheet.kr       |      2020   |     연락처      |     링크모음      |      검색     |      사이트맵