參數(shù)資料
型號(hào): AN1759
廠商: 飛思卡爾半導(dǎo)體(中國)有限公司
英文描述: Add a Non-Volatile Clock to the MC68HC705J1A
中文描述: 添加非易失時(shí)鐘的MC68HC705J1A
文件頁數(shù): 20/24頁
文件大小: 316K
代理商: AN1759
Application Note
AN1759
20
Code Listing
************************************************************************************
*
* File name: DS1307.ASM
* Example Code for the MC68HC705J1A Interface to the
* Dallas DS1307 Serial Real Time Clock
* Ver: 1.0
* Date: June 1, 1998
* Author: Mark Glenewinkel
*
Fr eescal e
Field Applications
* Consumer Systems Group
* Assembler: P&E IDE ver 1.02
*
* For code explanation and flow charts, please consult
Fr eescal e
Application Note
* "Add a Non-volatile Clock to the MC68HC705J1A" Literature # AN1759/D
*
************************************************************************************
*** SYSTEM DEFINITIONS AND EQUATES **************************************************
*** Internal Register Definitions
PORTA
EQU
$00
DDRA
EQU
$04
;PortA
;data direction for PortA
*** Application Specific Definitions
SER_PORT
EQU
SCL
EQU
SDA
EQU
$00
0T
1T
;PORTA is SER_PORT
;PORTA, bit 0, clock signal
;PORTA, bit 1, data signal
DS1307_WRITE
DS1307_READ
SECONDS
MINUTES
HOURS
DAY
DATE
MONTH
YEAR
CONTROL
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
$D0
$D1
$00
$01
$02
$03
$04
$05
$06
$07
;addresses the DS1307 for write
;addresses the DS1307 for read
;DS1307 address for seconds
;DS1307 address for minutes
;DS1307 address for hours
;DS1307 address for the day
;DS1307 address for the date
;DS1307 address for the month
;DS1307 address for the year
;DS1307 address for control
*** Memory Definitions
EPROM
RAM
RESET
EQU
EQU
EQU
$300
$C0
$7FE
;start of EPROM mem
;start of RAM mem
;vector for reset
*** Time Start Definitions for test
*** Start on Saturday, June 20th, 1998, 4:30:00 PM
START_SECONDS
EQU
$00
START_MINUTES
EQU
$30
START_HOURS
EQU
$64
START_DAY
EQU
$06
START_DATE
EQU
$20
START_MONTH
EQU
$06
START_YEAR
EQU
$98
;0 seconds
;30 minutes
;4 hours, PM, 12 Hour mode
;Saturday
;20th
;June
;1998
F
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
.
相關(guān)PDF資料
PDF描述
AN1768 ADMISSIBLE AVALANCHE POWER OF SCHOTTKY DIODES
AN1775 Expanding Digital Input with an A/D Converter
AN1816 USING THE HC912B32 TO IMPLEMENT THE DISTRIBUTED SYSTEMS INTERFACE (DSI) PROTOCOL
AN2104 Using Background Debug Mode for the M68HC12 Family
AN2154FAP TV/Video Signal Processor
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
AN175C25A 制造商:NEW SURPLUS HARDWARE 功能描述:
AN176-20A 制造商:AN# - MILITARY 功能描述:
AN176-40 制造商:AN# - MILITARY 功能描述:
AN1768 制造商:未知廠家 制造商全稱:未知廠家 功能描述:ADMISSIBLE AVALANCHE POWER OF SCHOTTKY DIODES
AN176H22A 制造商:NEW SURPLUS HARDWARE 功能描述: