Download Print this page

Lucid Technologies CK3-1 User Manual

Clock & thermometer board

Advertisement

Quick Links

USER'S MANUAL
VERSION 0.8
03 January, 2010
for
CK3-1 CLOCK & THERMOMETER BOARD
Lucid Technologies
http://www.lucidtechnologies.info/
Email: info@lucidtechnologies.info
Copyright (C) 2009 by Lucid Technologies
All rights reserved
The information in this manual has been carefully checked and is believed to be accurate.
However, Lucid Technologies makes no warranty for the use of its products and assumes no
responsibility for any errors which may appear in this document. Lucid Technologies reserves the
right to make changes in the products contained in this manual in order to improve design or
performance and to supply the best possible product. Lucid Technologies assumes no liability
arising out of the application or use of any product or circuit described herein; neither does it
convey any license under its patent rights, nor the rights of others.
(C) Lucid Technologies
1

Advertisement

loading
Need help?

Need help?

Do you have a question about the CK3-1 and is the answer not in the manual?

Questions and answers

Summary of Contents for Lucid Technologies CK3-1

  • Page 1 The information in this manual has been carefully checked and is believed to be accurate. However, Lucid Technologies makes no warranty for the use of its products and assumes no responsibility for any errors which may appear in this document. Lucid Technologies reserves the right to make changes in the products contained in this manual in order to improve design or performance and to supply the best possible product.
  • Page 2 Appendix B CK3 Board Layout Appendix C Chassis Parts List Appendix D Chassis Details Appendix E RS-232 Serial Interface Connector Appendix F RS-232 Communications Setup Appendix G MIDI Current-loop Interface Connector Appendix H References Appendix I Schematics (C) Lucid Technologies...
  • Page 3 (UART), and 16 multi-functional input/output (I/O) lines. Lucid Technologies standard software for the CK3 sets the internal oscillator to 4 MHz. The PIC operates at one-fourth of the oscillator frequency or 1 MHz. The 1 MHz operating frequency is provided at the RA6 test point - see Appendix B.
  • Page 4 PIC. When Alarm_Gate is logic-0 both terminals of the speaker are driven to logic- 1, thus there is no differential voltage across the speaker to be heard as noise. Lucid Technologies standard software for the CK3 turns on the Alarm_Gate whenever the alarm is sounding.
  • Page 5 4 MHz, the direction of the I/O ports is set, the TMR1 overflow interrupt is set to 7.629 Hz, the DB1 display controller and RTC chip are initialized, then the TMR1 overflow interrupt is enabled. The label LOOP is the top of the main program loop. The program reads RB6 to see if RTS (C) Lucid Technologies...
  • Page 6 When the CK3 is connected via J2 to host computer running a terminal program setup as shown in Appendix F, the clock display will blank and the following menu should appear in the host computer’s terminal window. Lucid Technologies - Clock3 Firmware B.03 1 Set alarm 1...
  • Page 7 Alarm2 = 19:05:00 Time display selected 24 hour display selected Fahrenheit display selected 2400 baud Option 7 is selected to terminate host communications. The normal clock display will return after the RS-232 cable is disconnected. 4.0 Operation (C) Lucid Technologies...
  • Page 8 The AM and PM indicators are Figure 4.2 Annunciator LED definitions. not used for the 24 hour display format. The alarm indicators are on continuously whenever their respective alarm is enabled. The alarm indicators blink whenever their respective alarm is being set. (C) Lucid Technologies...
  • Page 9 ____ U3 16-pin DIP. ____ U4 16-pin DIP. ____ U5 14-pin DIP. ____ U6 14-pin DIP. ____ U7 16-pin DIP. ____ U8 16-pin DIP. Insert and solder the following components. ____ R1 1.0 ohm, 0.25W, 5% (brown-black-gold-gold) (C) Lucid Technologies...
  • Page 10 ____ Secure Y1 with a clipped lead wire over the crystal can. ____ L1 150uH inductor ____ P1 piezoelectric speaker ____ U9 DS18S20 in TO-92 package ____ J1 DC power jack ____ J2 DB9 female ____ J3 DIN-5 receptacle ____ J5 3x2 jumper header (C) Lucid Technologies...
  • Page 11 ____ 5x2 option header The CK3-1 printed circuit board has one small omission. Pin 5 on connector J2 was not grounded. On the bottom side of the board solder a short insulated wire between J2 pin 5 and the grounded mounting pad for J2 as shown in Figure 5.1...
  • Page 12 Appendix C for suggested switches. Temporarily place the CK3 and DB1 in the bottom half of the case so you can measure clearances. After marking the switches’ locations on the top, drill the required size mounting holes for the switches you are using. Securely mount the switches in the top (C) Lucid Technologies...
  • Page 13 Allow enough slack in the wires so that the case can be opened to change option jumpers. Lucid Technologies standard software for the CK3 expects all the switches to be normally- open, in other words, the input is active when the signal line is grounded. The software also assigns the following functions to the switch inputs.
  • Page 14 You will need two things to customize the CK3 software. The first is a PIC assembler - Lucid Technologies recommends the MPLAB Integrated Development Environment (MPLAB IDE) which can be downloaded for free from the Microchip Technology website. The second is a programmer compatible with the PIC16F87.
  • Page 15 Does your custom software have data it needs to store that could be lost during a power outage? The PIC has 256 bytes of EEPROM, and the DS1305 has 96 bytes of user RAM protected by its super-capacitor power backup. (C) Lucid Technologies...
  • Page 16 74HC165, 16-DIP U7,U8 DS18S20, TO-92 18-DIP socket 16-DIP socket U2,U3,U4,U7,U8 14-DIP socket U5,U6 DC power jack DB9 female DIN-5 receptacle 3x2 jumper header 5x2 option header 150uH Piezo speaker 32768Hz tuning fork crystal CK3-1 circuit board Jumper (C) Lucid Technologies...
  • Page 17 CK3 Alarm Clock and Thermometer APPENDIX B CK3 BOARD LAYOUT (C) Lucid Technologies...
  • Page 18 275-325, Center-off mini toggle switch, SPDT (Alarm Set and Alarm Enable) Wall transformer Voltage output: 9VDC Current output: 100 mA or more Output connector: coaxial power plug, 5.5mm O.D., 2.1mm I.D., center positive Screws 4 required for mounting printed circuit board (C) Lucid Technologies...
  • Page 19 CK3 Alarm Clock and Thermometer APPENDIX D CHASSIS DETAILS Figure D1. Position of the CK3 circuit board and DB1 circuit board in the bottom half of the alarm clock case. (C) Lucid Technologies...
  • Page 20 Figure D3. Position of the red plexiglass window glued to the inside of the front panel. APPENDIX E Figure D4. Rear view of the case’s rear panel insert. Figure shows dimensions in inches: 0.925" = 23.5mm, 0.75" = 19mm, 0.625" = 16mm, 0.5" = 12.7mm. (C) Lucid Technologies...
  • Page 21 Ring indicator, RI from DCE All Lucid Technologies products are designed as DCE devices. They use a 9 pin, female, D connector that is directly compatible with 9 pin COM ports found on personal computers. The pin (C) Lucid Technologies...
  • Page 22 None of the handshake lines are actively controlled by the CK3. DTR is not connected and thus is ignored. DSR and DCD are hard-wired to the ON condition (ON = spacing = +voltage) at all times. RTS is received, buffered, and looped back to the host as CTS; thus CTS tracks RTS. (C) Lucid Technologies...
  • Page 23 Click the OK button for the ASCII_setup window and the OK button on the Properties window. The last step in the setup is to save the terminal settings so you won't have to go through this (C) Lucid Technologies...
  • Page 24 HyperTerminal you can simply double-click on the file name (CK3.ht) and HyperTerminal will begin with all the correct settings. Connect your CK3 to the COM-port and turn it on; the initial menu should appear in the HyperTerminal window. (C) Lucid Technologies...
  • Page 25 The transmit circuitry of a MIDI output connector is shown in Figure G1. The optically isolated receive circuitry of a MIDI-IN connector is shown in Figure G2. Figure G1 Standard MIDI-OUT or MIDI-THRU output circuitry. (C) Lucid Technologies...
  • Page 26 J5 jumper in the UART position the UART’s TX output is routed to both the RS-232 connector (J2) and the MIDI-OUT connector (J3). To send MIDI data the software must be changed to set the PIC16F87's UART to 31250 baud. (C) Lucid Technologies...
  • Page 27 Data Sheet - MC14489, Multi-Character LED Display/Lamp Driver National (www.national.com/analog) Data Sheet - LM78S40 Universal Switching Regulator Subsystem On Semiconductor (www.onsemi.com) Application Note 920 - Theory and applications of the MC34063 and uA78S40 switching regulator control circuits (C) Lucid Technologies...
  • Page 28 CK3 Alarm Clock and Thermometer (C) Lucid Technologies...