поискавой системы для электроныых деталей
  Russian  ▼
ALLDATASHEETRU.COM

X  

AN1759 датащи(PDF) 21 Page - Freescale Semiconductor, Inc

номер детали AN1759
подробное описание детали  Add a Non-Volatile Clock to the MC68HC705J1A
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
производитель  FREESCALE [Freescale Semiconductor, Inc]
домашняя страница  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

AN1759 датащи(HTML) 21 Page - Freescale Semiconductor, Inc

Back Button AN1759 Datasheet HTML 16Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 17Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 18Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 19Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 20Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 21Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 22Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 23Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 24Page - Freescale Semiconductor, Inc  
Zoom Inzoom in Zoom Outzoom out
 21 / 24 page
background image
Application Note
Code Listing
AN1759
21
*** RAM VARIABLES ******************************************************************
* Buffer for test reading data from the DS1307
ORG
RAM
BUF_SECONDS
DB
1
;buffer on HC05 for seconds
BUF_MINUTES
DB
1
;buffer on HC05 for hours
BUF_DAY
DB
1
;buffer on HC05 for the day
BUF_DATE
DB
1
;buffer on HC05 for the date
BUF_MONTH
DB
1
;buffer on HC05 for the month
BUF_YEAR
DB
1
;buffer on HC05 for the year
*** MAIN ROUTINE *******************************************************************
ORG
EPROM
;start at begining of EPROM
*** Intialize Ports
START
lda
#$03
;init SER_PORT
sta
SER_PORT
lda
#$03
;make SER_PORT pins outputs
sta
DDRA
*** DS1307 configuration
*** Turn on osc, turn on SQW/OUT pin with 1 Hz signal
jsr
START_SER
;start serial transmission
lda
#DS1307_WRITE
;address the DS1307 device, write
jsr
TXD
lda
#CONTROL
;send address of control reg
jsr
TXD
lda
#$10
;send config data
jsr
TXD
jsr
STOP_SER
;stop serial transmission
*** Write Starting Time to DS1307
jsr
START_SER
;start serial transmission
lda
#DS1307_WRITE
;address the DS1307 device, write
jsr
TXD
lda
#SECONDS
;start address of DS1307
jsr
TXD
lda
#START_SECONDS
;write seconds
jsr
TXD
lda
#START_MINUTES
;write minutes
jsr
TXD
lda
#START_HOURS
;write hours
jsr
TXD
lda
#START_DAY
;write day
jsr
TXD
lda
#START_DATE
;write date
jsr
TXD
lda
#START_MONTH
;write month
jsr
TXD
lda
#START_YEAR
;write year
jsr
TXD
jsr
STOP_SER
;stop serial transmission
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24


датащи скачать

Go To PDF Page


ссылки URL



Вашему бизинису помогли Аллдатащит?  [ DONATE ] 

Что такое Аллдатащит   |   реклама   |   контакт   |   Конфиденциальность   |   Ссылка на техническое описание    |   обмен ссыками   |   поиск по производителю
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com