The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers.    


Datasheet Search Engine   
 
Part # or Description: • 5V RS232 Driver • 2SC5066* • "Real Time Clock" • "USB connector" • "blue led" 5mm • 10 watt zener diode • 2N3055* motorola
 
Search Tip: Try entering the part number only. Include a wildcard (eg. lm317* or 1n4148*)

 

 

SERIAL MODULE SPECIFICATIONS Crystalfontz Model Number Hardware V


Datasheet Thumbnail

  

Download PDF



Top Searches for this datasheet



Crystalfontz America, Incorporated
SERIAL MODULE SPECIFICATIONS
Crystalfontz Model Number Hardware Version Firmware Version Data Sheet Version Product Pages
CFA633-TMC-KS v1.5a k1.9 k1.9c August 2005 August 2005 December 2005
Customer Name Customer Part Number
Crystalfontz America, Incorporated
12412 East Saltese Avenue Spokane Valley, 99216-0357 Phone: Fax: Email: URL: (888) 206-9720 (509) 892-1203 techinfo@crystalfontz.com www.crystalfontz.com
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
REVISION HISTORY
HARDWARE 2005/08/01 Start Public Version Tracking. Current hardware version: v1.5a
FIRMWARE 2005/08/01 Start Public Version Tracking. Current firmware version: k1.9
DATA SHEET Start Public Version Tracking. Data Sheet version: k1.9b Changes since last released version (k1.9a): Added note length command reply (Pg. 35). Current Data Sheet version: k1.9c Changes since last released version (k1.9b): Added "Character Pitch" dimension (Pg. Corrected return packet "type" command Tachometer Glitch Filter (Pg. 31). Corrected return packet "type" command Query Power Fail-Safe Mask (Pg. 32). Corrected "type" Baud Rate (Pg. 36). Corrected length returned reply command Read GPIO Levels Configuration State (Pg. 38). Formatting, content organization, minor rewording improve readability. added convenience, separate data sheet available each CFA-633 module variant.
2005/08/01
2005/12/20
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
CONTENTS
FEATURES ORDERING INFORMATION SYSTEM BLOCK DIAGRAM PHYSICAL CHARACTERISTICS TEMPERATURE RANGE OPTICAL CHARACTERISTICS ELECTRICAL SPECIFICATIONS RELIABILITY STANDARD (NON-ATX) POWER CONNECTION POWER CONNECTION THROUGH (RS-232)- POWER SUPPLY POWER CONTROL CONNECTIONS RS-232 CONNECTIONS CONNECTIONS DALLAS SEMICONDUCTOR 1-WIRE DEVICE CONNECTIONS HOST COMMUNICATIONS Packet Structure About Handshaking Report Codes 0x80: Activity 0x81: Speed Report 0x82: Temperature Sensor Report Command Codes Ping Command Hardware Firmware Version Write User Flash Area Read User Flash Area Store Current State Boot State Reboot CFA-633, Reset Host, Power Host Clear Screen Contents, Line Contents, Line Special Character Data Read Bytes Memory Cursor Position Cursor Style Contrast Keypad Backlight Reporting Power Read Device Information Temperature Reporting Arbitrary Transaction Live Temperature Display Send Command Directly Controller
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
CONTENTS, CONTINUED
Configure Reporting Read Keypad, Polled Mode Power Fail-Safe Tachometer Glitch Filter Query Power Fail-Safe Mask Power Switch Functionality Enable/Disable Reset Watchdog Read Reporting Status Send Data Reserved CFA-631 Legends Baud Rate Configure GPIO Read GPIO Levels Configuration State CHARACTER GENERATOR (CGROM) CFA-633 MODULE OUTLINE DRAWING CFA-633 KEYPAD OUTLINE DRAWING JUMPER LOCATIONS FUNCTIONS CARE HANDLING PRECAUTIONS APPENDIX CONNECTING DS2450 1-WIRE QUAD CONVERTER APPENDIX CONNECTING DS1963S IBUTTON- APPENDIX CALCULATING Algorithm Table Implementation Algorithm Shift Implementation Algorithm "PIC Assembly" Shift Implementation Algorithm "Visual Basic" Table Implementation Algorithm "Java" Table Implementation Algorithm "Perl" Table Implementation APPENDIX QUALITY ASSURANCE STANDARDS-
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
LIST FIGURES
Figure CFA633-TMC-KS System Block Diagram Figure CFA633-TMC-KS connection standard inch floppy" power supply cable Figure CFA633-TMC-KS RS-232 power connection Figure CFA633-TMC-KS power supply control connections Figure CFA633-TMC-KS default alternate assignments Figure CFA633-TMC-KS's four connections Figure Graph showing power time) various RPM- Figure CFA633-TMC-KS connection Dallas Semiconductor 1-wire (DOW) devices Figure Character Generator (CGROM) Figure CFA-633 Module Outline Drawing v1.5a identical v1.0)- Figure CFA-633 Keypad Outline Drawing (v1.5a identical v1.0)- Figure CFA-633 Jumper Locations Functions Appendix Figure CFA-633 Test Circuit Schematic Appendix Figure Connect CFA-633 Maxim/Dallas DS19632 iButton using DS9094 iButton Clip
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
FEATURES
16x2 compact: fits rack mount case overall height). Bidirectional 19200 115200 baud protected RS-232 interface. Integrated backlit 6-button translucent silicon keypad. White edge backlit with STN-blue negative mode (displays light characters blue background). Blue backlit keypad. 5.25" half-height drive-bay CFA-633 Serial Mounting Bracket available (optional). Fully decoded keypad: combination valid unique. Robust packet-based communications protocol with 16-bit CRC. Built-in reprogrammable microcontroller (factory operation). Nonvolatile memory capability (EEPROM): Customize "power-on" display settings. 16-byte "scratch" register storing address, netmask, system serial number Expandable firmware configurable hardware customized specific features your system needs (tooling minimum order apply): Other additional analog digital devices. Provide "dongle" functionality software copy protection. Autonomous hardware monitoring. Firmware support CFA633-TMC-KS allows: power supply control functionality allows buttons CFA633-TMC-KS replace "power" "reset" switches your system, simplifying front panel design. Four connectors with monitoring variable power control. Fail-safe power settings allows safe host control based temperature. Temperature monitoring: channels degrees absolute accuracy (using optional Crystalfontz WRDOWY17 cable with Dallas 1-Wire sensor). Hardware watchdog reset host host software failure. "Live Display" shows eight temperature readings without host intervention, allowing fans temperatures shown immediately boot, even before host operating system loaded. RS-232 Dallas Semiconductor 1-Wire bridge functionality allows control other 1-Wire compatible devices (ADC, voltage monitoring, current monitoring, RTC, GPIO, counters, identification/encryption). (Additional hardware required).
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
ORDERING INFORMATION
PART NUMBER CFA633-TMC-KS FLUID GLASS COLOR blue IMAGE negative POLARIZER FILM transmissive BACKLIGHTS LCD: white edge LEDs Keypad: blue LEDs
SYSTEM BLOCK DIAGRAM
Figure CFA633-TMC-KS System Block Diagram
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
PHYSICAL CHARACTERISTICS
ITEM Module Dimensions Viewing Area Active Area Character Size Character Pitch Size Pitch Depth: Without Keypad Connectors With Keypad, without Connectors Without Keypad, with Connectors With Keypad, with Connectors Keystroke Travel (approximate) Weight 10.7 12.1 20.1 24.1 grams (typical) SIZE (mm) 110.5 35.0 61.0 15.8 56.2 11.2 2.95 5.55 3.55 5.95 0.55 0.65 0.60 0.70
TEMPERATURE RANGE
CRITERIA Operating Temperature Range Storage Temperature Range SPECIFICATION minimum +50°C maximum -10°C minimum +60°C maximum
OPTICAL CHARACTERISTICS
Viewing Direction o'clock
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
ELECTRICAL SPECIFICATIONS
DRIVING METHOD Duty Bias SPECIFICATION 1/16 MAXIMUM +5.25v +13v +13v NOMINAL +5.0v +12v +12v
SUPPLY VOLTAGE Supply voltage driving module (logic) Supply voltage backlights* Supply voltage fans*
+4.75v +4.75v
*JP7 must opened operating range +12v fans different from +12v backlights (listed this table). closed (which factory default), then voltage specification range backlights must observed both backlights fans. Please Figure
MINIMUM
ITEM logic (LCD microcontroller) +12v backlight 100%)
TYPICAL CURRENT CONSUMPTION
+12v fans Draw +12v fans will vary, depending user equipment connected FAN1 through FAN4. Maximum continuous current draw must <1.5 connector, more than total. Maximum pulsed current draw connector. pulse width must less than (This pulse specification allows fan's start-up current spike.) GPIO CURRENT LIMITS Sink Source SPECIFICATION
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
CRITERIA Backlight Frequency Tachometer Speed Range (assuming PPR*) Power Control Frequency
SPECIFICATION nominal 3,000,000 nominal
pulses revolution, also written p/r.
(Electro-Static Discharge) Specifications: pins connector "RS-232" only: Human Body Model IEC1000-4-2 Discharge IEC1000-4-2 Contact Discharge remainder circuitry industry standard CMOS logic susceptible damage. Please industry standard antistatic precautions would other such expansion cards motherboards. more information, read CARE HANDLING PRECAUTIONS (Pg. 44).
RELIABILITY
ITEM portion (excluding Keypad Backlights) Keypad White* Display Blue Keypad Backlights
recommend that backlight white backlit modules dimmed turned during periods inactivity conserve white backlight lifetime.
SPECIFICATION 50,000 100,000 hours (typical) 1,000,000 keystrokes Power-On Hours <10,000 <50,000 Initial Brightness >90% >50%
STANDARD (NON-ATX) POWER CONNECTION
closed factory, allowing single standard inch floppy" power supply cable provide power CFA633-TMC-KS. opened order supply power fans separate from power backlight. JUMPER LOCATIONS FUNCTIONS (Pg. jumper positions. NOTE connect high power fans module when +12v supplied through closed. Total current must less than +12v supplied through closed. When using high power fans, supply +12v through "PWR" connector.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Figure CFA633-TMC-KS connection standard inch floppy" power supply cable
POWER CONNECTION THROUGH (RS-232)
+12v power supplied through connector allowing single cable contain both power data connections. "Default RS-232 Assignments" selected, five connections needed operate module single column pins which allows single 0.1" spacing 5-conductor cable connect between CFA633-TMC-KS your embedded system. enable supplied through close JP13. allow +12v supplied through close JP10. JP10 JP13 open default from factory. JUMPER LOCATIONS FUNCTIONS (Pg. jumper positions functions.
NOTE connect high power fans module when +12v supplied through J1/JP10. Total current must less than +12v supplied through J1/JP10. When using high power fans, supply +12v through "PWR" connector.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Figure CFA633-TMC-KS RS-232 power connection
POWER SUPPLY POWER CONTROL CONNECTIONS
CFA-633 ability control power on/off reset functions standard NOTE GPIO pins used control must configured user GPIO, must configured their default drive mode order functions work correctly. These settings factory default changed user. Please command Configure GPIO (Pg. 36). Crystalfontz WRPWRY14 cable simplifies power control connections. When using this cable, please open jumper close jumper order ensure correct operation. JUMPER LOCATIONS FUNCTIONS (Pg. jumper positions locations. NOTE WRPWRY14 cable ordered same time CFA633-TMC-KS, Crystalfontz will install WRPWRY14, open jumper JP8, close jumper (unless otherwise instructed).
this functionality, combination CFA633-TMC-KS powered from PC's signal (the "stand-by" "always-on" power supply output). default, labeled "+5v" CFA633-TMC-KS's connector electrically connected "+5v" CFA633-TMC-KS's power connector. using CFA633-TMC-KS power control, will want open jumper JP8, which will disconnect "+5v" "PWR" connector from "+5v" connector
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Since CFA633-TMC-KS must differently depending host's power supply "on" "off", must also connect host's "switched +5v" GPIO[1] (Pin CFA633-TMC-KS's connector J8). This functions POWER-ON SENSE. POWER-ON SENSE configured input with pull-down nominal). simplify this connection, closed make connection between "+5v" CFA633-TMC-KS's "PWR" connector POWER-ON SENSE pin. motherboard's "power switch" input connected CFA633-TMC-KS's connector (labeled "GPIO[2]"). This functions POWER CONTROL. POWER CONTROL configured high-impedance input until module wants turn host off, then will change momentarily impedance output, driving either high depending setting POWER_INVERT. (See command Power Switch Functionality (Pg. 33).) motherboard's "reset switch" input connected CFA633-TMC-KS connector (labeled "GPIO[3]"). This functions RESET. RESET configured high-impedance input until module wants reset host. Then will change momentarily impedance output, driving either high depending setting RESET_INVERT. (See command Power Switch Functionality (Pg. 33).) This connection also used hardware watchdog.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Figure CFA633-TMC-KS power supply control connections
Once configured host software (see command Power Switch Functionality (Pg. 33)), following functions individually enabled: System power POWER-ON SENSE (0v), pressing green check 0.25 seconds will turn unit driving POWER CONTROL line pulse width command Power Switch Functionality (1.0 seconds default). System hard power off. POWER-ON SENSE high (+5v) pressing seconds will turn system driving POWER CONTROL line. line will driven minimum pulse width command Power Switch Functionality (Pg. (1.0 seconds default). user continues press key, CFA633-TMC-KS will continue drive line additional seconds. POWER-ON SENSE high (+5v) pressing green check seconds will reset system driving RESET line second. CFA633-TMC-KS will reboot itself immediately after resetting host.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Since computer module must look "off" computer's power "off", CFA633-TMC-KS configured monitor POWER-ON SENSE line blank display time POWER-ON SENSE line low. +12v remains active (which would expected, since host "off"), fans will remain their previous settings.
RS-232 CONNECTIONS
JP2, JP4, closed factory, selecting "Default RS-232 Assignments". This connection allows low-cost ribbon cable (Crystalfontz WR232Y08) connect CFA633-TMC-KS PC's DB-9 port. opening JP2, closing JP1, select "Alternate RS-232 Assignments". JUMPER LOCATIONS FUNCTIONS (Pg. jumper positions.
Figure CFA633-TMC-KS default alternate assignments
there matching 0.1" center, 10-pin RS-232 connector your system's motherboard, then most cases simple straight-through ribbon cable (such Industries' C3AAG-1018G-ND cable available from Digi-Key) used connect from CFA633-TMC-KS motherboard's header. order your motherboard's header will determine CFA633-TMC-KS's assignments need "Default" "Alternate". Please note that CFA-633 powered through this header. Please refer POWER CONNECTION THROUGH (RS-232) (Pg. above details.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
CONNECTIONS
CFA633-TMC-KS supports standard "3-pin" cooling fans. connectors compatible with industry standard "3-pin" fans.
Figure CFA633-TMC-KS's four connections
average power delivered each level between 100% through command Power (Pg. 26). power setting controls duty cycle high-performance open-drain connected between system ground each connector. frequency nominally CFA633-TMC-KS measure frequency fan's tachometer signal, given pulses-per-revolution, calculate display report information needed calculate host. fan's power 100%, then average frequency each fan's tachometer signal measured over second (125 period time. Each measured sequence, updated speed information available every second (500 each fan. power must order fan's tachometer signal valid. configured report speed host, power will unconditionally 100% start second period time when CFA633-TMC-KS measuring frequency tachometer signal-overriding PWM. CFA633-TMC-KS will leave power until glitch delay (see command Tachometer Glitch Filter (Pg. expired tachometer edges have been detected. normal cycle will then resume. This technique allows speed measured with very minimal effect speed fan. power 100% speed length time such that speed measured without stretching PWM, then this override will change speed all. power some level other than 100% time short compared tachometer signal frequency, then speed will "pulse" slightly every second stretching time. During tachometer measuring, maximum width stretched pulse second. some fans, result very noticeable, this technique will allow monitor average speed while controlling average power fan. other fans (particularly high torque, high models) pulsing effect undesirable. Since on-time dynamically stretched CFA633-TMC-KS force produce tachometer edges, result that will resist stalling power reduced towards being measured.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Here graph power setting typical high-performance (Delta FFB0812SHE):
Figure Graph showing power time) various
Typically speed 100% then being controlled host software drive temperature sensor given reading closed-loop arrangement. this case, temperature, rather than speed would monitored out-of-range conditions. temperature within specification, really care fast turning. unattended system, good idea each 100% seconds during test cycleperhaps once once week-and steady-state attained fan. that steady state were higher (this caused blocked airflow) lower than expected (perhaps fan's bearings failing), maintenance warning would generated host software. NOTE safety, enable power fail-safe (see command Power Fail-Safe (Pg. 31)) fans involved host-based speed control. enabling fail-safe that being used closed-loop control through host software, CFA633-TMC-KS will turn that 100% host fails update power fans within given time interval. instance, communications cable dislodged, host operating system hangs, cooling control process terminated, CFA633-TMC-KS will automatically force those fans 100%, preventing potential equipment damage lack cooling. tested CFA633-TMC-KS with large range fans good results. However, responsible determining control monitoring methods employed module acceptable your application. particular, fan's power low, stall fail start, providing cooling. Using control speed generally accepted; however make claims that compatible with particular that does affect lifetime fans. Some higher torque fans (especially ball-bearing models) click, buzz, growl power settings torque going from positive negative each cycle. limit power setting 100% there should compatibility issues. recommend operating below duty cycle extended period time. Limiting minimum duty cycle should reduce mechanical electrical stresses fan, avoiding premature failure.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
When power applied CFA633-TMC-KS, will each fan's power factory default value 100% value that stored boot state. minimize peak current loading +12v supply during start-up, fans started sequence with second delay between fans that
DALLAS SEMICONDUCTOR 1-WIRE DEVICE CONNECTIONS
TEMPERATURE SENSORS
CFA633-TMC-KS supports Dallas Semiconductor 1-Wire (DOW) temperature sensors. combination DS1822 Econo 1-Wire Digital Thermometer (2°C absolute accuracy) DS18B20 High Precision 1-Wire Digital Thermometer (0.5°C absolute accuracy) temperature sensors other compatible devices directly supported. (See Figure 16.) Crystalfontz supplies WRDOWY17 cable, which contains DS18B20 attached "daisy chain" cable. WRDOWY17 ordered same time CFA633-TMC-KS, Crystalfontz load WRDOWY17's mating connector into CFA-633's "DOW" position. reference, mating connector WRDOWY17 Molex 705430002 available from Digi-Key. temperature sensor configured automatically read displayed CFA633-TMC-KS's (see command Live Temperature Display (Pg. 29)). Independently, temperature sensor configured report host (see Temperature Reporting (Pg. 27)). sensors configured reported updated once each second.
OTHER 1-WIRE DEVICES
other Dallas Semiconductor 1-Wire devices connected 1-Wire bus, with CFA633-TMC-KS acting bridge between 1-Wire (see command Live Temperature Display (Pg. 29)). total number 1-Wire devices supported including directly supported temperature sensors other userprovided 1-Wire devices. (See CFA633-TMC-KS's connection location Figure 16.) CFA633-TMC-KS hardware pull-up connector's line. Connect 1-Wire sensors detailed sensor's data sheet.
Figure CFA633-TMC-KS connection Dallas Semiconductor 1-wire (DOW) devices
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
HOST COMMUNICATIONS
CFA-633 communicates with host using RS-232 interface. port settings 19200 baud, data bits, parity, stop factory default. speed 115200 baud under software control (see command Baud Rate (Pg. 36)).
PACKET STRUCTURE
communication between CFA-633 host takes place form simple robust checked packet. packet format allows very reliable communications between CFA-633 host without traditional problems that occur stream-based serial communication (such having send data inefficient ASCII format, "escape" certain "control characters", losing sync character corrupted, missing, inserted). packets have following structure: <type><data_length><data><CRC>
type byte, identifies type function packet: TTcc cccc |||| ||||-Command, response, error report code 0-63 ||-Type: normal command from host CFA-633 normal response from CFA-633 host normal report from CFA-633 host (not direct response command from host) error response from CFA-633 host packet with valid structure illegal content received CFA-633) data_length specifies number bytes that will follow data field. valid range data_length
data payload packet. Each type packet will have specified data_length format data well algorithms decoding data detailed below. standard 16-bit bytes packet except itself. sent first. port, immediately follows last used element data APPENDIX CALCULATING (Pg. details.
following definition useful understanding packet structure. typedef struct unsigned char command; unsigned char data_length; unsigned char data[MAX_DATA_LENGTH]; unsigned short CRC; }COMMAND_PACKET; website, Crystalfontz supplies demonstration test program, 633_WinTest along with source code. Included 633_WinTest source algorithm algorithm that detects packets. algorithm will automatically re-synchronize next valid packet event communications errors. Please follow algorithm sample code closely order realize benefits using packet communications.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
ABOUT HANDSHAKING
nature CFA-633's packets makes unnecessary implement traditional hardware software handshaking. host should wait corresponding acknowledge packet from CFA-633 before sending next command packet. CFA-633 will respond packets within host software should stop waiting retry packet CFA-633 fails respond within host software should report error packet acknowledged after several retries. This situation indicates hardware problem-for example, disconnected cable. Please note that some operating systems introduce delays between when data arrives physical port from CFA-633 until available user program. this case, host program have increase timeout window account additional overhead operating system. CFA-633 configured send several types report packets along with regular acknowledge packets. host should able buffer several incoming packets must guarantee that process remove packets from input buffer faster than packets arrive given baud rate reporting configuration CFA-633. modern using reasonably efficient software, this requirement will pose challenge. report packets sent asynchronously with respect command packets received from host. host should assume that first packet received after sends command acknowledge packet that command. host should inspect type field incoming packets process them accordingly.
REPORT CODES
CFA-633 configured report three items. CFA-633 sends reports automatically when data becomes available. Reports sent response particular packet received from host. three report types are:
0x80: Activity
pressed released, CFA-633 sends Activity report packet host. event reporting individually enabled disabled command Configure Reporting (Pg. 30). type 0x80 data_length data[0] type keyboard activity: KEY_UP_PRESS KEY_DOWN_PRESS KEY_LEFT_PRESS KEY_RIGHT_PRESS KEY_ENTER_PRESS KEY_EXIT_PRESS KEY_UP_RELEASE KEY_DOWN_RELEASE KEY_LEFT_RELEASE KEY_RIGHT_RELEASE KEY_ENTER_RELEASE KEY_EXIT_RELEASE These codes identical codes returned CFA-635. Please note that CFA-631 will return codes through (See CFA-631 Data Sheet website more details).
0x81: Speed Report
four fans connected CFA-633 configured report speed information host, CFA-633 will send Speed Reports each selected every second. command Reporting (Pg. below.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
type 0x81 data_length data[0] index being reported: data[1] number_of_fan_tach_cycles data[2] Fan_Timer_Ticks data[3] Fan_Timer_Ticks
following function will decode speed from Speed Report packet into RPM: *packet, char output) return_value; return_value=0;
number_of_fan_tach_cycles; if(number_of_fan_tach_cycles<3) sprintf(output," STOP"); else if(number_of_fan_tach_cycles<4) sprintf(output," SLOW"); else sprintf(output," -"); else //Specific each fan, most commonly pulses_per_revolution; pulses_per_revolution=2; Fan_Timer_Ticks; Fan_Timer_Ticks=(*(unsigned short *)(&(packet->data[2]))); (unsigned (Fan_Timer_Ticks); return(return_value);
0x82: Temperature Sensor Report
temperature sensors configured report host, CFA-633 will send Temperature Sensor Reports each selected sensor every second. command Temperature Reporting (Pg. below. type 0x82 data_length data[0] index temperature sensor being reported: temperature sensor temperature sensor temperature sensor data[1] Temperature_Sensor_Counts data[2] Temperature_Sensor_Counts data[3] DOW_crc_status
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
following function will decode Temperature Sensor Report packet into void *packet, char *output) //First check return code from CFA-633 if(packet->data[3]==0) strcpy(output,"BAD CRC"); else double degc; degc=(*(short *)&(packet->data[1]))/16.0;
double degf; degf=(degc*9.0)/5.0+32.0; sprintf(output,"%9.4f°C =%9.4f°F", degc, degf);
COMMAND CODES
Below list valid commands CFA-633. Each command packet answered either response packet error packet.The bits type field response error packet same bits type field command packet being acknowledged.
Ping Command
CFA-633 will return Ping Command host. type valid data_length data[0-(data_length-1)] filled with arbitrary data return packet identical packet sent, except type will 0x40 (normal response, Ping Command): type 0x40 data_length (identical received packet) data[0-(data_length-1)] (identical received packet)
Hardware Firmware Version
CFA-633 will return hardware firmware version information host. type valid data_length return packet will type 0x40 data_length data[] "CFA-633:hX.X,yY.Y"
hardware revision, "1.5" example yY.Y firmware version, "v1.9" example
Write User Flash Area
CFA-633 reserves bytes nonvolatile memory arbitrary host. This memory used store serial number, address, gateway address, netmask, other data required. bytes must supplied.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
type valid data_length data[] bytes arbitrary user data stored CFA-633's non-volatile memory
return packet will type 0x40 data_length
Read User Flash Area
This command will read User Flash Area return data host. type valid data_length return packet will type 0x40 data_length data[] bytes user data recalled from CFA-633's non-volatile memory
Store Current State Boot State
CFA-633 loads power-up configuration from nonvolatile memory when power applied. CFA-633 configured factory display "welcome screen" when power applied. This command used customize welcome screen, well following items: Characters shown LCD, which affected command Clear Screen (Pg. 22). command Contents, Line (Pg. 23). command Contents, Line (Pg. 23). command Send Data (Pg. 36). Special character font definitions (command Special Character Data (Pg. 23)). Cursor position (command Cursor Position (Pg. 24)). Cursor style (command Cursor Style (Pg. 24)). Contrast setting (command Contrast (Pg. 25)). Backlight setting (command Keypad Backlight (Pg. 25)). power settings (command Power (Pg. 26)). Settings "live" displays (command Live Temperature Display (Pg. 29)). press release masks (command Configure Reporting (Pg. 30)). glitch delay settings (command Tachometer Glitch Filter (Pg. 31)). function enable pulse length settings (command Power Switch Functionality (Pg. 33)). legends (command Reserved CFA-631 Legends (Pg. 36)). Baud rate (command Baud Rate (Pg. 36)). GPIO settings (command Configure GPIO (Pg. 36)). cannot store temperature reporting (although live display fans temperatures saved). cannot store fail-safe host watchdog.The host software should enable these items once system initialized ready receive data. type valid data_length
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
return packet will type 0x40 data_length
Reboot CFA-633, Reset Host, Power Host
This command instructs CFA-633 simulate power-on restart itself, reset host, turn host's power off. ability reset host useful allow certain host operating system configuration changes complete. ability turn host's power under software control useful systems that have ACPI compatible BIOS. NOTE GPIO pins used control must configured user GPIO, must configured their default drive mode order functions work correctly. These settings factory default, changed user. Please command Configure GPIO (Pg. 36). Rebooting CFA-633 useful when testing boot configuration. also useful re-enumerate devices 1-Wire bus. reboot CFA-633, send following packet: type valid data_length data[0] data[1] data[2] reset host, assuming host's reset line connected GPIO[3] described command Power Switch Functionality (Pg. 33), send following packet: type valid data_length data[0] data[1] data[2] turn host's power off, assuming host's power control line connected GPIO[2] described command Power Switch Functionality (Pg. 33), send following packet: type valid data_length data[0] data[1] data[2] above cases, return packet will type 0x40 data_length
Clear Screen
Sets contents screen DDRAM 0x20 moves cursor left-most column line. type valid data_length return packet will type 0x40 data_length
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Clear Screen items stored command Store Current State Boot State (Pg. 21).
Contents, Line
Sets center characters displayed line screen. Please this command only need backwards compatibility with older CFA-633 units. applications, please more flexible command Send Data (Pg. which also supported CFA-631 CFA-635. type valid data_length data[] line's display content (must supply bytes) return packet will type 0x40 data_length Contents, Line items stored command Store Current State Boot State (Pg. 21).
Contents, Line
Sets center characters displayed bottom line screen. Please this command only need backwards compatibility with older CFA-633 units. applications, please more flexible command Send Data (Pg. which also supported CFA-631 CFA-635. type valid data_length data[] line's display content (must supply bytes) return packet will type 0x40 data_length Contents, Line items stored command Store Current State Boot State (Pg. 21).
Special Character Data
Sets font definition special characters (CGRAM). type valid data_length data[0] index special character that would like modify, valid data[1-8] bitmap font this character
data[1-8] bitmap information this character. value valid between left character cell row, right character cell. data[1] cell, data[8] bottom cell.
return packet will type 0x40 data_length Special Character Data items stored command Store Current State Boot State (Pg. 21).
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Read Bytes Memory
This command will return contents LCD's DDRAM CGRAM. This command intended debugging. Note: firmware version prior v1.9 return address code.
type valid data_length data[0] address code desired data data[0] address code native controller: 0x40 (\064) 0x7F (\127) CGRAM 0x80 (\128) 0x93 (\147) DDRAM, line 0xC0 (\192) 0xD3 (\211) DDRAM, line
return packet will type 0x40 data_length
data[0] return packet will address code. data[1-8] return packet will data read from controller's memory.
Cursor Position
This command allows cursor placed desired location CFA-633's screen. want cursor visible, also need send command Cursor Style (Pg. 24). type valid data_length data[0] column (0-19 valid) data[1] (0-3 valid) return packet will type 0x40 data_length Cursor Position items stored command Store Current State Boot State (Pg. 21).
Cursor Style
This command allows select among four hardware generated cursor options. type valid data_length data[0] cursor style (0-3 valid) cursor blinking block cursor underscore cursor blinking block plus underscore return packet will type 0x40 data_length Cursor Style items stored command Store Current State Boot State (Pg. 21).
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Contrast
This command sets contrast vertical viewing angle display. type valid data_length data[0] contrast setting (0-50 valid) light (Vlcd=4v) about right (Vlcd=5v) dark (Vlcd=6v) 30-50 very dark (Vlcd=6.0 6.7v) (may useful cold temperatures) return packet will type 0x40 data_length Contrast items stored command Store Current State Boot State (Pg. 21).
Keypad Backlight
This command sets brightness keypad backlights. type valid data_length data[0] backlight power setting (0-100 valid) 1-99 variable brightness return packet will type 0x40 data_length Keypad Backlight items stored command Store Current State Boot State (Pg. 21).
(Deprecated) Reporting
This command will configure CFA-633 report speed information host every type valid data_length data[0] bitmask indicating which fans enabled report (0-15 valid) 8421 Enable Reporting this Fan's Tach Input |||| ||||- enable, disable |||| |||- enable, disable |||| enable, disable |||| enable, disable return packet will type 0x40 data_length data[0] then CFA-633 will start sending 0x81: Speed Report packets each enabled every (See 0x81: Speed Report (Pg. 18).) Each report packets staggered second.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Reporting will override power setting 100% second every second. Please Connections CONNECTIONS (Pg. detailed description.
Power
This command will configure power connectors. power setting items stored command Store Current State Boot State (Pg. 21). type valid data_length data[0] power level (0-100 valid) data[1] power level (0-100 valid) data[2] power level (0-100 valid) data[3] power level (0-100 valid) return packet will type 0x40 data_length Power items stored command Store Current State Boot State (Pg. 21).
Read Device Information
When power applied CFA-633, detects devices connected Dallas Semiconductor 1-Wire (DOW) stores device's information. This command will allow host read device's information. first byte returned Family Code Dallas 1-Wire iButton device. There list possible Dallas 1Wire iButton device family codes available Note 155: 1-Wire Software Resource Guide Maxim/Dallas website.
NOTE COMMAND READ DEVICE INFORMATION GPIO used must configured user GPIO. must configured default drive mode order functions work correctly. These settings factory default changed user. Please command Configure GPIO (Pg. 36). order subsystem enabled operate correctly, user GPIO[4] must configured "111: 1=Hi-Z, 0=Slow, Strong Drive Down". Port unused user GPIO." This state factory default, changed saved user. ensure that GPIO[4] correctly operation enabled, send following command: command length data[0] data[1] data[2] This setting must saved boot state, when CFA-633 reboots will detect devices.
type valid data_length data[0] device index (0-31 valid)
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
return packet will type 0x40 data_length data[0] device index (0-31 valid) data[1-8] device data[1] 0x22 (DS1822 Econo 1-Wire Digital Thermometer temperature sensor) 0x28 (DS18B20 High Precision 1Wire Digital Thermometer temperature sensor), then that device automatically convert report temperature every second. command Temperature Reporting (Pg. 27).
Temperature Reporting
This command will configure CFA-633 report temperature information host every second. type valid data_length data[0-3] 32-bit bitmask indicating which temperature sensors fans enabled report (0-255 valid each location)
data[0] Enable Reporting device index enable, enable, enable, enable, enable, enable, enable, enable, data[1] |-|-data[2] |-|-Enable Reporting device index enable, enable, enable, enable, enable, enable, enable, enable, Enable Reporting device index enable, enable, enable, enable, enable, enable, enable, enable, sensor with disable disable disable disable disable disable disable disable sensor with disable disable disable disable disable disable disable disable sensor with disable disable disable disable disable disable disable disable
(Continues next page.)
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
data[3] |-|-
Enable Reporting device index enable, enable, enable, enable, enable, enable, enable, enable,
sensor with disable disable disable disable disable disables disable disable
sensor enabled must have been detected 0x22 (DS1822 temperature sensor) 0x28 (DS18B20 temperature sensor) during enumeration. This verified using command Read Device Information (Pg. 26). return packet will type 0x40 data_length
Arbitrary Transaction
CFA-633 function RS-232 Dallas 1-Wire bridge. This command allows specify arbitrary transactions 1-Wire bus. 1-Wire commands follow this basic layout: <bus reset //Required <address_phase> //Must "Match ROM" "Skip ROM" <write_phase> //optional, least write_phase read_phase must sent <read_phase> //optional, least write_phase read_phase must sent Please APPENDIX CONNECTING DS2450 1-WIRE QUAD CONVERTER (Pg. example using this command. type valid data_length data[0] device_index (0-32 valid) data[1] number_of_bytes_to_read (0-14 valid) data[2-15] device_index then address phase will executed. device_index range 1-Wire device detected that device_index power then write cycle will prefixed with "Match ROM" command address information that device. data_length two, then specific write phase will executed (although address information written independently data_length depending value device_index). data_length greater than two, then data_length-2 bytes data_to_be_written will written 1Wire immediately after address phase. number_of_bytes_to_read zero, then read phase will executed. number_of_bytes_to_read zero then number_of_bytes_to_read will read from loaded into response packet. return packet will type 0x40 data_length data[0] device index (0-31 valid) data[data_length-2] Data read from 1-Wire bus. This same number_of_bytes_to_read from command. data[data_length-1] 1-Wire
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Live Temperature Display
configure CFA-633 automatically update portion with "live" temperature reading. Once display configured using this command, CFA-633 will continue display live reading without host intervention. Live Temperature Display items stored command Store Current State Boot State (Pg. 21), configure CFA-633 immediately display speeds system temperatures soon power applied. live display based concept display slots. There slots, each slots enabled disabled independently. slot requested display data that available. instance, slot could display temperature sensor while slot could simultaneously display temperature sensor slot positioned location LCD, long digits that slot fall fully within display area. legal have display area slot overlap display area another slot, senseless. This situation should avoided order have meaningful information displayed. type valid data_length (for turning slot off) data[0]: display slot (0-7) data[1]: type item display this slot nothing (data_length then must tachometer (data_length then must temperature (data_length then must data[2]: index sensor display this slot: valid fans 0-31 valid temperatures (and temperature device must attached) data[3]: number digits fan: digits 9999) valid speed range fan: digits 50000) valid speed range temperature: digits XXX) temperature: digits (-XX.X XXX.X) data[4]: display column 0-13 valid 3-digit temperature 0-12 valid 4-digit 0-11 valid 5-digit temperature data[5]: display (0-1 valid) data[6]: pulses_per_revolution temperature units fan: pulses revolution this temperature: units 1-Wire error detected, temperature will displayed "ERR" "ERROR". frequency tachometer signal below detectable range, speed will displayed "SLOW" "STOP". Displaying will override power setting 100% second every second. Please CONNECTIONS (Pg. detailed description. return packet will type 0x40 data_length
Send Command Directly Controller
controller CFA-633 S6A0073 compatible. Generally won't need low-level access controller some arcane functions S6A0073 exposed CFA-633's command set. This command
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
allows access CFA-633's controller directly. Note: possible corrupt CFA-633 display using this command. type data_length data[0]: location code "Data" register "Control" register data[1]: data write selected register return packet will type 0x40 data_length
Configure Reporting
default, CFA-633 reports event host. This command allows events enabled disabled individual basis. events report items stored command Store Current State Boot State (Pg. 21). #define KP_UP 0x01 #define KP_ENTER 0x02 #define KP_CANCEL 0x04 #define KP_LEFT 0x08 #define KP_RIGHT 0x10 #define KP_DOWN 0x20
type data_length data[0]: press mask data[1]: release mask
return packet will type 0x40 data_length Configure Reporting items stored command Store Current State Boot State (Pg. 21).
Read Keypad, Polled Mode
some situations, convenient host poll CFA-633 activity. This command allows host detect which keys currently pressed, which keys have been pressed since last poll, which keys have been released since last poll. This command independent reporting masks command Configure Reporting (Pg. 30). keys always visible this command. Typically both masks command would host reading keypad polled mode. #define KP_UP 0x01 #define KP_ENTER 0x02 #define KP_CANCEL 0x04 #define KP_LEFT 0x08 #define KP_RIGHT 0x10 #define KP_DOWN 0x20
type data_length
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
return packet will type 0x40 data_length data[0] mask data[1] mask last data[2] mask last
showing keys currently pressed showing keys that have been pressed since poll showing keys that have been released since poll
Power Fail-Safe
combination CFA-633 used part active cooling system. instance, fans system slowed down reduce noise when system idle when ambient temperature low, sped when system under heavy load ambient temperature high. Since there very large number ways control speed fans (thresholds, thermostat, proportional, PID, multiple temperature sensors "contributing" speed several fans there foresee particular requirements your system include algorithm CFA-633's firmware that would optimal your application. Varying speeds under host software control gives ultimate flexibility system design would typically have fatal flaw: host software hardware failure could cause cooling system fail. fans were slow speed when host software failed, system components damaged inadequate cooling. power fail-safe command allows host control fans without compromising safety. When control software activates, should fans that under control fail-safe mode with appropriate timeout value. reason host fails update power fans before timeout expires, fans previously failsafe mode will forced 100% power. #define FAN_1 0x01 #define FAN_2 0x02 #define FAN_3 0x04 #define FAN_4 0x08
type data_length data[0] mask fans fail-safe data[1] timeout value second ticks: second second seconds
return packet will type 0x40 data_length
Tachometer Glitch Filter
CFA-633 controls speed using PWM. Using turns power quickly change average power delivered fan. CFA-633 uses approximately repetition rate. fan's tachometer output only valid power applied fan. Most fans produce valid tachometer output very quickly after been turned back some fans take time after being turned before their tachometer output valid. This command allows variable-length delay after been turned before CFA-633 will recognize transitions tachometer line. delay specified counts, each count being nominally 552.5 long (1/100 period repetition rate).
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
practice, most fans will need delay changed from default length count. fan's tachometer output stable when setting other than 100%, simply increase delay until reading stable. Typically would start delay count 100, reduce until problem reappears, then slightly increase delay count give some margin. Setting glitch delay higher values will make monitoring slightly more intrusive power settings. Also, higher values will increase lowest speed that with reporting enabled will "seek" "0%" power setting. Glitch Delay items stored command Store Current State Boot State (Pg. 21). type data_length data[0] delay count data[1] delay count data[2] delay count data[3] delay count return packet will type 0x40 data_length
Query Power Fail-Safe Mask
This command used verify current power verify which fans fail-safe mode. #define FAN_1 0x01 #define FAN_2 0x02 #define FAN_3 0x04 #define FAN_4 0x08
type data_length
return packet will type 0x40 data_length data[0] power data[1] power data[2] power data[3] power data[4] mask fans with fail-safe
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Power Switch Functionality
combination CFA-633 with optional WRPWRY14 cable used replace function power reset switches standard ATX-compatible system. Power Switch Functionality items stored command Store Current State Boot State (Pg. 21). NOTE COMMAND POWER SWITCH FUNCTIONALITY GPIO pins used control must configured user GPIO. pins must configured their default drive mode order functions work correctly. These settings factory default changed user. Please command Configure GPIO (Pg. 36). These settings must saved boot state. ensure that GPIO[1] will operate correctly SENSE, user GPIO[1] must configured "011: 1=Resistive Pull 0=Fast, Strong Drive Down". Port unused user GPIO." This configuration assured sending following command: command length data[0] data[1] data[2] ensure that GPIO[2] will operate correctly POWER, user GPIO[2] must configured "010: Hi-Z, input". Port unused user GPIO." This configuration assured sending following command: command length data[0] data[1] data[2] ensure that GPIO[3] will operate correctly RESET, user GPIO[3] must configured "010: Hi-Z, input". Port unused user GPIO." This configuration assured sending following command: command length data[0] data[1] data[2] These settings must saved boot state. RESET (GPIO[3]) POWER CONTROL (GPIO[2]) lines CFA-633 normally high-impedance- electrically, they appear disconnected floating. When CFA-633 asserts RESET POWER_CONTROL lines, they momentarily driven high determined RESET_INVERT POWER_INVERT bits, detailed below). power reset pulse, CFA-633 changes lines back high-impedance.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
FOUR FUNCTIONS ENABLED COMMAND Function KEYPAD_RESET POWER-ON SENSE (GPIO[1]) high, holding green check seconds will pulse RESET (GPIO[3]) second. During 1-second pulse, CFA-633 will show "RESET", then CFA-633 will reset itself, showing boot state just powered Once pulse finished, CFA-633 will respond commands until after reset host itself. Function KEYPAD_POWER_ON POWER-ON SENSE (GPIO[1]) low, pressing green check 0.25 seconds will pulse POWER CONTROL (GPIO[2]) duration specified data[1] default second. During this time CFA-633 will show "POWER ON", then CFA-633 will reset itself. Function KEYPAD_POWER_OFF POWER-ON SENSE (GPIO[1]) high, holding seconds will pulse POWER CONTROL (GPIO[2]) duration specified data[1] default second. user continues hold power down, then CFA-633 will continue drive line maximum additional seconds. During this time CFA-633 will show "POWER OFF". Function LCD_OFF_IF_HOST_IS_OFF LCD_OFF_IF_HOST_IS_OFF set, CFA-633 will blank screen turn backlight simulate power being time POWER-ON SENSE (GPIO[1]) low. CFA-633 will still active (since powered VSB), monitoring keypad power-on keystroke. +12v remains active (which would expected, since host "off"), fans will remain their previous settings. Once POWER-ON SENSE (GPIO[1]) goes high, CFA-633 will reboot power just been applied
#define #define #define #define #define #define RESET_INVERT POWER_INVERT LCD_OFF_IF_HOST_IS_OFF KEYPAD_RESET KEYPAD_POWER_ON KEYPAD_POWER_OFF 0x02 //Reset drives high instead 0x04 //Power drives high instead 0x10 0x20 0x40 0x80
type data_length data[0]: mask enabled functions data[1]: (optional) length power pulses 1/32 second 1/32 1/16
return packet will type 0x40 data_length
Enable/Disable Reset Watchdog
Some high-availability systems hardware watchdog timers ensure that software hardware failure does result extended system outage. Once host system booted, system monitor program started.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
system monitor program would enable watchdog timer CFA-633. system monitor program fails reset CFA-633's watchdog timer, CFA-633 will reset host system. NOTE GPIO pins used control must configured user GPIO. They must configured their default drive mode order functions work correctly. These settings factory default, changed user. Please note under command Power Switch Functionality (Pg. command Configure GPIO (Pg. 36).
type data_length data[0] enable/timeout timeout watchdog disabled. timeout 1-255, then this command must issued again within timeout seconds avoid watchdog reset. turn watchdog once been enabled, simply timeout command re-issued within timeout seconds, then CFA-633 will reset host (see command details). Since watchdog default when CFA-633 powers CFA-633 will issue another host reset until host once again enabled watchdog.
return packet will type 0x40 data_length
Read Reporting Status
This command used verify current items configured report host, well some other miscellaneous status information. type data_length return packet will type 0x40 data_length data[0] reporting status command data[1] temperatures reporting status command data[2] temperatures 9-15 reporting status command data[3] temperatures 16-23 reporting status command data[4] temperatures 24-32 reporting status command data[5] presses command data[6] releases command data[7] Power Switch Functionality command 28), 0x08 will watchdog active data[8] current watchdog counter command data[9] glitch delay[0] command data[10] glitch delay[1] command data[11] glitch delay[2] command data[12] glitch delay[3] command data[13] contrast setting command data[14] backlight setting command Please Note: Previous future firmware versions return fewer additional bytes.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Send Data
This command allows data placed position LCD. type data_length data[0]: data[1]: data[2-21]: text place LCD, variable from characters return packet will type 0x40 data_length Send Data items stored command Store Current State Boot State (Pg. 21).
Reserved CFA-631 Legends Baud Rate
This command will change CFA-633's baud rate. CFA-633 will send acknowledge packet this command change baud rate value. host should send baud rate command, wait positive acknowledge from CFA-633 baud rate, then switch itself baud rate. baud rate must saved command Store Current State Boot State (Pg. want CFA-633 power baud rate. factory default baud rate 19200. type data_length data[1]: 19200 baud 115200 baud return packet will type 0x40 data_length
Configure GPIO
CFA-633 (hardware versions v1.4 firmware versions five pins user-definable general purpose input output (GPIO). These pins shared with functions. careful when configure GPIO want same time. architecture CFA-633 allows great flexibility configuration GPIO pins. They input output. They output constant high signals variable duty cycle signal. output mode using (and suitable current limiting resistor), turned even dimmed under host software control. With suitable external circuitry, GPIOs also used drive external logic power transistors. CFA-633 continuously polls GPIOs inputs present level queried host software lower rate. CFA-633 also keeps track whether there were rising falling edges since last host query (subject resolution sampling). This means that host forced poll quickly order detect short events. algorithm used CFA-633 read inputs inherently "bounce-free".
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
GPIOs also have "pull-up" "pull-down" modes. These modes useful when using GPIO input connected switch since external pull-up pull-down resistor needed. instance, GPIO pull Then when switch connected between GPIO ground open, reading GPIO will return "1". When switch closed, input will return "0". Pull-up/pull-down resistance values approximately exceed current GPIO. NOTE SETTING CONFIGURING GPIO PINS GPIO pins also used control through header temperature sensing through CFA-633's header. factory default, GPIO output setting, function, drive mode correctly enable operation functions. GPIO output setting, function, drive mode must correct values order functions work. Improper this command disable functions.The 633_WinTest used easily check reset GPIO configuration default state functions will work. GPIO configuration items stored command Store Current State Boot State (Pg. 21). type: data_length: bytes change value only bytes change value configure function drive mode
data[0]: index GPIO modify GPIO[0] GPIO[1] (default Host Power Sense) GPIO[2] (default Host Power Control) GPIO[3] (default Host Reset Control) GPIO[4] (default I/O-always hardware pull-up) 5-255: reserved Please note: Future versions this command future hardware models accept additional values data[0], which would control state future additional GPIO pins
(Continues next page.)
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
data[1] output state (actual behavior depends drive mode): Output 1-99: Output duty cycle percentage (100 nominal) Output high 101-255: invalid data[2] FDDD |||| ||||-|||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |||| |-|||| |||| |||| |||| |||| |||| |||| |||| |||| |||| ||||-function select drive mode (optional) Drive Mode (based output state 000: 1=Fast, Strong Drive 0=Resistive Pull Down 001: 1=Fast, Strong Drive 0=Fast, Strong Drive Down 010: Hi-Z, input 011: 1=Resistive Pull 0=Fast, Strong Drive Down 100: 1=Slow, Strong Drive 0=Hi-Z 101: 1=Slow, Strong Drive 0=Slow, Strong Drive Down 110: reserved, 111: 1=Hi-Z, 0=Slow, Strong Drive Down Function Port unused GPIO. will take default function such ATX, unused. user responsible setting drive correct value order default function work correctly. Port used GPIO under user control. user responsible setting drive correct value order desired GPIO mode work correctly. reserved, must
return packet will type 0x40 data_length
Read GPIO Levels Configuration State
Please command Configure GPIO (Pg. details GPIO architecture. type: data_length:
data[0]: index GPIO query GPIO[0] GPIO[1] (default Host Power Sense) GPIO[2] (default Host Power Control) GPIO[3] (default Host Reset Control) GPIO[4] (default I/O-always hardware pull-up) 5-255: reserved
Please note: Future versions this command future hardware models accept additional values data[0], which would return status future additional GPIO pins
(Continues next page.)
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
returns: data[0] index GPIO read data[1] state changes since last poll -RFS Enable Reporting this Fan's Tach Input |||| ||||- state last reading |||| |||- least falling edge |||| been detected since last poll |||| least rising edge |||| been detected since last poll |||| reserved (This reading actual state, which agree with setting, depending drive mode load presented external circuitry. pins polled approximately asynchronously with respect this command. Transients that happen between polls will detected.) data[2] Requested level/PWM level 0-100: Output duty cycle percentage (This value requested duty cycle. actual toggling agreement with this value, depending drive mode load presented external circuitry) data[3] function select drive mode FDDD |||| ||||- Drive Mode |||| |||| 000: 1=Fast, Strong Drive 0=Resistive Pull Down |||| 001: 1=Fast, Strong Drive 0=Fast, Strong Drive Down |||| 010: Hi-Z, input |||| 011: 1=Resistive Pull 0=Fast, Strong Drive Down |||| 100: 1=Slow, Strong Drive 0=Hi-Z |||| 101: 1=Slow, Strong Drive 0=Slow, Strong Drive Down |||| 110: reserved |||| 111: 1=Hi-Z, 0=Slow, Strong Drive Down |||| |||| Function |||| |||| Port unused GPIO. will take default |||| function such ATX, unused. user |||| responsible setting drive correct |||| value order default function work |||| correctly. |||| Port used GPIO under user control. user |||| responsible setting drive correct |||| value order desired GPIO mode work |||| correctly. ||||- reserved, will return
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
CHARACTER GENERATOR (CGROM)
find code given character, numbers that shown bold column. example, superscript column labeled "128d" labeled "9d". would 137. When send byte with value display, then superscript will shown.
Figure Character Generator (CGROM)
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
CFA-633 MODULE OUTLINE DRAWING
Figure CFA-633 Module Outline Drawing v1.5a identical v1.0)
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
CFA-633 KEYPAD OUTLINE DRAWING
Figure CFA-633 Keypad Outline Drawing (v1.5a identical v1.0)
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
JUMPER LOCATIONS FUNCTIONS
CFA-633 twenty-one jumpers. through JP18 changed. jumpers normally open. jumpers closed melting ball solder across their gap.You re-open jumpers removing solder. Solder wick works well this.
Figure CFA-633 Jumper Locations Functions
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
CARE HANDLING PRECAUTIONS
optimum operation CFA633-TMC-KS prolong life, please follow precautions described below.
ELECTROSTATIC DISCHARGE (ESD)
Please industry standard antistatic precautions would other such expansion cards motherboards. Ground your body, work surfaces, equipment.
DESIGN MOUNTING
protect polarizer from damage, CFA633-TMC-KS ships with protective film over glass. Please peel protective film slowly. Peeling protective film abruptly generate static electricity. using Crystalfontz overlay, place transparent plate (for example, acrylic, polycarbonate, glass) front CFA633-TMC-KS, leaving small between plate display surface. HP-92 Lexan, which readily available works well. disassemble modify CFA633-TMC-KS. Solder only terminals. reverse polarity power supply connections. Reversing polarity will immediately ruin module.
AVOID SHOCK, IMPACT, TORQUE, TENSION
expose CFA633-TMC-KS strong mechanical shock, impact, torque, tension. drop, toss, bend, twist CFA633-TMC-KS. place weight pressure CFA633-TMC-KS.
PANEL BREAKS
panel breaks, careful liquid crystal fluid your mouth eyes. liquid crystal fluid touches your skin, clothes, work surface, wash immediately using soap plenty water. panel.
CLEANING
clean front LCD, standard household glass cleaner works well. Gently wipe with nonabrasive soft cloth. CFA633-TMC-KS without Crystalfontz overlay: exposed surface "glass" actually front polarizer laminated glass. polarizer made fairly soft plastic easily scratched damaged. polarizer will eventually become hazy take great care when cleaning Long contact with moisture (from condensation cleaning) permanently spot stain polarizer.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
OPERATION
Your circuit should designed protect CFA633-TMC-KS from power supply transients. Observe operating temperature limitations: minimum maximum 50°C with minimal fluctuation. Operation outside these limits shorten life and/or harm display. lower temperatures this range, response time delayed. higher temperatures this range, display becomes dark. (You need adjust contrast.) Operate away from dust, moisture, direct sunlight.
STORAGE
Store ESD-approved container away from dust, moisture, direct sunlight. -10°C minimum, 60°C maximum with minimal fluctuation. Rapid temperature changes cause moisture form, resulting permanent damage. allow weight placed CFA633-TMC-KSs while they storage.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
APPENDIX CONNECTING DS2450 1-WIRE QUAD CONVERTER
This appendix describes simple test circuit that demonstrates connect Dallas Semiconductor DS2450 4channel CFA-633's "DOW" (Dallas Wire) connector. also gives sample command sequence initialize read ADC. devices connected CFA-633. this example DS2450 appears device index Your software should query connected devices using command Read Device Information (Pg. verify locations types devices connected your application. Please refer DS2450 Data Sheet description command Arbitrary Transaction (Pg. more information.
Appendix Figure CFA-633 Test Circuit Schematic
Start 633_WinTest open Packet Debugger dialog. Select Command Arbitrary Transaction, then paste each string below into data field send packet. response should similar what shown.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
//Write 0x40 (=64) address 0x1C (=28) leave analog circuitry //(see page data sheet) <command \000\002\085\028\000\064 <response> C=84(d=0):2E,05,22 //16 "i-button" 8-bit "DOW" //Consult "i-button" docs check 16-bit //DOW probably useless this device. //Write channels control/status bits, 5.10v range) <command \000\002\085\008\000\000 address channel <response> C=84(d=0):6F,F1,68 16-bits, output <command \000\002\085\009\000\001 address channel high <response> C=84(d=0):FF,F1,AB alarms, 5.1v <command \000\002\085\010\000\000 address channel <response> C=84(d=0):CE,31,88 16-bits, output <command \000\002\085\011\000\001 address channel high <response> C=84(d=0):5E,31,4B alarms, 5.1v <command \000\002\085\012\000\000 address channel <response> C=84(d=0):2E,30,A3 16-bits, output <command \000\002\085\013\000\001 address channel high <response> C=84(d=0):BE,30,60 alarms, 5.1v <command \000\002\085\014\000\000 address channel <response> C=84(d=0):8F,F0,43 16-bits, output <command \000\002\085\015\000\001 address channel high <response> C=84(d=0):1F,F0,80 alarms, 5.1v //Read channels control/status (check only) <command \000\010\170\008\000 <response> //Repeat next commands each conversion (two cycles shown) //Start conversion channels <command \000\002\060\015\000 <response> C=84(d=0):3A,03,28 //Read channels <command \000\010\170\000\000 <response> //Decoded response: 0x3300 13056 1.016015625 0x64DF 25823 2.009541321 0x9684 38532 2.998553467 0xC86A 51306 3.992623901 volts volts volts volts (channel (channel (channel (channel
//Start conversion channels <command \000\002\060\015\000 <response> C=84(d=0):3A,03,28 //Read channels <command \000\010\170\000\000 <response> //Decoded response: 0x336B 13163 1.024342346 0x64B2 25778 2.006039429 0x9697 38551 3.000032043 0xC842 51266 3.989511108 volts volts volts volts (channel (channel (channel (channel
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
APPENDIX CONNECTING DS1963S IBUTTON
This appendix describes connecting Dallas Semiconductor DS1963S Monetary iButton with SHA-1 Challenge Response Algorithm nonvolatile CFA-633's (Dallas Wire) connector. also gives sample command sequence read write DS1963S's scratch memory. DS1963S used secure dongle protect your system's application software from being copied. Even communication channel compromised host authentic, algorithm ensures that data still secure. Please following Maxim/Dallas white papers application notes more information: White Paper Devices Used Small Cash Systems White Paper Using 1-Wire Public-Domain White Paper 1-Wire SHA-1 Devices Secure? White Paper Glossary 1-Wire SHA-1 Terms Note 1201: White Paper 1-Wire SHA-1 Overview Note 150: Small Message Encryption using Devices Note 152: iButton Secrets Challenges Note 154: Passwords Authentication Note 156: DS1963S 1-Wire Users Guide Note 157: iButton Overview Note 190: Challenge Response with 1-Wire devices devices connected CFA-633. this example DS1963S appears device index Your software should query connected devices using command Temperature Reporting (Pg. verify locations types devices connected your application. Please refer DS1963S Data Sheet description command Arbitrary Transaction (Pg. more information. connect DS1963S CFA-633, simply make connection between DS1963S's "GND" terminal CFA-633 connector's pin, second connection between DS1963S's "IO" CFA-633 connector's pin. using DS9094 iButton Clip, connection easy.
Appendix Figure Connect CFA-633 Maxim/Dallas DS19632 iButton using DS9094 iButton Clip
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
demonstrate reading writing scratch memory DS1963S, open 633_WinTest Packet Debugger dialog experiment with following commands: Erase Scratchpad, Read Scratchpad, Write Scratchpad. full power DS1963S, program based Dallas/Maxim application notes listed above needed. challenge/response sequence would unwieldy demonstrate using 633_WinTest Packet Debugger dialog. First read address DS1963S detected CFA-633 boot. Since only device connected, only need query index production situation, query indices complete picture devices available bus. Command: Read Device Information Data sent: \000 Data received: first byte returned Family Code Dallas Wire iButton device. 0x18 indicates that this device DS1963. list possible Dallas Wire iButton device family codes available Note 155: 1-Wire Software Resource Guide Maxim/Dallas website. Erase Scratchpad Command (quote from Maxim/Dallas DS1963S Data Sheet): Erase Scratchpad [C3h] purpose this command clear HIDE flag wipe data that might have been left scratchpad from previous operation. After having issued command code master transmits target address, with write scratchpad command, data. Next whole scratchpad will automatically filled with bytes, regardless target address. This process takes approximately during which master reads 1's. After this master reads pattern alternating indicating that command completed. master must read least bits this alternating pattern. Otherwise device might properly respond subsequent Reset Pulse. Command: Arbitrary transaction Data sent: \000\014\xC3\000\000 Data received: "AA" bytes read pattern alternating indicating that command completed. Read Scratchpad Command (quote from Maxim/Dallas DS1963S Data Sheet) Read Scratchpad Command [AAh] HIDE Read Scratchpad command allows verifying target address, ending offset integrity scratchpad data. After issuing command code master begins reading. first bytes will target address. next byte will ending offset/data status byte (E/S) followed scratchpad data beginning byte offset (T4: T0). master read data until scratchpad after which will receive inverted generated DS1963S. master continues reading after data will logic 1's. Command: Arbitrary transaction Data sent: \000\014\xAA Data received: Since "Erase Scratchpad" previous command, "Read Scratchpad" returns 0xFF bytes expected.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Write Scratchpad Command (quote from Maxim/Dallas DS1963S Data Sheet) Write Scratchpad Command [0Fh] HIDE Target Address range 0000h 01FFh only After issuing write scratchpad command, master must first provide 2-byte target address, followed data written scratchpad. data will written scratchpad starting byte offset (T4:T0). ending offset (E4: will byte offset which master stops writing data. Only full data bytes accepted. last data byte incomplete content will ignored partial byte flag will set. When executing Write Scratchpad command generator inside DS1963S (see Figure calculates entire data stream, starting command code ending last data byte sent master. This generated using CRC16 polynomial first clearing generator then shifting command code (0FH) Write Scratchpad command, Target Addresses supplied master data bytes. master Write Scratchpad command time. However, ending offset 11111b, master send read time slots will receive generated DS1963S. Write bytes identifiable test data {0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA} scratch location Command: Arbitrary transaction Data sent: Data received: C=84(d=0):00 Read Scratchpad Command [AAh] read back data. Command: Arbitrary transaction Data sent: \000\013\xAA Data received: write bytes identifiable test data {0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78, 0x89, 0x9A, 0xAB} scratch location 0:0x0A Command: Arbitrary transaction Data sent: Data received: C=84(d=0):00 Read Scratchpad Command [AAh] read back data. Command: Arbitrary transaction Data sent: \000\013\xAA Data received: Reading writing scratch first step required communicate with DS1863S. order fully DS1963S dongle application that securely protects your software from copying, become familiar with algorithm applies iButton studying Maxim/Dallas white papers application notes listed above. Then create software application that implements secure challenge/response protocol outlined application notes.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
APPENDIX CALCULATING
Below five sample algorithms that will calculate CFA-633 packet. Some algorithms were contributed forum members originally written CFA-631. used CFA-633 same that used IrDA, which came from PPP, which least some extent seems related CCITT (ref: Network Working Group Request Comments: 1171) standard. that point, trail getting cold diverged into several referenced articles papers, dating back 1983. polynomial used (0x8408) result bit-wise inverted before being returned.
ALGORITHM TABLE IMPLEMENTATION
This algorithm typically used host computer, where code space issue. //This code from IRDA documentation, which appears //have been copied from PPP: IrLAP11_Plus_Errata.zip doubt that there worries about legality this code, //searching first line table below, appears that //the code already included linux kernel "Driver //ST5481 ISDN modem". This "industry standard" algorithm //and think there issues with all. word get_crc(ubyte *bufptr,word len) //CRC lookup table avoid bit-shifting loops. static const word crcLookupTable[256]
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
register word newCrc; newCrc=0xFFFF; //This algorithm based IrDA example. while(len-) newCrc (newCrc crcLookupTable[(newCrc *bufptr++) 0xff]; //Make this match one's complement that sent packet. return(~newCrc);
ALGORITHM SHIFT IMPLEMENTATION
This algorithm mainly written avoid possible legal issues about source routine request LCDproc group). This routine "clean" coded from definition CRC. ostensibly smaller than table driven approach will take longer execute. This routine offered under GPL. word get_crc(ubyte *bufptr,word len) register unsigned newCRC; //Put current byte here. ubyte data; bit_count; //This seed makes output this shift based algorithm match //the table based algorithm. center bits 32-bit //"newCRC" used CRC. lower byte used //to what shifted center //accumulator ("carry flag analog"); newCRC=0x00F32100; while(len-) //Get next byte stream. data=*bufptr++; //Push this byte's bits through software //implementation hardware shift xor. //Shift accumulator newCRC>>=1;
//The accumulator comes //from current data byte. if(data&0x01) newCRC|=0x00800000; //If current accumulator //before shift, then need accumulator //with polynomial (center bits 0x00840800) if(newCRC&0x00000080) newCRC^=0x00840800; //Shift data byte next stream //into position data>>=1; //All data been done. more bits data. //Shift accumulator newCRC>>=1;
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
//If current accumulator //before shift need accumulator with //0x00840800. if(newCRC&0x00000080) newCRC^=0x00840800; //Return center bits, making this match one's //complement that sent packet. return((~newCRC)>>8);
ALGORITHM "PIC ASSEMBLY" SHIFT IMPLEMENTATION
This routine graciously donated customers. Crystalfontz CFA-633 Calculation Example This example calculates hard coded example provided documentation. uses "This test. input calculates proper 0x93FA. #include "p16f877.inc" CRC16 equates storage ;-accuml BYTE result register high byte accumh BYTE result register high byte datareg BYTE data register shift BYTE counter routine Zero BYTE storage string memory read index BYTE index string memory read savchr BYTE temp storage routine seedlo 021h initial seed byte seedhi 0F3h initial seed byte polyL 008h polynomial byte polyH 084h polynomial high byte Test Program ;-org reset vector 0000H clrf PCLATH ensure upper bits cleared clrf STATUS ensure page bits cleared goto main jump start program Vector start goto jump when coded start main program main movlw seedhi setup intial seed value. movwf accumh This must done prior movlw seedlo sending string routine. movwf accuml clrf index clear string read variables main1 movlw HIGH InputStr point test string movwf PCLATH latch into
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
movfw call movwf movf btfsc goto call call incf goto main2 movlw call movlw call comf comf movfw call movfw call
index InputStr Zero Zero,f STATUS,Z main2 CRC16 SENDUART index,f main1 CRC16 CRC16 accumh,f accuml,f accuml SENDUART accumh SENDUART
index character setup terminator test terminator skip terminator else terminator reached, jump loop calculate send data bump index loop
shift accumulator more bits. This must done after sending string routine. invert result send send byte byte
stop goto stop word result 0x93FA accumh/accuml calculate input byte ;-CRC16 movwf savchr save input character movwf datareg load data register movlw setup number bits test movwf save incrementor _loop clrc clear carry register shift datareg,f perform shift data into register accumh,f accuml,f btfss STATUS,C skip jump carry goto _notset otherwise goto next movlw polyL poly mask with register xorwf accuml,F movlw polyH xorwf accumh,F _notset decfsz decrement counter goto _loop loop complete movfw savchr restore input character return return calling routine USER SUPPLIED Serial port transmit routine ;-SENDUART return serial xmit routine here test string storage ;-org 0100h InputStr addwf PCL,f 7h,10h,"This test.
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
ALGORITHM "VISUAL BASIC" TABLE IMPLEMENTATION
Visual BASIC challenges language (such initializing static arrays), also challenging Visual BASIC work with "binary" (arbitrary length character data possibly containing nulls-such "data" portion CFA-633 packet) data. This routine adapted from table implementation. complete project found forums. 'This program brutally blunt. Just like apologies. 'Written Crystalfontz America, Inc. 2004 http://www.crystalfontz.com 'Free code, copyright copyleft anything else. 'Some visual basic concepts taken from: 'most algorithm from functions 633_WinTest: 'Full project available forum:
Private Type WORD Byte Byte Type Private Type PACKET_STRUCT command Byte data_length Byte data(22) Byte WORD Type crcLookupTable(256) WORD Private MSComm_OnComm() 'Leave this here understanding visual basic very limited-however appears that there initialize array structures. Nice language. Fast processors, lots memory, 'disks, fill them with this this this STUFF. Initialize_CRC_Lookup_Table() crcLookupTable(0).Lo crcLookupTable(0).Hi 'For purposes brevity this data sheet, have removed entries this table, 'full source available forum: crcLookupTable(255).Lo &H78 crcLookupTable(255).Hi 'This function returns array data length positions Private Function Get_Crc(ByRef data() Byte, ByVal length Integer) WORD Index Integer Table_Index Integer newCrc WORD newCrc.Lo &HFF newCrc.Hi &HFF Index length 'exclusive-or input byte with low-order byte register index into crcLookupTable Table_Index newCrc.Lo data(Index) 'shift register eight bits right newCrc.Lo newCrc.Hi newCrc.Hi exclusive-or register with contents Table Table_Index newCrc.Lo newCrc.Lo crcLookupTable(Table_Index).Lo newCrc.Hi newCrc.Hi crcLookupTable(Table_Index).Hi
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
Next Index 'Invert return newCrc Get_Crc.Lo newCrc.Lo &HFF Get_Crc.Hi newCrc.Hi &HFF Function Private Send_Packet(ByRef packet PACKET_STRUCT) Index Integer 'Need whole packet into linear array 'since can't type overrides. gotta love linear_array(26) Byte linear_array(0) packet.command linear_array(1) packet.data_length Index packet.data_length linear_array(Index packet.data(Index) Next Index packet.crc Get_Crc(linear_array, packet.data_length 'Might well move into linear array linear_array(packet.data_length packet.crc.Lo linear_array(packet.data_length packet.crc.Hi 'Now simple loop dump port. Index packet.data_length MSComm.Output Chr(linear_array(Index)) Next Index
ALGORITHM "JAVA" TABLE IMPLEMENTATION
This code posted forum user "norm" working example Java calculation. public class CRC16 extends Object public static void main(String[] args) byte[] data byte[2]; data[0] 0x01; data[1] 0x00; System.out.println("hw req");
ping data[0] 0x00; data[1] 0x00; System.out.println("ping"); reboot data[0] 0x05; data[1] 0x00; System.out.println("reboot"); clear data[0] 0x06; data[1] 0x00; System.out.println("clear lcd"); line data byte[18]; data[0] 0x07; data[1] 0x10; String text "Test Test Test byte[] textByte text.getBytes(); (int i=0; text.length(); i++) data[i+2] textByte[i]; System.out.println("text 1");
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
private CRC16() private static final int[] crcLookupTable public static compute(byte[] data) newCrc 0x0FFFF; (int data.length; lookup crcLookupTable[(newCrc data[i]) 0xFF]; newCrc (newCrc lookup; return(~newCrc);
ALGORITHM "PERL" TABLE IMPLEMENTATION
This code translated from version customers. #!/usr/bin/perl
strict; @CRC_LOOKUP
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
test packet read from enter press over serial line: type (key press) data_length byte data) data
$type '80'; $length '01'; $data '05'; $packet $type $length $data $valid_crc '5584' print Packet ($packet) Should Equal ($valid_crc)\n"; $crc 0xFFFF printf("%x\n", $crc); foreach $char (split $packet) newCrc (newCrc crcLookupTable[(newCrc *bufptr++) 0xff]; bitwise bitwise bitwise shift right $crc ($crc $CRC_LOOKUP[($crc ord($char) 0xFF] print running each byte printf("%x\n", $crc); complement $crc ~$crc $crc ($crc 0xFFFF) print printf("%x\n", $crc);
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
APPENDIX QUALITY ASSURANCE STANDARDS
INSPECTION CONDITIONS
Environment Temperature: 25±5°C Humidity: 30~85% visual inspection active display area Source lighting: Watt Watt fluorescent light Display adjusted best contrast Viewing distance: 30±5 (about inches) Viewable angle: inspect angle vertical line right left, bottom
DEFINITION ACTIVE AREA VIEWABLE AREA
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
ACCEPTANCE SAMPLING
DEFECT TYPE Major Minor <0.65% <1.00% AQL*
*Acceptable Quality Level: maximum allowable error rate variation from standard
DEFECTS CLASSIFICATION
Defects defined Major Defect: results failure substantially reduces usability unit intended purpose Minor Defect: deviates from standards likely reduce usability intended purpose
ACCEPTANCE STANDARDS
MAJOR MINOR Major Major Major Acceptable Minor defects within each other Other blemishes foreign matter outside display segments Defect Size (mm) <0.15 0.15 0.20 0.20 0.25 0.25 0.30 Acceptable Ignore Minor
DEFECT TYPE Electrical defects Viewing area defect Contrast adjustment defect Blemishes foreign matter display segments
CRITERIA display, display malfunctions, shorted segments. Current consumption exceeds specifications. Viewing area does meet specifications. (See Inspection Conditions (Pg. 59). Contrast adjustment fails malfunctions. Defect Size (mm) <0.3
Defect size B)/2
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
DEFECT TYPE Dark lines scratches display area Defect Width (mm) <0.03 0.03 0.05 0.05 0.08 0.08 0.10 >0.10
CRITERIA Defect Length (mm) <3.0 <2.0 <2.0 >3.0 Defect Size (mm) <0.20 0.20 0.40 0.40 0.60 >0.60 Acceptable Acceptable Ignore
Minor
Bubbles between polarizer film glass
Minor
Glass rest defect
a<1/4W
Minor
Display pattern defect
Size (mm) ((A+B)/2)<0.2 ((D+E)/2)<0.25 ((F+G)/2)<0.25
Acceptable
Minor
total defects pinholes digit
MAJOR MINOR
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
DEFECT TYPE Chip corner
CRITERIA
Minor
Chip "non-contact" edge
Acceptable
Minor Chip "contact" edge LCD, active side <1.5 Acceptable Ignore
Minor
<W/4
Acceptable Ignore
<W/4
MAJOR MINOR
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
DEFECT TYPE Chip "contact" edge LCD, inactive side
CRITERIA
Minor Chip seal area <1.5 Acceptable Ignore
<1.5
<1/2
Acceptable Minor Major
Unacceptable c>50% glass thickness seal area damaged. Backlight defects Light fails flickers. (Major) Color luminance correspond specifications. (Major) Exceeds standards display's blemishes foreign matter (see test 60), dark lines scratches (see test 61). (Minor) Pinholes >0.2 Seal surface pinholes through More than locations sealant beyond sealed areas. Oxidation contamination connectors.* Wrong parts, missing parts, parts specification.* Jumpers incorrectly. (Minor) Solder any) bezel, pad, zebra pad, screw hole smooth. (Minor)
*Minor display functions correctly. Major display fails.
list
defects
Minor
defects
list
MAJOR MINOR
Crystalfontz America, Inc. www.crystalfontz.com December 2005
CFA633-TMC-KS Serial Module Data Sheet Hardware v1.5a Firmware k1.9 Data Sheet k1.9c Page
DEFECT TYPE Soldering defects
CRITERIA Unmelted solder paste. Cold solder joints, missing solder connections, oxidation.* Solder bridges causing short circuits.* Residue solder balls. Solder flux black brown.
*Minor display functions correctly. Major display fails.
Minor
MAJOR MINOR

Other recent searches


TM1019 - TM1019   TM1019 Datasheet
SCT-595 - SCT-595   SCT-595 Datasheet
RD02MUS2 - RD02MUS2   RD02MUS2 Datasheet
HCF4042B - HCF4042B   HCF4042B Datasheet
GJ88L02 - GJ88L02   GJ88L02 Datasheet
AK4620B - AK4620B   AK4620B Datasheet

 

Privacy Policy | Disclaimer
© 2012 Datasheet Archive