| поискавой системы для электроныых деталей |
|
MM58274C датащи(PDF) 8 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
MM58274C датащи(HTML) 8 Page - National Semiconductor (TI) |
|
8 / 16 page ![]() Functional Description (Continued) Control Register There are three registers which control different operations of the clock a) the clock setting register b) the interrupt register c) the control register The clock setting and interrupt registers both reside at ad- dress 15 access to one or the other being controlled by the interrupt select bit data bit 1 of the control register The clock setting register programs the timekeeping of the clock The 1224-hour mode select and the AMPM indica- tor for 12-hour mode occupy bits 0 and 1 respectively Data bits 2 and 3 set the leap year counter The interrupt register controls the operation of the interrupt timer selecting the required delay period and either single or repeated interrupt The control register is responsible for controlling the opera- tions of the clock and supplying status information to the processor It appears as two different registers one with write only access and one with read only access The write only register consists of a bank of four latches which control the internal processes of the clock The read only register contains two output data latches which will supply status information for the processor Table III shows the mapping of the various control latches and status flags in the control register The control register is located at address 0 The write only portion of the control register contains four latches A logic 1 written into the test bit puts the device into test mode This allows setting of the oscillator frequency as well as rapid testing of the device registers if required A more complete description is given in the Test Mode section For normal operation the test bit is loaded with logic 0 The clock startstop bit stops the timekeeping of the clock and resets to 0 the tenths of seconds counter The time of day may then be written into the various clock registers and the clock restarted synchronously with an external time source Timekeeping is maintained thereafter A logic 1 written to the startstop bit halts clock timing Tim- ing is restarted when the startstop bit is written with a logic 0 The interrupt select bit determines which of the two regis- ters mapped onto address 15 will be accessed when this address is selected A logic 0 in the interrupt select bit makes the clock setting register available to the processor A logic 1 selects the interrupt register The interrupt startstop bit controls the running of the inter- rupt timer It is programmed in the same way as the clock startstop bit logic 1 to halt the interrupt and reset the tim- er logic 0 to start interrupt timing When no interrupt is programmed (interrupt control register set to 0) the interrupt startstop bit is automatically set to a logic 1 When any new interrupt is subsequently pro- grammed timing will not commence until the startstop bit is loaded with 0 In the single interrupt mode interrupt timing stops when a timeout occurs The processor restarts timing by writing log- ic 0 into the startstop bit In repeated interrupt mode the interrupt timer continues to count with no intervention by the processor necessary Interrupt timing may be stopped in either mode by writing a logic 1 into the interrupt startstop bit The timer is reset and can be restarted in the normal way giving a full time delay period before the next interrupt In general the control register is set up such that writing 0’s into it will start anything that is stopped pull the clock out of test mode and select the clock setting register onto the bus In other words writing 0 will maintain normal clock operation and restart interrupt timing etc The read only portion of the control register has two status outputs Since the MM58274C keeps real time the time data changes asynchronously with the processor and this may occur while the processor is reading time data out of the clock Some method of warning the processor when the time data has changed must thus be included This is provided for by the data-changed flag located in bit 3 of the control register This flag is set by the clock setting pulse which also clocks the time registers Testing this bit can tell the processor whether or not the time has changed The flag is cleared by a read of the control register but not by any write operations No other register read has any effect on the state of the data-changed flag Data bit 0 is the interrupt flag This flag is set whenever the interrupt timer times out pulling the interrupt output low In a polled interrupt routine the processor can test this flag to determine if the MM58274C was the interrupting device This interrupt flag and the interrupt output are both cleared by a read of the control register TABLE III The Control Register Layout Access (addr0) DB3 DB2 DB1 DB0 Read From Data-Changed Flag 0 0 Interrupt Flag Write To Test Clock StartStop Interrupt Select Interrupt StartStop 0 e Normal 0 e Clock Run 0 e Clock Setting Register 0 e Interrupt Run 1 e Test Mode 1 e Clock Stop 1 e Interrupt Register 1 e Interrupt Stop 8 |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю All Rights Reserved©Alldatasheet.com |
| 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 |