PRELIMINARY DS1065 EconOscillator/Divider www.dalsemi.com FEATURES § § § § § § § PIN ASSIGNMENT 30 kHz to 100 MHz output frequencies User-programmable on-chip dividers (from 1513) User-programmable on-chip prescaler (1, 2, 4) No external components ±0.5% initial tolerance ±3% variation over temperature and voltage Single 5V supply Dallas DS1065 1 2 3 1 2 3 FREQUENCY OPTIONS Part No. DS1065-100 DS1065-80 DS1065-66 DS1065-60 Max O/P freq. 100.000 MHz 80.000 MHz 66.667 MHz 60.000 MHz BOTTOM VIEW PIN DESCRIPTION TO-92 1 I/O 2 VCC 3 GND - Input/Output - Power Supply - Ground DESCRIPTION The DS1065 is a fixed frequency oscillator requiring no external components for operation. Numerous operating frequencies are possible in the range of approximately 30 kHz to 100 MHz through the use of an on-chip programmable prescaler and divider. The DS1065 features a master oscillator followed by a prescaler and then a programmable divider. The prescaler and programmable divider are user-programmable with the desired values being stored in nonvolatile memory. This allows the user to buy an off the shelf component and program it on site prior to board production. Design changes can be accommodated easily by simply programming different values into the device (or reprogramming previously programmed devices). The DS1065 is shipped from the factory configured for half the maximum operating frequency. Contact the factory for specially programmed devices. The DS1065 features a dual-purpose Input/Output pin. If the device is powered up in Program mode this pin can be used to input serial data to the on-chip registers. After a write command this data is stored in nonvolatile memory. When the chip is subsequently powered up in operating mode these values are automatically restored to the on-chip registers and the Input/Output pin becomes the oscillator output. The DS1065 is available in TO-92 (3 LEAD) package, allowing the generation of a clock signal easily, economically and using minimal board area. 1 of 10 011200 DS1065 BLOCK DIAGRAM Figure 1 PART NO. SUFFIX -100 -80 -66 -60 INTOSC FREQUENCY 100.000 MHz 80.000 MHz 66.667 MHz 60.000 MHz 2 of 10 DS1065 PIN DESCRIPTIONS Input/Output Pin (IN/OUT): This pin is the main oscillator output, with a frequency determined by clock reference, M and N dividers. Except in programming mode this pin is always an output and will be referred to as “OUT”. In programming mode this pin will be referred to as “IN”. USER-PROGRAMMABLE REGISTERS The following registers can be programmed by the user to determine device operating frequency and mode of operation. Details of how these registers are programmed can be found in a later section; in this section the function of the registers are described. The register settings are nonvolatile, the values being stored automatically in EEPROM when the registers are programmed. NOTE: The register bits cannot be used to make frequency changes on the fly. Changes can only be made by powering the device up in “Programming” mode. For them to be become effective the device must then be powered down and powered up again in “Operation” mode. For programming purposes the register bits are divided into two 9-bit words; the “MUX” word determines mode prescaler values and the “DIV” word sets the value of the programmable divider. MUX WORD Figure 2 (MSB) 0* (LSB) 0* 0* 1* 1* M MSEL DIV1 0* *These bits must be set to the indicated values DIV1 This bit allows the master clock to be routed directly to the output (DIV1=1). The N programmable divider is bypassed so the programmed value of N is ignored. The frequency of the output (fOUT) will be INTCLK or EXTCLK depending on which reference has been selected. If the Internal clock is selected the M prescaler is also bypassed (the bit values of MSEL and M are ignored), so in this case fOUT = INTOSC (which also equals MCLK and INTCLK). If DIV1=0 the prescaler and programmable divider function normally. MSEL This bit determines whether or not the M prescaler is bypassed. MSEL =1 will bypass the prescaler. MSEL =0 will switch in the prescaler (unless overridden by DIV1=1), with a divide-by number determined by the M bit. M This bit sets the divide-by number for the prescaler. M = 0 results in divide-by-4, M=1 results in divideby-2. The setting of this bit is irrelevant if either DIV1=1 or MSEL =1. Table 2 DIV1 BIT 0 0 0 MSEL BIT 0 0 1 M BIT 0 1 X OPERATION INTERNAL OSCILLATOR DIVIDED BY 4*N INTERNAL OSCILLATOR DIVIDED BY 2*N INTERNAL OSCILLATOR DIVIDED BY N 3 of 10 DS1065 1 X X INTERNAL OSCILLATOR DIVIDED BY 1 DIV WORD Figure 3 (MSB) (LSB) N (9-BITS) N These 9 bits determine the value of the programmable divider. The range of divisor values is from 2 to 513, and is equal to the programmed value of N plus 2: Table 3 BIT VALUES 000000000 000000001 . . . . . 111111111 DIVISOR (N) VALUE 2 3 . . . . . 513 POWER-ON RESET When power is initially applied to the device supply pin, a power-on reset sequence is executed, similar to that which occurs when the device is restored from a power-down condition. This sequence comprises two stages, first a conventional POR to initialize all on-chip circuitry, followed by a stabilization period to allow the oscillator to reach a stable frequency before enabling the output: 1. Initialize internal circuitry. 2. Enable internal oscillator. 3. Set M and N to maximum values. 4. Wait approximately 1024 cycles of INTOSC for the oscillator to stabilize. 5. Load M and N programmed values from EEPROM. 6. Enable OUT. Figure 10 4 of 10 DS1065 PROGRAMMING Normally when power is applied to the supply voltage pin the device will enter its normal operating mode, following the power-on reset sequence. However the device can be made to enter a programming mode if a pullup resistor is connected between IN/OUT and the supply voltage pin prior to power-up. The method used for programming is a variant of the 1-WireTM protocol used on a number of Dallas Semiconductor products. HARDWARE The hardware configuration is shown in the diagram. A bus master is used to read and write data to the DS1065’s internal registers. The bus master may have either an open-drain or TTL-type architecture. Figure 11 Programming mode is entered by simply powering up the DS1065 with a pullup of approximately 5kW. This will pull the IN/OUT pin above VIH on power-up and initiate the programming mode, causing the DS1065 to internally release the IN/OUT pin after t STAB and allow the pullup resistor to pull up the pin to the supply rail and await the Master Tx Reset pulse (see diagram). NOTE: To ensure normal operation any external pullup applied to IN/OUT must be greater than 20 kW in value. This will cause the IN/OUT pin to remain below VIH on power-up, resulting in normal operation at the end of tSTAB. 5 of 10 DS1065 Figure 12 TRANSACTION SEQUENCE The sequence for accessing the DS1065 via the 1-Wire port is as follows: Initialization Function Command Transaction/Data INITIALIZATION All transactions on the 1-Wire bus begin with an initialization sequence. The initialization sequence consists of a reset pulse transmitted by the bus master followed by a presence pulse(s) transmitted by the DS1065. The presence pulse lets the bus master know that the DS1065 is present and is ready to operate. Figure 13 FUNCTION COMMANDS Once the bus master has detected a presence, it can issue one of the four function commands. All Function Commands are 8 bits long, and are written lsb first. A list of these commands follows: Write DIV Register [01H] This command allows the bus master to write to the DS1065’s DIV register. Read DIV Register [A1H] This command allows the bus master to read the DS1065’s DIV register. 6 of 10 DS1065 Write MUX Register [02H] This command allows the bus master to write to the DS1065’s MUX register. Read MUX Register [A2H] This command allows the bus master to read the DS1065’s MUX register. TRANSACTION/DATA Immediately following the Function Command, the 9 data bits are written to or read from the DS1065. This data is written/read lsb first. The following diagrams illustrate the timing. Once data transfer is complete a new transaction sequence can be started by re-initializing the device. Therefore to program both the DIV and MUX registers two complete transaction sequences are required. READ/WRITE TIME SLOTS The definitions of write and read time slots are illustrated below. All time slots are initiated by the master driving the data line low. The falling edge of the data line synchronizes the DS1065 to the master by triggering a delay circuit in the DS1065. During write time slots, the delay circuit determines when the DS1065 will sample the data line. For a read data time slot, if a 0 is to be transmitted, the delay circuit determines how long the DS1065 will hold the data line low overriding the 1 generated by the master. If the data bit is a 1, the DS1065 will leave the read data time slot unchanged. WRITE 1 TIME SLOT Figure 14 60 ms ≤ tSLOT < 120 ms 1 ms ≤ tLOW1 < 15 ms 1 ms ≤ tREC < ∞ WRITE 0 TIME SLOT Figure 15 60 ms ≤ tLOW0 < tSLOT < 120 ms 1 ms ≤ tREC < ∞ 7 of 10 DS1065 READ DATA TIME SLOT Figure 16 60 ms ≤ tSLOT < 120 ms 1 ms ≤ tLOWR < 15 ms 0 ms ≤ tRELEASE < 45 ms 1 ms ≤ tREC < ∞ tRDV = 15 ms tSU < 1 ms RETURN TO NORMAL OPERATION When programming is complete, the DS1065 should be powered down. If the pullup resistor on the IN/OUT pin is removed, normal device operation will be restored next time power is applied. DEFAULT REGISTER VALUES Unless ordered from the factory with specific register program values, the DS1065 is shipped with the following default register values: DIV = 0 0000 0000 (Programmable divider will divide by two) MUX = 0 0011 0100 M = 4 (Ignored, see MSEL ) MSEL = 1 (M prescaler bypassed) DIV1 = 0 (N Dividers enabled) 8 of 10 DS1065 ABSOLUTE MAXIMUM RATINGS* Voltage on Any Pin Relative to Ground Operating Temperature Storage Temperature Soldering Temperature * -1.0V to +7.0V 0°C to 70°C -55°C to +125°C 260°C for 10 seconds This is a stress rating only and functional operation of the device at these or any other conditions above those indicated in the operation sections of this specification is not implied. Exposure to absolute maximum rating conditions for extended periods of time may affect reliability. DC ELECTRICAL CHARACTERISTICS PARAMETER Supply Voltage High-level Output Voltage (IN/OUT) Low-level Output Voltage (IN/OUT) High-level Input Voltage (IN/OUT) Low-level Input Voltage(IN/OUT) High-level Input Current Low-level Input Current Supply Current (Active) DS1065-100 DS1065-80 DS1065-66 DS1065-60 SYMBOL CONDITION VCC VOH IOH = -4 mA, VCC = MIN VOL IOL = 4 mA VIH (TA = 0°C to 70°C; VCC = 5V ± 5%) MIN TYP MAX UNITS 4.75 5 5.25 V 2.4 V 0.4 2 V VIL IIH IIL ICC VIH =2.4V, VCC = 5.25V VIL =0,VCC =5.25V CL= 15 pF 9 of 10 V 0.8 V 1 uA -1 uA 35 50 mA mA mA mA NOTES DS1065 AC ELECTRICAL CHARACTERISTICS PARAMETER Output Frequency Tolerance Combined Frequency Variation Power-Up Time Load Capacitance (IN/OUT) Output Duty Cycle IN/OUT OUT0 Jitter SYMBOL DfO DfO CONDITION VCC = 5V, TA =25°C Over temp and voltage (TA = 0°C to 70°C; VCC = 5V ± 5%) MIN TYP MAX -0.5 0 +0.5 % +3 % -3 UNITS NOTES tpor + tstab 0.1 1 ms 1 CL 15 2 pF 2 60 60 % % 100 pS 40 40 J 3 NOTES: 1. This is the time from when VCC is applied until the output starts oscillating. 2. Operation with higher capacitance loads may result in reduced output voltage and maximum operating frequency. 3. Parameter given is a typical max. 10 of 10