Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

AN1759 Datasheet(PDF) 13 Page - Freescale Semiconductor, Inc

Part # AN1759
Description  Add a Non-Volatile Clock to the MC68HC705J1A
PDF  24 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

AN1759 Datasheet(HTML) 13 Page - Freescale Semiconductor, Inc

Back Button AN1759 Datasheet HTML 9Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 10Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 11Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 12Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 13Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 14Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 15Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 16Page - Freescale Semiconductor, Inc AN1759 Datasheet HTML 17Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 13 / 24 page
background image
Application Note
MC68HC705J1A Software Interface
AN1759
13
MC68HC705J1A Software Interface
I/O driving or manipulation is the process of toggling I/O pins with
software instructions to create a certain hardware peripheral. The HC05
CPU provides special instructions specifically to manipulate single
I/O pins.
Five subroutines were created to provide an easy application
programming interface (API). These routines are:
• START_SER — Sends out a start condition on the bus
• STOP_SER — Sends out a stop condition on the bus
• TXD — The master takes the contents of AccA and transmits it
MSB first to the DS1307. The master also checks for
acknowledgement from the DS1307.
• RXD — After the master addresses the DS1307 with its
identification code and the read bit, the DS1307 transmits a byte
of data back to the master. This routine reads that byte and puts it
into AccA. The master also generates an acknowledgment back to
the DS1307.
• RXD_LAST — This routine is just like RXD but it is used for the
last byte read from the DS1307. It does not generate an
acknowledgment back to the DS1307.
The flowcharts for the DS1620 serial I/O drivers are shown in
Flowcharts for the Test Interface
. These routines were written
especially for the DS1307 and may not be able to properly drive other
MCU peripherals with 2-wire serial buses.
A typical application would use the SQW/OUT pin on the DS1307. When
configuring this pin for a 1-Hz signal, feed the signal to the IRQ pin of an
MCU. An interrupt routine can be created to read the contents of the
DS1307 every time a 1-Hz signal hits the IRQ pin. This should take
minimal CPU bandwidth and provide the user an easy way to retrieve
time and date information.
The main test routine was written to verify the bus interface between the
DS1307 and the J1A. It writes a known date and time into the DS1307
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


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
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