pc87591l-n05 National Semiconductor Corporation, pc87591l-n05 Datasheet - Page 321
![no-image](/images/no-image-200.jpg)
pc87591l-n05
Manufacturer Part Number
pc87591l-n05
Description
Lpc Mobile Embedded Controller
Manufacturer
National Semiconductor Corporation
Datasheet
1.PC87591L-N05.pdf
(401 pages)
- Current page: 321 of 401
- Download datasheet (2Mb)
Revision 1.2
Host-Controlled Modules and Host Interface
6.2.7
The time and calendar registers are updated once per second regardless of bit 7 (SET) of CRB register. Since the time and
calendar registers are updated serially, unpredictable results may occur if they are accessed during the update. Therefore,
it is essential to ensure that reading or writing to the time storage locations does not coincide with a system update of these
locations. There are several methods to avoid this contention.
Method 1
1. Set bit 7 of CRB register to 1. This takes a “snapshot” of the internal time registers and loads them into the user copy
2. Read or write the required registers (since bit 1 is set, the access is to the user copy registers). If a read operation is
3. Reset bit 1 to 0. During the transition, the user copy registers update the internal registers, using the double buffering
Method 2
1. Access the RTC registers after detection of an Update Ended interrupt. This implies that an update has just been com-
2. To detect an Update Ended interrupt, do one of the following:
Method 3
Poll bit 7 of CRA register. The update occurs 244 s after this bit goes high. Therefore, if a 0 is read, the time registers remain
stable for at least 244 s.
Method 4
Use a periodic interrupt routine to determine if an update cycle is in progress, as follows:
1. Set the periodic interrupt to the desired period.
2. Set bit 6 of CRB register to enable the interrupt from periodic interrupt.
3. Wait for the periodic interrupt to occur. This indicates that the period represented by the following expression remains
6.2.8
The timekeeping function can be set to generate an alarm when the current time reaches a stored alarm time. After each
RTC time update (every 1 second), the seconds, minutes, hours, date of month and month counters are compared with their
corresponding registers in the alarm settings. If equal, bit 5 of CRC register is set. Bit 5 of CRC is sent to the MSWC as an
alarm signal. If the Alarm Interrupt Enable bit was previously set (bit 5 of CRB register), interrupt request pin is also active.
Any alarm register may be set to “Unconditional Match” by setting bits 7-6 to ‘11’. This combination, not used by any BCD
or binary time codes, results in a periodic alarm. The rate of this periodic alarm is determined by the registers that were set
to “Unconditional Match”.
For example, if all but the seconds and minutes alarm registers are set to “Unconditional Match”, an interrupt is generated
every hour at the specified minute and second. If all but the seconds, minutes and hours alarm registers are set to “Uncon-
ditional Match”, an interrupt is generated every day at the specified hour, minute and second.
registers. The user copy registers are seen when accessing the RTC from outside and are part of the double buffering
mechanism. This bit may be kept set for up to 1 second, since the time/calendar chain continues to be updated once per
second.
performed, the information read is correct from the time bit 1 was set. If a write operation is performed, the write is only
to the user copy registers.
mechanism to ensure that the update is performed between two time updates. This mechanism enables new time pa-
rameters to be loaded in the RTC.
pleted, and 999 ms remain until the next update.
— Poll bit 4 of CRC register.
— Use the following interrupt routine:
until another update occurs:
[(Period of periodic interrupt 2) + 244 s]
a.
b.
c.
Updating
Alarms
Set bit 4 of CRB register.
Wait for an interrupt from interrupt pin.
Clear the IRQF flag of CRC register before exiting the interrupt routine.
321
(Continued)
www.national.com
Related parts for pc87591l-n05
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![pc87591l](/images/no-image3.png)
Part Number:
Description:
Lpc Mobile Embedded Controllers
Manufacturer:
National Semiconductor Corporation
Datasheet:
![PC875](/photos/7/69/76943/425-8-dip_tmb.jpg)
Part Number:
Description:
PHOTOCOUPLER 2CH OUT 8-DIP
Manufacturer:
Sharp Microelectronics
Datasheet:
![mma1270keg](/images/no-image3.png)
Part Number:
Description:
Freescale Semiconductor Technical Data
Manufacturer:
National Semiconductor Corporation
Datasheet:
![ADC12034](/images/no-image3.png)
Part Number:
Description:
Self-calibrating 12-bit Plus Sign Serial I/o A/d Converters With Mux And Sample/hold
Manufacturer:
National Semiconductor Corporation
Datasheet:
![LMX2350](/images/no-image3.png)
Part Number:
Description:
Pllatinum Tm Fractional N Rf / Integer N If Dual Low Power Frequency Synthesizer
Manufacturer:
National Semiconductor Corporation
Datasheet:
![LMX2324](/images/no-image3.png)
Part Number:
Description:
Pllatinum? 2.0 Ghz Frequency Synthesizer For Rf Personal Communications
Manufacturer:
National Semiconductor Corporation
Datasheet:
![LMX2301](/images/no-image3.png)
Part Number:
Description:
Pllatinumtm 160 Mhz Frequency Synthesizer For Rf Personal Communications
Manufacturer:
National Semiconductor Corporation
Datasheet:
![NDS8963](/images/no-image3.png)
Part Number:
Description:
Dual N-channel Enhancement Mode Field Effect Transistor
Manufacturer:
National Semiconductor Corporation
Datasheet:
![LM1201](/images/no-image3.png)
Part Number:
Description:
Video Amplifier System (obsolete)
Manufacturer:
National Semiconductor Corporation
Datasheet:
![LM3501TL-16](/images/no-image3.png)
Part Number:
Description:
Synchronous Step-up DC/DC Converter For White Led Applications
Manufacturer:
National Semiconductor Corporation
Datasheet:
![AD9621](/images/no-image3.png)
Part Number:
Description:
CLC420 - High Speed, Voltage Feedback op Amp, Package: Lcc, Pin Nb=20
Manufacturer:
National Semiconductor Corporation
Datasheet:
![LM2403](/images/no-image3.png)
Part Number:
Description:
Monolithic Triple 4.5 CRT Driver
Manufacturer:
National Semiconductor Corporation
Datasheet:
![LM592M](/images/no-image3.png)
Part Number:
Description:
Differential Video Amplifier
Manufacturer:
National Semiconductor Corporation
Datasheet:
![ADC10061](/images/no-image3.png)
Part Number:
Description:
ADC10061 - 10-Bit 600 NS A/D Converter With Input Multiplexer And Sample/Hold, Package: Soic Wide, Pin Nb=20
Manufacturer:
National Semiconductor Corporation
Datasheet:
![DS36277TMX](/images/no-image3.png)
Part Number:
Description:
DS36277 - Dominant Mode Multipoint Transceiver, Package: Soic Narrow, Pin Nb=8
Manufacturer:
National Semiconductor Corporation
Datasheet: