V3020 ETC
Document overview
- Manufacturer or author: Provided By www.digicamel.com(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 14
Technical content
Features
nSupply current typically 390 nA at 3 V 50 ns access time with 50 pF load capacitance Fully operational from 1.2 V to 5.5 V No busy states or danger of a clock update while accessing Serial communication on one line of a standard parallel data bus or over a conventional 3 wire serial interface Interface compatible with both Intel and Motorola Seconds, minutes, hours, day of month, month, year, week day and week number in BCD format Leap year and week number correction Time set lock mode to prevent unauthorized setting of the current time or date Oscillator stability 0.3 ppm / volt No external capacitor needed Frequency measurement and test modes o Temperature range -40 to +85 C TSSO8 and SO8 packages n n n n n n n n n n n n o nOn request extended temperature range, -40 to +125 C nPin compatible with the V3021 n
Description
The V3020 is a low power CMOS real time clock. Data is transmitted serially as 4 address bits and 8 data bits, over one line of a standard parallel data bus. The device is accessed by chip select (CS) with read and write control timing provided by either RD and WR pulse (Intel CPU) or DS with advanced R/W (Motorola CPU). Data can also be transmitted over a conventional 3 wire serial interface having CLK, data I/O and strobe. The V3020 has no busy states and there is no danger of a clock update while accessing. Supply current is typically 390 nA at V = 3.0 V. Battery operation is supported by complete DD functionality down to 1.2 V. The oscillator stability is typically 0.3 ppm/V. Ultra Low Power 1-Bit 32 kHz RTC Typical Operating Configuration WR or R/W RD or DS I/O Address Bus Data Bus XI XOWR WR RD RD CS CS CPU Address Decoder V3020 RAM Fig. 1 Pin Assignment S08 Fig. 2 TSSO8 XI XO CS VSS VDD WR RD I/O V3020 V3020 RD I/O VSS CS WR VDD XI XO EM MICROELECTRONIC-MARIN SA V3020 R
Electrical Characteristics
Stresses above these listed maximum ratings may cause permanent damage to the device. Exposure beyond specified operating conditions may affect device reliability or cause malfunction. This device has built-in protection against high static voltages or electric fields; however, it is advised that normal precautions Table 21) The maximum operating temperature is confirmed by sampling at initial device qualification. In production, all o devices are tested at +85 C. On request devices tested ato +125 C can be supplied.2) See Fig. 5 Absolute Maximum Ratings Table 1 Parameter Maximum voltage at VDD Minimum voltage at VDD Maximum voltage at any signal pin Minimum voltage at any signal pin Maximum storage temperature Minimum storage temperature Electrostatic discharge maximum to MIL-STD-883C method 3015 Maximum soldering conditions VDDmax VDDmin Vmax Vmin TSTOmax TSTOmin VSmax TSmax V + 7.0V SS V - 0.3V SS V - 0.3V SS V + 0.3V DD O +150 C O -65 C 1000V O
250 C x 10s
be taken as for any other CMOS component. Unless otherwise specified, proper operation can only occur when all terminal voltages are kept within the supply voltage range. Unused inputs must always be tied to a defined logic voltage level. Operating Conditions TA -40 1.2 5.0 +125 O C V V/ms nF kHz pF kW 5.5 100 32.768 8.2 VDD CL RS f Parameter Symbol Min. Typ. Max. Units Operating temperature Logic supply voltage Supply voltage dv/dt (power-up & power-down) Decoupling capacitor Crystal Characteristics2) Frequency Load capacitance Series resistance O V = 5.0V ± 10%, V = 0 V and T = -40 to +85 C, unless otherwise specifiedDD SS A Total static supply Total static supply Dynamic current Input / Output Input logic low Input logic high Output logic low Output logic high Input leakage Output tri-state leakage on I/O pin Oscillator Starting voltage Input capacitance on XI Output capacitance on XO Start-up time Frequency stability Frequency Measurement Mode Current source on I/O pin pulsed on/off @ 256 Hz ISS ISS ISS VIL VIH VOL VOH IIN ITS VSTA CIN COUT TSTA Df/f IONF all outputs open, all inputs at VDD V = 3.0 V, address 0 = 0DD o T = 0 to +70 CA 3.5 390 600 nA nA mA V V V V mA mA V pF pF s ppm/V mA 800 300 1.0 0.4 0.5 460 0.1 0.1 0.3 2.4 1.2 all outputs open, all inputs at VDD, V = 5 V, address 0 = 0DD o T = 0 to +70 CA O T = +25 CA O T = +25 CA O 1.5 £ V £ 5.5 V, T = +25 CDD A Table 3 Parameter Symbol Test Conditions Min. Typ. Max. Unit CS high, addr.0, bit 0, high V = 1 VI/O I = 4 mAOL I = 4 mAOH 0.0 < V < 5.0 VIN CS high, and address 0, bit 0, low I/O to V through 1MWSS RD = V , WR = V ,SS DD CS = 4 MHz address 0 = 0, read all 0 490 nA 600 nA V3020 R
The V3020 will run slightly too fast, in order to allow the user to adjust the frequency, depending on the mean operating temperature. This is made since the crystal adjustment can only work by lowering the frequency with an added capacitor between XO and V . The printed circuit capacitance has also SS to be taken in consideration. The V3020 in DIL 8 package, running with an 8.2 pF crystal at room temperature, will be adjusted to better than ±1 s/day with a 6.8 pF capacitor. Typical Standby Current at V = 3 VDD 510 490 470 450 430 410 390 370 350 -50 -30 -10 +10 T [ C]A Fig. 3a I [nA]SS +30 +50 +70 +90 Typical Standby Current at V = 3 V and Extended TemperatureDD 4.00 3.50 3.00 2.50 2.00 1.50 1.00 0.50 0.00 -50 -30 -10 +10 +30 +50 +70 +90 +110 +130 T [ C]A Fig. 3b I [mA]SS V3020 R
Typical Standby Current at V = 5.5 VDD 750 700 650 600 550 500 450 400 -50 -30 -10 +10 O T [C ]A Fig. 4a I [nA] SS +30 +50 +70 +90 Typical Standby Current at V = 5.5 V and Extended TemperatureDD 6.00 5.00 4.00 3.00 2.00 1.00 0.00 -50 -30 -10 +10 +30 +50 +70 +90 +110 +130 O T [C ]A Fig. 4b I [mA]SS V3020 R
Typical Frequency on I/O Pin +80 +30 -20 -70 -120 -170 s/dayAddress 10 hex = 00 hex Quartz with 8.2 pF load capacitance External trimming capacitor between X and V [pF]OS SO T [C ]A Typical drift for ideal 32'768 Hz quartz Note : The trimming capacitor value must not exceed 15 pF. Greater values may disturb the oscillator function. Fig. 5 -50 -30 -10 +10 30 50 70 90 0 3 6 9 12 15 [ppm]DF Fo Quartz Characteristics = the ratio of the change in frequency to the nominal value expressed in ppm (It can be thought of as the frequency deviation at any temperature.) o = the temperature of interest in C o = the turnover temperature (25 ± 5 C) To determine the clock error (accuracy) at a given temperature, add O the frequency tolerance at 25 C to the value obtained from the formula above. Fig. 6 [ppm] -100 -200 -300 -400 T - 100 O T- 50O O Temperature [ C] O T [ C] TO T +50 O T +100O DF Fo DF Fo ppm C=-0.038 2 (T - T ) ±10%O DF/Fo T TO Frequency ratio [ppm] m in.max. V3020 R
V = 0 V, and T = - 40 to + 85 C, unless otherwise specifiedSS A t starts from RD or CS, whichever activates lastACC Typically, t = 5 + 0.9 C in ns; where C (external parasitic capacitance) is in pFACC EXT EXT CS, RD, DS, WR and R/W rise and fall times are specified by t and tRF t starts from RD or CS, whichever deactivates firstDF t ends at WR or CS, whichever deactivates firstDW t starts from WR or CS, whichever deactivates firstDH t starts from WR or CS, whichever activates last and ends at WR or CS, whichever deactivates firstWC tCS tACC tW tR tF tDF tDW tDH tADW tWC 500 500 120 500 Table 4 100 ns ns ns ns ns ns ns ns ns ns 200 200 300 200 200 200 Write cycle C = 50pFLOAD Chip select duration1) RAM access time Time between two transfers Rise time2) Fall time Data valid to Hi-impedance4) Write data settle time5) Data hold time Advance write time6) Write pulse time V ³ 2 VDD V = 5.0 V ± 10% DD Timing Waveforms Read Timing for Intel (RD and WR Pulse) and Motorola (DS (or RD pin tied to CS) and R/W) Fig. 7a CS tCS tACC tDF tW tR tF RD / DS WR / R/W I/O data valid Write Timing for Intel ( and WR Pulse)RD Fig. 7b CS tCS tW tWC tDW tDH RD WR I/O data valid V3020 R
mP writes 4 address bits mP reads 8 data bits A0 A1 A2 A3 D0 D1 D7 Fig. 8a Communication Cycles Read Data Cycle for Intel (RD and WR Pulse) CS RD “ 1” “ 0” WR I/O mP writes 4 address bits mP reads 8 data bits A0 A1 A2 A3 D0 D1 D7 Fig. 8c Write Data Cycle for Intel (RD and WR Pulse) CS DS R/W I/O mP writes 4 address bits mP reads 8 data bits A0 A1 A2 A3 D0 D1 D7 Fig. 8b Read Data Cycle for Motorola (DS (or RD Pin Tied to CS) and R/W) Write Timing for Motorola (DS (or RD pin tied to CS) and R/W) CS DS R/W I/O tADW tDW tCS tW tDH Fig. 7cdata valid V3020 R
Write Data Cycle for Motorola (DS (or RD Pin Tied to CS) and R/W) CS DS R/W I/O mP writes 4 address bits mP writes 8 data bits A0 A1 A2 A3 D0 D1 D7 Fig. 8d Address Command Cycle for Motorola (DS (or RD Pin Tied to CS) and R/W) Address Command Cycle for Intel (RD and WR Pulse) CS DS R/W I/O mP writes 4 address bits A0 A1 A2 A3 Fig. 8f CS RD WR I/O mP writes 4 address bits A0 A1 A2 A3 Fig. 8e “0” “1” Block Diagram XI Oscillator and Divider Chain 1Hz Tue 2 Mon 1 Copy_RAM_to_clock Copy_clock_to_RAM data addr Write Read E F Status 0 Status 1 XO Clock (reserved area) RAM (user RAM area) RDI/O Serial Buffer & Decoder WRCS Fig. 9 mEM mEM V3020 R
The V3020 resides on the parallel data and address buses as a standard peripheral (see Fig. 15 and 16). Address decoding provides an active low chip select (CS) to the device. For Intel compatible bus timing the control signals RD and WR pulse and CS are used for a single bit read or write (see Fig. 7a and 7b). Two options exist for Motorola compatible bus timing. The first is to use the control signals DS with R/W and CS, the second is to tie the RD input to CS and use the control signals R/W and CS (see Fig. 7a and 7c). Data transfer is accomplished through a single input / output line (I/O). Any data bus line can be chosen. A conventional 3 wire serial interface can also be used to communicate with the V3020 (see Fig. 17). Communication Cycles The V3020 has 3 serial communication cycles. These are : 1) Read data cycle 2) Write data cycle 3) Address command cycle A communication cycle always begins by writing the 4 address bits, A0 to A3. A microprocessor read from the V3020 cannot begin a communication cycle. Read and write data cycles are similar and consist of 4 address bits and 8 data bits. The 4 address bits, A0 to A3, define the RAM location and the 8 data bits D0 and D7, provide the relevant information. An address command cycle consists of only 4 address bits. Read Data Cycle A read data cycle commences by writing the 4 RAM address bits (A3, A2, A1 and A0) to the V3020. The LSB, A0, is transmitted first (see Fig. 8a and 8b). Eight microprocessor reads from the V3020 will read the RAM data at this address, beginning with the LSB, D0. The read data cycle finishes on reading the 8th data bit, D7. Write Data Cycle A write data cycle commences by writing the 4 RAM address bits (A3, A2, A1 and A0) to the V3020. The LSB, A0, is transmitted first (see Fig. 8c and 8d). Eight microprocessor writes to the V3020 will write the new RAM data. The LSB, D0, is loaded first. The write data cycle finishes on writing the 8th data bit, D7. Address Command Cycle An address command cycle consists of just 4 address bits. The LSB, A0, is transmitted first (see Fig. 8e and 8f). On writing the fourth address bit, A3, the address will be decoded. If the address bits are recognized as one of the command codes E hex or F hex (see T able 6), then the communication cycle is terminated and the corresponding command is executed. Subsequent microprocessor writes to the V3020 begin another communication cycle with the first bit being interpreted as the address LSB, A0. Clock Configuration The V3020 has a reserved clock area and a user RAM area (see Fig. 9). The clock is not directly accessible, it is used for internal time keeping and contains the current time and date. The contents of the RAM is shown in Table 6, it contains a data space and an address command space. The data space is directly accessible. Addresses 0 and 1 contain status information ( see Tables 7a and 7b), addresses 2 to 5, time data, and addresses 6 to 9, date data. The address command space is used to issue commands to the V3020. RAM Map Commands Two commands are available (see T able 6). The Copy_RAM_to_clock command is used to set the current time and date in the clock and the Copy_clock_to_RAM command to copy the current time and date from the clock to the RAM. The Copy_RAM_to_clock command, address data E hex, causes the clock time and date to be overwritten by the time and date stored in the RAM at addresses 2 to 9. Address 1 is also cleared (see section “Time and Date Status Bits”). Prior to using this command, the desired time and date must be loaded into the RAM using write data cycles and the time set lock bit, address 0, bit 7, must be clear (see section “Time Set Lock”). Table 6 E F Status 0 Status 1 Seconds Minutes Hours Day of month Month Year Week day Week number Copy_RAM_to_clock Copy_clock_to_RAM 00-59 00-59 00-23 01-31 01-12 00-99 01-07 00-52 Parameter BCD rangeDec Hex Address Data Space Address Command Space Pin Description Table 5 Pin XI XO CS VSS I/O RD WR VDD 32 kHz crystal input 32 kHz crystal output Chip select input Ground supply Data input and output Intel RD, Motorola DS (or tie to CS) Intel WR, Motorola R/W Positive supply Name Function SO8 TSSO8 V3020 R
The RAM addresses 0 and 1 contain status and control data for the V3020. The function of each bit (0 and 7) within address locations 0 and 1 is shown in Tables 7a and 7b respectively. Reset and Initialization Upon microprocessor recovery from a system reset, the V3020 must be initialized by software in order to guarantee that it is expecting a communication cycle (i.e the internal serial buffer is waiting for the address bit A0). Software can initialize the V 3020 to expect a communication cycle by executing 8 microprocessor reads (see Fig. 10). Initializing Access to the V3020 On first startup or whenever power has failed (V < 1.2 V) the DD status register 0 and the clock must be initialized by software. Having initialized the interface to expect the address bit A0, write 0 to status register 0, then set the clock (see section “Clock and Calendar”). Time and Date Status Bits There are time and date status bits at address 1 in the RAM. Upon executing a Copy_clock_to_RAM command, the time and date status bits in the RAM show which time and date parameters changed since the last time this command was used. A logic 1 in the seconds status bit (address 1, bit 0) in the RAM indicates that the seconds location in the RAM (address 2) changed since the last Copy_clock_to_RAM command and thus needs to be read. The seconds location must change before any other time or date location can change. If the seconds status bit is clear, then no time or date location changed since the last Copy_clock_to_RAM command and so the RAM need not to be read by software. Table 7b shows the seconds, minutes, hours, day of the month, month, year, week day, and week number status bit locations. They are set or cleared similar to the seconds location. It should be noted that if the minutes status bit is clear, then the seconds bit may be set, but all other status bits are clear. Similarly with hours, the bits representing the units less than hours may have been set, but the bits for the higher units will be clear. This rule holds true for the week day or day of month locations also. The time and date status bits can be used to drive software routines which need to be executed every - second, - minute, - hour, - day of month / week day, - month, - year, or - week. In this application it is necessary to poll the V 3020 at least once every time interval used as it does not generate an interrupt. Upon executing a Copy_RAM_to_clock command, the time and date status bits in the RAM are cleared. Time Set Lock The time set lock control bit is located at address 0, bit 4 (see Table 7a). When set by software, the bit disables the Copy_RAM_to_clock command (see section “Commands”.) A set bit prevents unauthorized overwriting of the current time and date in the clock. Clearing the time set lock bit by software will re-enable the Copy_RAM_to_clock command. On first startup or whenever power has failed (V < 1.2 V), the time set lock bit DD must be setup by software. Status Word Table 7a Status 0 - address 0 Read / Write bits Frequency Measurement Mode Reserved Test Mode 0 Test Mode 1 Time Set Lock Reserved Reserved Reserved 0 - inactive 1 - active7 6 5 4 3 2 1 0 Table 7b Status 1 - address 1 Read ONLY bits Seconds Minutes Hours Day of month Month Year Week day Week number 0 - No change from last Copy_clock_to_RAM 1 - Change from last Copy_clock_to_RAM 7 6 5 4 3 2 1 0 CS RD WR I/O mP reads 8 times D0 D1 D7 Fig. 10 V3020 R
The Time and date addresses in the RAM (see Table 6) provide access to the seconds, minutes, hours, day of month, month, year, week day, and week number. These parameters have the ranges indicated on T able 6 and are in BCD format. If a parameter is found to be out of range, it will be cleared on its being next incremented. The V3020 incorporates leap year correction and week number calculation. The week number changes only at the incrementation of the day number from 7 to 1. If week 52 day 7 falls on the 25th, 26th or 27th of December, then the week number will change to 0 otherwise it will be week 1. Week days are numbered from 1 to 7 with Monday as 1. Reading of the current time and date must be preceded by a Copy_clock_to_RAM command. The time and date status bits will indicate which time and date addresses changed since the last time the command was used (see Fig. 11). The time and date from the last Copy_clock_to_RAM command is held unchanged in the RAM, except when power (V ) has failed DD totally. To change the current time and date in the clock, the desired time and date must first be written to the RAM, the time set lock bit cleared, and then a Copy_RAM_to_clock command sent (see Fig. 12). The time set lock bit can be used to prevent unauthorized setting of the clock. Frequency Measurement Setting bit 0 at address 0 will put a pulsed current source (25 mA) onto the I/O pin, when the device is not chip selected (i.e. CS input high). The current source will be pulsed on/off at 256 Hz. The period for ±0 ppm time keeping is 3.90625 ms. To measure the frequency signal on pin I/O, the data bus must be high impedance. The best way to ensure this is to hold the microprocessor and peripherals in reset mode while measuring the frequency. The clarity of the signal measured at pin I/O will depend on both the probe input impedance (typically 1 M W) and the magnitude of the leakage current from other devices driving the line connected to pin I/O. If the signal measured is unclear, put a 200 kW resistor from pin I/O to V . It should be SS noted that the magnitude of the current source (25 mA) is not sufficient to drive the data bus line in case of any other device driving the line, but it is sufficient to take the line to a high logic level when the data bus is in high impedance. Use a crystal of nominal C = 8.2 pF as specified in the section L “Operating Conditions”. The MX series from Microcrystal is recommended. The accuracy of the time keeping is dependent upon the frequency tolerance and the load capacitance of the crystal. 11.57 ppm corresponds to one second a day. Setting the Current Time and Date Fig. 12 Write seconds, minutes, hours, day of month, week day, month, year and week number to the RAM Clear the time set lock bit, addr. 0, bit 4 Send copy_RAM_to_clock command, addr. E hex Set the time set lock bit, addr. 0, bit 4 Reading the Current Time and Date Fig. 11 Send copy_clock_to_RAM addr. F hex Read time and data status bits, addr. 1 Is the seconds status bit set, addr. 1, bit 0 No Yes Current time and date Read seconds, addr. 2 Is the minutes status bit set, addr. 1, bit 1 Similar for hours, day of month, week day, month, year and week number Read minutes addr. 3 Yes No V3020 R
From the various test features added to the V 3020 some may be activated by the user. T able 7a shows the test mode bits. Table 8 shows the 3 available test modes and how they can be activated. Test mode 0 is activated by setting bit 2, address 0, and causes all time keeping to be accelerated by 32. Test mode 1 is activated by setting bit 3, address 0, and causes all the time and date locations, address 2 to address 9, to be incremented in parallel at 1 Hz with no carry over (independent of each other). The third test mode combines the previous two resulting in parallel incrementing at 32 Hz. An external signal generator can be used to drive the divider chain of the V3020. Fig. 13a and 13b show how to connect the signal generator. The speed can be increased by increasing the signal generator frequency to a maximum of 128 kHz. An external signal generator and test modes can be combined. To leave test both test bits (address 0, bits 2 and 3) must be cleared by software. Test corrupts the current time and date and so the time and date should be reloaded after a test session. Note : The peak value of the signal provided by the signal generator should not exceed 1.5 V on XO. Access Considerations The section “Communication Cycles” describes the serial data sequences necessary to complete a communication cycle. In common with all serial peripherals, the serial data sequences are not re-entrant, thus a high priority interrupt, or another software task, should not attempt to access the V3020 if it is already in the middle of a cycle. A semaphore (software flag) on access would allow the V3020 to be shared with other software tasks or interrupt routines. There is not time limit on the duration of a communication cycle and thus interrupt routines (which do not use the V3020) can be fully executed in mid cycle without any consequences for the V3020. Note : The peak value of the signal provided by the signal generator should not exceed 1.5 V on XO. Crystal Layout In order to ensure proper oscillator operation we recommend the following standard practices. - Keep traces as short as possible. - Use a guard ring around the crystal. Fig. 14 shows the recommended layout. Test Modes Table 8 Addr. 0 bit 3 Addr. 0 bit 2 Normal operation All time keeping accelerated by 32 Parallel increment of all time data at 1 Hz with no carry over Parallel increment of all time data at 32 Hz with no carry over Function 0 - 5.5 V XI XO V30201) 100 k W 36 k W indicative values Fig. 13b VSS Oscillator Layout XI XO Vss CS Fig. 14 V3020 Signal Generator Connection 1 - 1.5 V Fig. 13a VSS XI XO V3020 peak to peak V3020 R
V3020 Interfaced with Intel CPU (RD/WR Pulse) Fig. 15 8088 WR RD BUS A/D 0-7 BUS ADDRESS A8-A15 Decoder CS RD WR I/O V3020 to other peripherals and memory V3020 Interfaced with Motorola CPU (Advanced R/W) Fig. 16 68000 R/W LDS BUS A/D 0-7 BUS ADDRESS A8-A15 Decoder CS RD WR I/O V3020 to other peripherals and memory
3 Wire Serial Interface
Fig. 17 1) With strobe low bits are written to the V3020, and with strobe high bits are read from the V 3020 2) For serial ports with byte transfer only, an address command cycle should be combined with every data cycle to give 8 address bits and 8 data bits. For example to read the current minutes, write address data F + 3 (1111 + 0011) and then read 8 data bits. CS CS mP mP I/O RD RD V3020 V3020 CLK Port A.0 Port A.1 Port A.2 DATA WR I/O WR Strobe 1) & 2) VSS V3020 R
Ordering Information
The V3020 is available in the following package : SO8 plastic package V3020 8S TSSO8 plastic package V3020 8TSS When ordering, please specify the complete part number. Battery Switch Over Circuit V3020 R D0 of data bus VSS VDD I/OCS Motorola BS107A or 3N171 V3020 3 V+ BAT85* BAT85* +5V +5V 1MW Fig. 18 * Use Schottky barrier diodes. The BAT85 has a typical V of F 250 mV at an I of 1 mA.F The reverse current is typically 200 nA at a V of 5 V. The reverse, R recovery time is 5 ns. For surface mount applications use the Philips BAT17 in SOT-23 or other. VDD VDD1 CS RES V3020 V69311MW VBAT VDD2 PFO VOUT VSS 3.6 V+ vcc -- V can be connected to VDD2 DD1 -- RES is higher level detection (e.g.: 4.0 V) -- PFO is lower level detection (V lower than V ).DD1 BAT e.g. VSS VSS EM Microelectronic-Marin SA cannot assume responsibility for use of any circuitry described other than circuitry entirely embodied in an EM Microelectronic-Marin SA product. EM Microelectronic-Marin SA reserves the right to change the circuitry and specifications without notice at any time. You are strongly urged to ensure that the information given has not been superseded by a more up-to-date Ó 2000 EM Microelectronic-Marin SA, 10/00, Rev. C/329