SOC-4000-0001-SP [ETC]

Scale-On-Chip ASIC Technical Specification; 尺度片ASIC技术规格
SOC-4000-0001-SP
型号: SOC-4000-0001-SP
厂家: ETC    ETC
描述:

Scale-On-Chip ASIC Technical Specification
尺度片ASIC技术规格

文件: 总97页 (文件大小:1017K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
SOC-4000/i  
Scale-On-Chip ASIC  
Technical Specification  
Document order number: SOC-4000-0001-SP  
August 2002  
SOC-4000/i  
Scale-On-Chip ASIC  
Technical Specification  
Document order number: SOC-4000-0001-SP  
August 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
2002 CybraTech (1998) Ltd. All rights reserved.  
CybraTech (1998) Ltd. reserves the right to alter the equipment specifications and descriptions in this publication  
without prior notice. No part of this publication shall be deemed to be part of any contract or warranty unless  
specifically incorporated by reference into such contract or warranty.  
The information contained herein is merely descriptive in nature, and does not constitute a binding offer for the sale of  
the product described herein.  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
TABLE OF CONTENTS  
GENERAL....................................................................................................................................................1  
GENERAL DESCRIPTION ............................................................................................................................2  
ADVANTAGES............................................................................................................................................2  
SPECIFICATIONS......................................................................................................................................3  
ANALOG-TO-DIGITAL CONVERTER (ADC)...............................................................................................3  
A/D Converter Main Channel – Wheatstone Bridge (Load Cell) .........................................................3  
A/D Converter Auxiliary Channel.........................................................................................................3  
A/D Converter Reference......................................................................................................................3  
DIGITAL INPUT ..........................................................................................................................................4  
DIGITAL OUTPUT.......................................................................................................................................4  
FLASH MEMORY........................................................................................................................................4  
CPU...........................................................................................................................................................5  
FREQUENCY SOURCE INPUT......................................................................................................................5  
POWER SUPPLY AND MONITOR.................................................................................................................5  
ENVIRONMENTAL CONDITIONS.................................................................................................................5  
ABSOLUTE MAXIMUM RATING .................................................................................................................6  
DIMENSIONS ..............................................................................................................................................6  
SCALE MAIN BOARD LAYOUT AND ASSEMBLY PROCESS PARAMETERS FOR SOC-4000........................7  
PIN CONFIGURATION.............................................................................................................................9  
CPU 80C51TBO .........................................................................................................................................15  
MEMORY .................................................................................................................................................16  
Organization .......................................................................................................................................16  
Program Memory Mapping.................................................................................................................16  
Program Memory Bank Select Register..............................................................................................16  
Application Program Start Address ....................................................................................................16  
Serial Downloading (In-Circuit Programming)..................................................................................17  
Using the Flash for Data Memory ......................................................................................................18  
Data Memory Mapping.......................................................................................................................19  
CPU SFRs and Configuration Registers (CFRs) ................................................................................20  
INSTRUCTION SET....................................................................................................................................20  
RESET ......................................................................................................................................................20  
INTERRUPT VECTORS ..............................................................................................................................20  
ADC CONTROLLER INTERFACE .......................................................................................................23  
CONTROLLER REGISTERS........................................................................................................................23  
Semaphore Register.............................................................................................................................23  
Control Register..................................................................................................................................24  
Status/Data Registers..........................................................................................................................24  
Revision B  
Page i  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
OPERATION ..............................................................................................................................................26  
KEYBOARD CONTROLLER................................................................................................................. 29  
CONTROLLER REGISTERS ........................................................................................................................31  
REGISTERS DESCRIPTION.........................................................................................................................31  
Control Register ..................................................................................................................................31  
Data Registers .....................................................................................................................................31  
OPERATION ..............................................................................................................................................32  
LED/VFD SERIAL INTERFACE DISPLAY CONTROLLER ........................................................... 35  
REGISTERS DESCRIPTION.........................................................................................................................36  
Control Register ..................................................................................................................................37  
Semaphore Register.............................................................................................................................37  
Data Registers .....................................................................................................................................37  
OPERATION ..............................................................................................................................................38  
PRINTER SERIAL INTERFACE CONTROLLER ............................................................................. 39  
REGISTERS DESCRIPTION.........................................................................................................................40  
Semaphore Register.............................................................................................................................40  
Control Register ..................................................................................................................................40  
Data Registers .....................................................................................................................................41  
OPERATION ..............................................................................................................................................42  
PRINTER HEAD DATA INTERFACE OPERATION .......................................................................................43  
STROBE CONTROLLER ....................................................................................................................... 45  
REGISTER DESCRIPTION ..........................................................................................................................47  
Strobe Clock Enable Control Register ................................................................................................47  
Trigger Registers.................................................................................................................................48  
Data Registers .....................................................................................................................................48  
OPERATION ..............................................................................................................................................50  
PRINTER MOTOR AND SENSOR INTERFACE ............................................................................... 51  
PRINTER MOTOR OPERATION..................................................................................................................51  
INTERFACING THE PRINTER OPTO-SENSORS ...........................................................................................51  
IMPLEMENTING END OF LABEL DETECTOR.............................................................................................53  
IMPLEMENTING LABEL PEEL-OFF DETECTOR:.........................................................................................53  
CONNECTING THE PRINTER HEAD THERMISTOR TO THE SOC-4000.......................................................54  
PROGRAMMABLE FREQUENCY CONTROLLER.......................................................................... 57  
CONTROL REGISTERS DESCRIPTION........................................................................................................58  
OPERATION ..............................................................................................................................................58  
WATCHDOG TIMER.............................................................................................................................. 59  
CONTROL REGISTERS DESCRIPTION........................................................................................................59  
OPERATION ..............................................................................................................................................59  
LOW VOLTAGE DETECTOR............................................................................................................... 61  
POWER FAILURE INTERRUPT REGISTER ..................................................................................................61  
CONFIGURATION REGISTERS - CFR............................................................................................... 63  
Revision B  
Page ii  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
SPECIAL FUNCTION REGISTERS (SFR) ...........................................................................................67  
GLOBAL CFR REGISTER..........................................................................................................................67  
Operation ............................................................................................................................................67  
CONTROLLERS CLOCK ENABLE REGISTERS............................................................................................67  
CONTROLLERS RESET REGISTERS .........................................................................................................69  
I/O OPERATION.......................................................................................................................................71  
8051-COMPATIBLE ON-CHIP PERIPHERALS..................................................................................73  
PARALLEL I/O PORTS ..............................................................................................................................73  
Timers/Counters..................................................................................................................................73  
SOC-4000 INITIALIZATION ..................................................................................................................75  
PERIPHERAL INTERFACE CONNECTIONS ....................................................................................77  
LOAD CELL INTERFACE...........................................................................................................................77  
4-Wire and 6-Wire Interfaces..............................................................................................................77  
Load Cells Connected in Parallel .......................................................................................................79  
Load Cell Impedance ..........................................................................................................................80  
SERIAL COMMUNICATION CHANNEL MULTIPLEXER ..............................................................................80  
RS-485 Serial Interface Transmit / Receive Control...........................................................................80  
KEYBOARD INTERFACE ...........................................................................................................................81  
LED/VFD SERIAL DISPLAY INTERFACE .................................................................................................83  
EXTERNAL INTERRUPT SOURCES ............................................................................................................83  
Using the Vdet input:...........................................................................................................................84  
Using Timer0 and Timer1 inputs: .......................................................................................................84  
I2C-COMPATIBLE INTERFACE..................................................................................................................84  
POWER SAVING SCHEMES .......................................................................................................................84  
IN-CIRCUIT EMULATOR (ICE) SYSTEM...................................................................................................85  
GROUNDING AND BOARD LAYOUT RECOMMENDATIONS.......................................................................85  
LCD DISPLAY MODULE INTERFACE .......................................................................................................86  
Revision B  
Page iii  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
LIST OF FIGURES  
FIGURE 1:  
FIGURE 2:  
FIGURE 3:  
FIGURE 4:  
FIGURE 5:  
FIGURE 6:  
FIGURE 7:  
FIGURE 8:  
FIGURE 9:  
FIGURE 10:  
FIGURE 11:  
FIGURE 12:  
FIGURE 13:  
FIGURE 14:  
FIGURE 15:  
FIGURE 16:  
FIGURE 17:  
FIGURE 18:  
FIGURE 19:  
FIGURE 20:  
FIGURE 21:  
FIGURE 22:  
FIGURE 23:  
FIGURE 24:  
FIGURE 25:  
FIGURE 26:  
FIGURE 27:  
FIGURE 28:  
FIGURE 29:  
FIGURE 30:  
FIGURE 31:  
FIGURE 32:  
SOC-4000 TYPICAL APPLICATION ........................................................................................ 1  
SOC-4000 MAXIMAL BLOCK DIAGRAM ............................................................................... 2  
MECHANICAL OUTLINE DRAWING ........................................................................................ 6  
PCB BOARD LAYOUT ............................................................................................................ 7  
SOC-4000 PIN ARRANGEMENT ........................................................................................... 12  
SOC-4000 PIN CONFIGURATION ......................................................................................... 13  
CPU BLOCK DIAGRAM........................................................................................................ 15  
SOC-4000/I STARTUP PROCEDURE ..................................................................................... 17  
SOC-4000 PROGRAM MEMORY MAP.................................................................................. 18  
SOC-4000 DATA MEMORY MAP......................................................................................... 19  
KEYBOARD MATRIX CONFIGURATION ................................................................................ 30  
LED/VFD SERIAL INTERFACE DISPLAY BLOCK DIAGRAM ................................................ 35  
LED/VFD SERIAL INTERFACE CONTROLLER TIMING DIAGRAM........................................ 36  
PRINTER INTERFACE BLOCK DIAGRAM ............................................................................... 39  
SERIAL HEAD TIMING DIAGRAM ......................................................................................... 43  
PRINTER STROBE STRETCHER ............................................................................................. 45  
AUXILIARY MOTOR (AUXMOTOR) PULSE STRETCHER (PIN 29)...................................... 46  
PRINTER POWER (VPP) PULSE STRETCHER (PIN 28)........................................................... 46  
PRINTER MOTOR TIMING DIAGRAM .................................................................................... 51  
OPTO-SENSOR INTERFACE TO SOC-4000 ............................................................................ 52  
END OF LABEL DETECTOR .................................................................................................. 53  
PEEL-OFF LABEL DETECTOR (AUTO).................................................................................. 53  
EXAMPLE OF RESISTANCE/TEMPERATURE VARIATION FOR THE THERMISTOR ................. 54  
THERMISTOR SENSOR .......................................................................................................... 55  
CLOCK GENERATOR BLOCK DIAGRAM ............................................................................... 57  
LOW VOLTAGE DETECTOR .................................................................................................. 61  
4-WIRE LOAD-CELL CONNECTION ...................................................................................... 78  
6-WIRE LOAD-CELL CONNECTION ...................................................................................... 78  
MULTIPLE LOAD-CELL CONNECTION.................................................................................. 79  
KEYBOARD INTERFACE ....................................................................................................... 82  
SOC-4000 INTERFACE TO A LED/VFD DISPLAY ................................................................ 83  
LCD DISPLAY MODULE HARDWARE INTERFACE ............................................................... 86  
Revision B  
Page iv  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
LIST OF TABLES  
TABLE 1: SOC-4000 PIN CONFIGURATION FOR PRINTER..........................................................................9  
TABLE 2: INTERRUPT VECTORS DESCRIPTION.........................................................................................21  
TABLE 3: ADC CONTROLLER REGISTERS DESCRIPTION .........................................................................23  
TABLE 4: ADC CONTROLLER INTERFACE SEMAPHORE REGISTER BIT DEFINITIONS .............................23  
TABLE 5: ADC CONTROLLER INTERFACE CONTROL REGISTER BIT FUNCTIONS....................................24  
TABLE 6: ADC CONTROLLER INTERFACE DATA REGISTER BIT DEFINITIONS........................................24  
TABLE 7: ADC CONTROLLER INTERFACE DATA REGISTER BIT FUNCTIONS ..........................................25  
TABLE 8: ADC OUTPUT COUNTS VS. ADC SETTINGS ..........................................................................27  
TABLE 9: KEYBOARD CONTROLLER REGISTERS DESCRIPTION ...............................................................31  
TABLE 10:  
TABLE 11:  
TABLE 12:  
TABLE 13:  
TABLE 14:  
TABLE 15:  
TABLE 16:  
TABLE 17:  
TABLE 18:  
TABLE 19:  
TABLE 20:  
TABLE 21:  
TABLE 22:  
TABLE 23:  
TABLE 24:  
TABLE 25:  
TABLE 26:  
TABLE 27:  
TABLE 28:  
TABLE 29:  
TABLE 30:  
TABLE 31:  
TABLE 32:  
TABLE 33:  
TABLE 34:  
TABLE 35:  
TABLE 36:  
TABLE 37:  
TABLE 38:  
TABLE 39:  
TABLE 40:  
TABLE 41:  
TABLE 42:  
KEYBOARD CONTROLLER CONTROL REGISTER BIT FUNCTIONS.........................................31  
KEYBOARD CONTROLLER DATA REGISTER BIT DEFINITIONS.............................................32  
LED SERIAL CONTROLLER DRIVER REGISTERS DESCRIPTION............................................36  
LED/VFD SERIAL INTERFACE DISPLAY CONTROL REGISTER BIT FUNCTIONS ..................37  
LED/VFD SERIAL INTERFACE DISPLAY DATA REGISTER BIT DEFINITIONS.......................38  
PRINTER INTERFACE CONTROLLER REGISTERS DESCRIPTION.............................................40  
PRINTER INTERFACE CONTROLLER CONTROL REGISTER BIT FUNCTIONS...........................40  
PRINTER INTERFACE CONTROLLER DATA REGISTER BIT DEFINITIONS...............................41  
STRETCHER CONTROLLER REGISTERS DESCRIPTION...........................................................47  
STROBE CLOCK ENABLE CONTROL REGISTER BIT FUNCTIONS...........................................47  
TRIGGER REGISTER DEFINITIONS.........................................................................................48  
STRETCHER CONTROLLER DATA REGISTER BIT DEFINITIONS ............................................48  
STRETCHER RESET REGISTER DEFINITIONS.........................................................................49  
PRINTER SENSORS INTERFACE .............................................................................................52  
ADC CHANNEL 2 OUTPUT RANGE ........................................................................................55  
CLOCK FREQUENCY CONTROL REGISTER BIT SETTINGS.....................................................58  
WATCHDOG TIMER OPERATING PARAMETERS ....................................................................59  
WATCHDOG TIMER COMMAND SEQUENCE..........................................................................59  
POWER-FAILURE INTERRUPT REGISTER BIT SETTINGS .......................................................61  
CFR BIT CONFIGURATION ...................................................................................................64  
GLOBAL CFR REGISTER.......................................................................................................67  
C200H CLOCK ENABLE REGISTER.......................................................................................67  
C200H CONTROLLERS CLOCK ENABLE REGISTER BIT FUNCTIONS ....................................68  
C201H CONTROLLERS CLOCK ENABLE REGISTER BIT FUNCTIONS ....................................68  
CONTROLLERS RESET REGISTER........................................................................................69  
BIT-ORIENTED I/O PORTS ADDRESSES, PIN AND BIT ASSIGNMENT....................................71  
BYTE-ORIENTED OUTPUT PORTS ADDRESSES AND PIN ASSIGNMENT ................................72  
AVAILABLE PINS ON THE 80C51 I/O PORT ..........................................................................73  
COMMUNICATION CHANNEL MULTIPLEXER CONTROL .......................................................80  
I2C-COMPATIBLE INTERFACE HARDWARE INTERFACE.......................................................84  
SOC-4000 INTERFACE SIGNALS TO LCD DISPLAY MODULE ..............................................86  
LCD DISPLAY MODULE INTERFACE SIGNALS .....................................................................87  
REGISTERS ADDRESSES AND FUNCTION ..............................................................................87  
Revision B  
Page v  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
GENERAL  
Sample Rate – 5, 10, 20 samples/sec  
Programmable gain – 0.5, 0.75, 1, 1.5, 2  
CPU  
Enhanced 80C51TBO  
4 cycles/instruction  
Features  
Scale-On-Chip System  
Single-Chip Printer Scale electronics  
Full OIML R-76 compliance  
SOC-4000–3000 d  
512 KByte, field-programmable Flash  
SOC-4000i–6000 d  
Up to eight load cells  
program and data memory  
Up to 512 KByte SRAM with battery backup  
6-wire load cell connection (including Sense  
support  
inputs)  
4KByte non-volatile Data Flash  
Power  
5/3.3V operation, 10mA  
Power failure detector  
Peripherals  
Display Supports LCD, LED and VFD:  
LED: Up to 24 digits  
VFD: Up to 24 digits  
LCD Module: 4 lines x 20 characters  
Keyboard: Up to 128 keys  
Serial communication: RS-232/485  
I/O (set-points): Up to 16 lines  
Temperature sensor input  
Applications  
Price computing printer scales  
Weighing indicators  
Counting scales  
Checkout scales  
Analog-to-Digital Converters  
Resolution – 20 bits  
LED Module  
LCD Module  
8 . . . . . 888  
VFD Module  
Exc+  
x2  
Tx/Rx  
Sig+  
Exc-  
Head  
SOC-4000  
Sensors  
Motor  
Sig-  
Load Cell  
V
I/O  
IN  
KB 1-8 KBI 1-16  
V
(Setpoints)  
Buzzer  
IN  
Buzzer  
Keyboard  
Up to 128 keys  
Vcc  
FIGURE 1:SOC-4000 TYPICAL APPLICATION  
Revision B  
Page 1  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
General Description  
The SOC-4000 ASIC is an 84-pin, single-chip scale intended to replace present-day,  
multiple-component weighing printer scale electronic circuitry designs. It includes the  
pre-amplifier, A/D converter, display drivers, keyboard controller, printer drivers, serial  
communication, embedded CPU and field-programmable program and data memory.  
As a "stand-alone" unit it incorporates all scale hardware functions and represents a true  
breakthrough in scale manufacturing. It eliminates the risks, costs and inventory needs  
associated with discrete components.  
The SOC-4000 comes with a comprehensive software library, which implements  
hardware drivers, such as the display, keyboard and printer, as well as most of the  
standard weighing functions. A complete development environment is available,  
enabling the user to tailor and customize the application according to specific needs.  
The general SOC-4000 block diagram is presented in Figure 2.  
Advantages  
Generic OIML R-76 approval  
Minimize hardware and software development  
Significantly cuts time-to-market  
Reduces inventory needs  
Displays  
Ref+  
Ref-  
Serial Display Controllers  
LCD / LED / VFD  
20 - 24 Digits  
MicroController Core And  
Peripherals  
Load  
Cell  
PGA  
Delta - Sigma  
ADC  
Serial Communication (2)  
(RS-232 / RS-485)  
20 Bits  
80C51TBO  
512K x 8 Program / Data Flash  
512K x 8 RAM  
Watchdog Timer  
3 x 16-Bit Timers  
Power Supply Monitor  
I2C Compatible  
SPI Like Serial Interfaces  
UART  
MUX  
Printer Head  
Aux.  
Channel  
Printer  
Printer  
Motor  
Printer  
Sensors  
Controller  
Power-Down  
Detector  
VDET  
I/O  
8
Internal  
Bandgap  
Reference  
Keyboard Controller  
8 x 16  
Frequency Controller  
8
Oscillator/  
Resonator  
Keyboard  
FIGURE 2:SOC-4000 MAXIMAL BLOCK DIAGRAM  
Revision B  
Page 2  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
SPECIFICATIONS  
Analog-to-Digital Converter (ADC)  
A/D Converter Main Channel – Wheatstone Bridge (Load Cell)  
PARAMETER  
Differential Input Voltage  
Programmable Gain  
Offset Drift vs. Temperature  
Gain Drift vs. Temperature  
Integral Non-linearity  
Common-Mode Rejection (CMR)  
Power Supply Rejection  
Output Noise  
MIN TYP MAX  
UNIT  
COMMENTS  
0
+10 mV  
0.5  
2
20  
4
Up to 8 load cell  
ppm/ºC  
ppm/ºC  
<0.004 %  
dB  
Of full scale  
±1 count  
120  
120  
dB  
200  
10  
nVp-t-p  
bit  
Resolution  
20  
20  
Sample Rate  
5
Samples/s  
A/D Converter Auxiliary Channel  
PARAMETER  
Analog Input Voltage  
Offset Drift  
MIN  
0
TYP  
10  
MAX  
UNIT  
COMMENTS  
1
V
20  
4
ppm/ºC  
ppm/ºC  
Bit  
Gain Drift  
Resolution  
20  
20  
Sample Rate  
5
Samples/s  
A/D Converter Reference  
PARAMETER  
Reference Input  
MIN  
TYP  
MAX  
5
UNIT  
V
COMMENTS  
Ratiometric  
Revision B  
Page 3  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Digital Input  
PARAMETER  
VIH (Input High Voltage)  
VIL (Input Low Voltage)  
XTAL Input  
MIN  
2
TYP  
MAX  
5
UNIT  
COMMENTS  
V
V
TTL Level excluding XTAL  
TTL Level excluding XTAL  
0.0  
0.8  
V
IH (Input High Voltage)  
2.5  
V
V
V
DD = 3.3V  
DD = 3.3V  
VIL (Input Low Voltage)  
0.4  
V
Digital Output  
PARAMETER  
MIN TYP MAX UNIT  
COMMENTS  
VOH (Output High Voltage)  
VOL (Output Low Voltage) 0.0  
3.3  
0.8  
V
V
TTL Level set by user by external resistors  
TTL Level set by user by external resistors  
PARAMETER  
MIN TYP MAX UNIT  
COMMENTS  
VOH (Output High Voltage)  
VOL (Output Low Voltage) 0.0  
3.3  
0.8  
V
V
Flash Memory  
PARAMETER  
Endurance  
MIN  
10,000  
100  
TYP  
MAX  
UNIT  
Cycles  
Years  
100,000  
Data Retention  
Erase  
Full Memory  
100  
25  
ms  
ms  
us  
Single Block (4kByte)  
Program Byte  
20  
Revision B  
Page 4  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
CPU  
PARAMETER  
MIN TYP MAX UNIT  
COMMENTS  
Enhanced 80C51TBO  
RESET Threshold Level  
Start-Up Time  
3.98  
V
500  
1
ms  
ms  
From Power On  
From Idle Mode  
From Power Down  
1
ms Oscillator power-down not through OSCEN bit.  
ms Oscillator power-down through OSCEN bit.  
500  
1
ms  
From Watchdog Reset  
Frequency Source Input  
PARAMETER  
Frequency  
MIN  
TYP  
MAX  
16  
UNIT  
COMMENTS  
MHz Crystal oscillator or  
resonator  
Power Supply and Monitor  
PARAMETER  
Input Voltage Monitor  
Power Fail Input Monitor Level  
Analog Voltage Input (AVCC  
Digital Voltage Input (VCC  
Power Supply Current (IIN)  
MIN TYP MAX UNIT  
COMMENTS  
4.50  
4.75  
V
Set by external resistors  
)
4.75  
3.00  
5.00  
3.30  
5.25  
3.60  
15  
V
V
)
mA  
Environmental Conditions  
PARAMETER  
Temperature  
MIN  
-10  
-20  
0
TYP  
20  
MAX  
UNIT  
ºC  
COMMENTS  
Full performance  
Operating  
40  
70  
95  
20  
ºC  
Humidity  
%
Non-condensing  
Revision B  
Page 5  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Absolute Maximum Rating  
PARAMETER  
MIN  
MAX  
6
UNIT  
V
COMMENTS  
Analog power  
AVCC  
VDD  
4
V
Digital power  
Power  
VCC  
6
V
Input Signal Voltage  
Operating Temperature  
Storage Temperature  
Lead Temperature  
Manual soldering  
5.5  
+70  
+85  
V
–20  
–20  
ºC  
ºC  
300  
225  
ºC  
ºC  
Soldering for 10 seconds  
60 seconds  
Reflow soldering  
Dimensions  
The outline dimensions of the SOC-4000 case is shown in Figure 3.  
0.045  
X 45º  
(1.143)  
PIN 1  
Indicates relative  
locations of Pin 1  
1.150 (29.20)  
Sq.  
1.158 (29.41)  
1.185 (30.09)  
Sq.  
1.155 (30.35)  
FIGURE 3:MECHANICAL OUTLINE DRAWING  
Revision B  
Page 6  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Scale Main Board Layout And Assembly Process  
Parameters For SOC-4000  
PCB Layout and Production Guidelines  
1. Pad definition will be according to Figure 4. All dimensions are in milli-inches (mil).  
2. Solder mask opening should be 3mil (total 6 mil).  
3. Board finish may be HAL (hot air leveling), immersion gold over nickel or immersion.  
Assembly Guidelines  
4. Verify that the SOC-4000 components are packaged in hermetically sealed package. If The  
packaging is damaged or has been removed, perform the following drying procedure to assure  
that SOC-4000 components are completely dry:  
Components drying procedure:  
Place the SOC-4000 components in their tray and put them into a baking oven to  
dry at a temperature of 105ºC for a minimum of 6 hours.  
5. Reflow temperature profile should be set according to the paste parameters.  
6. Maximum reflow temperature should be less than 225 ºC.  
7. Recommended paste: Koki, AIM, Multicore  
Type 3  
NC  
RMA or equivalent.  
FIGURE 4:PCB BOARD LAYOUT  
(Dimensions are in milli-inches (mil))  
Revision B  
Page 7  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
PIN CONFIGURATION  
Glossary of terms regarding SOC-4000 pin configuration are presented on page 12. The  
physical pin arrangement is shown in Figure 5 and Figure 6, page 12.  
TABLE 1:SOC-4000 PIN CONFIGURATION FOR PRINTER  
PIN  
NAME  
KOUT4  
DESCRIPTION  
2ND  
DESCRIPTION  
PULL-UP  
FUNCTION  
RESISTOR  
1
2
3
4
5
6
7
8
9
Keyboard Controller output.  
(See “Keyboard Controller”, page  
29)  
I.O P14.3  
I.O P14.4  
I.O P14.5  
I.O P14.6  
I.O P14.7  
I/O  
50k  
(See “I/O Operation”  
on page 71)  
KOUT3  
KOUT2  
KOUT1  
KOUT0  
VDD  
Digital Power Supply, 3.3V  
KIN7  
Keyboard Controller Input.  
(See “Keyboard Controller”, page  
29)  
I.O P15.0  
I.O P15.1  
I.O P15.2  
I.O P15.3  
I.O P15.4  
I.O P15.5  
I.O P15.6  
I.O P15.7  
P1.7 (CPU)  
P1.5 (CPU)  
P1.4 (CPU)  
I/O  
50k  
(See “I/O Operation”  
on page 71)  
KIN6  
KIN5  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
KIN4  
KIN3  
KIN2  
KIN1  
KIN0  
BUZZER  
SCL  
Buzzer  
25k  
10k  
I2C Serial Clock  
I2C Serial Data  
Frequency source  
SDA  
XTAL OUT  
XTAL IN  
TX  
Serial communication  
RX  
100k  
TX2  
OUT P4.0  
OUT P4.1  
Outputs  
(See “I/O Operation”  
on page 71)  
RS485  
24  
25  
RX2  
100K  
50K  
LABEL DET.  
Label detect input.  
(See page 53)  
I.O P3.4(CPU) CPU I/O Ports  
Or,  
P3.4-TIMER 0  
P3.5-TIMER 1  
26  
27  
AUTO DET.  
Prepack label removal detector  
input.  
I.O P3.5(CPU)  
(See page 53)  
PAPER DET. Paper detect input.  
(See page 53)  
I.O P1.6(CPU)  
Revision B  
Page 9  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
PIN  
28  
NAME  
VPP  
DESCRIPTION  
2ND  
DESCRIPTION  
PULL-UP  
FUNCTION  
RESISTOR  
Outputs  
Printer head heater power control. OUT P4.2  
(See “I/O Operation”  
on page 71)  
(See “Strobe Controller”, page 45  
and “Printer Head Data Interface  
Operation”, page 43)  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
AUXMOTOR  
MOTOR1  
MOTOR2  
MOTOR3  
MOTOR4  
MOTOR5  
MOTOR6  
Auxiliary motor control  
Motor control.  
OUT P4.3  
OUT P5.0  
(See also “Printer Motor Operation”  
page 51)  
OUT P5.1  
OUT P5.2  
OUT P6.0  
OUT P6.1  
OUT P6.2  
STROBE1/OE1 Printer head dot control  
OUT P6.3  
(See “Strobe Controller”, page 45)  
STROBE2/OE2  
STROBE3/OE3  
STROBE4/OE4  
STROBE5/OE5  
STROBE6/OE6  
SWITCH  
OUT P7.0  
Outputs  
(See “I/O Operation”  
on page 71)  
OUT P7.1  
OUT P7.2  
OUT P7.3  
OUT P8.0  
Printer head switch detector input I.O P18.0  
I/O  
50k  
(See “I/O Operation”  
on page 71)  
43  
44  
45  
PRN LATCH  
PRN_SI_DATA  
PRN_SI_CLK  
Printer serial data interface.  
OUT P8.1  
OUT P8.2  
OUT P8.3  
Outputs  
(See “Printer Serial Interface  
Controller”, page 39 and “Printer  
Head Data Interface Operation”,  
page 43)  
(See “I/O Operation”  
on page 71)  
46  
47  
48  
49  
50  
51  
52  
53  
54  
D0 OUTPUT  
D1 OUTPUT  
D2 OUTPUT  
D3 OUTPUT  
D4 OUTPUT  
D5 OUTPUT  
D6 OUTPUT  
D7 OUTPUT  
RDLCD (A1)  
LCD Display module interface, data  
bus interface. Output only.  
(See “LCD Display Module  
Interface”, page 86)  
Read Signal for LCD display  
module. (See page 86)  
OUT P12.0  
OUT P12.1  
OUT P12.2  
Output  
(See “I/O Operation”  
on page 71)  
55  
56  
57  
WRLCD (A0) Write Signal for LCD display  
module. (See page 86)  
CSLCD  
Chip Select for LCD display  
module. (See page 86)  
VBAT  
RAM backup voltage input  
Revision B  
Page 10  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
PIN  
NAME  
DESCRIPTION  
2ND  
DESCRIPTION  
PULL-UP  
FUNCTION  
RESISTOR  
LED/VFD Serial Interface Display  
Module Clock, Data, Strobe and  
Blank.  
Output  
58  
LED_SI_CLK  
LED_SI_Data  
LED_SI_ST  
LED_SI_BL  
VCC  
OUT 13.0  
OUT 13.1  
OUT 13.2  
OUT 13.3  
(See “I/O Operation”  
on page 71)  
59  
60  
61  
62  
63  
64  
65  
(See “LED/VFD Serial Display  
Controller”, page 47)  
Power Supply  
Reset  
RESET  
50k  
GND  
Digital Ground  
VDET/INT0~  
Power voltage detector input /  
Interrupt0 Input  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
SIG2+  
SIG2–  
AGND  
SEN–  
SIG1–  
SIG1+  
SEN+  
AVCC  
KIN15  
KIN14  
KIN13  
KIN12  
KIN11  
KIN10  
KIN9  
2nd channel input signal +  
2nd channel input signal –  
Analog Ground  
Load cell Sense input –  
Load cell signal input –  
Load cell signal input +  
Load cell Sense input +  
Analog power supply  
Keyboard Controller input.  
(See “Keyboard Controller”, page  
29)  
I.O 17.0  
I.O 17.1  
I.O 17.2  
I.O 17.3  
I.O 17.4  
I.O 17.5  
I.O 17.6  
I.O 17.7  
I.O 14.0  
I.O 14.1  
I.O 14.2  
I/O  
50k  
(See “I/O Operation”  
on page 71)  
KIN8  
KOUT7  
KOUT6  
KOUT5  
Keyboard Controller Output.  
(See “Keyboard Controller”, page  
29)  
Revision B  
Page 11  
August, 2002  
CybraTech (2000) Ltd.  
Glossary of Terms  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
TERM DEFINITION  
ST  
Schmidt-Trigger  
Tri-State  
3-ST  
I
Input  
O
Output  
I.O  
Input/Output  
Printer  
PRN  
SI  
Serial Interface  
Clock  
CLK  
RD  
Read  
WR  
KIN  
KOUT  
Pxx.x  
Write  
Keyboard Input  
Keyboard Output  
I/O Port  
FIGURE 5:SOC-4000 PIN ARRANGEMENT  
Revision B  
Page 12  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
FIGURE 6:SOC-4000 PIN CONFIGURATION  
Revision B  
Page 13  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
CPU 80C51TBO  
The reference source for data given here is  
“M8051TBO Technical Specifications”, Virtual IP  
Group, Inc., Version M8051TS97DF02. Refer to  
this manual for a complete CPU specification.  
Advantages  
Fast running and improved performance  
No wasted clock and memory cycles  
Works efficiently with all types of peripheral  
Features  
8-bit CPU  
Compatible with standard 80C31  
Four 8-bit I/O ports  
Three 16-bit timers  
On-chip oscillator and clock circuitry  
256-byte on-chip, 8051-compatible SFR RAM  
64Kbyte program memory with bank switching  
4Kbyte external RAM  
devices  
Improved power consumption characteristics  
On-chip Power-On/Reset  
Architecture  
The CPU block diagram is presented in Figure 7.  
High-speed architecture of 4 cycles/instruction  
Dual data pointers  
Full-Duplex enhanced UART  
Accumulator  
B Register  
ALU Reg. 2  
ALU Reg. 1  
PSW  
Stack Pointer  
ALU  
Interrupt  
Logic  
DPTR1  
PC Address Reg.  
Address Bus  
Buffer  
PC Increment  
256 Bytes  
SFR 8 RAM  
Program Counter  
DPTR0  
Interrupt Reg.  
Instruction  
Decoder  
Clocks and  
Memory Control  
Power Control  
Register  
Reset  
Control  
Oscillator  
Data Bus  
FIGURE 7:CPU BLOCK DIAGRAM  
Revision B  
Page 15  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Memory  
Organization  
The SOC-4000 is an 8051-compatible device with an 80C310 memory chip. As with all such  
devices, the SOC-4000 has separate address spaces for Program and Data memory. The  
program memory space can be programmed while the device is in circuit through the serial  
port.  
Flash memory – memory space containing non-volatile, in-circuit re-programmable code  
and data (such as calibration data). The code in the Flash memory may be in-circuit  
programmed at a byte level, although it must first be erased, the erasing being performed  
in page blocks. The program memory space can be in-circuit programmed through the  
serial port.  
RAM memory – Temporary memory used as “scratchpad memory” for the software.  
Program Memory Mapping  
The 8051-compatible SOC-4000 supports a maximum code space of 64K. Programs larger  
than 64K are handled by bank switching, in order to select one of a number of code banks  
residing at one physical address.  
In the SOC-4000, there is one 32K Common-Program Area mapped from address 1000H to  
7FFFH (Figure 9) and 15 x 32K code banks mapped from code address 8000H to FFFFH  
(Figure 9). The code banks are selected using P1.0 to P1.3, as described below.  
Program Memory Bank Select Register  
The program memory bank select register is implemented using the 80C51TBO Port 1 bits  
P1.0 – P1.3. P1.0 is the least significant bit. Manipulation of other Port 1 I/O pins must be  
carried out without affecting these bits.  
To enable the program memory access set registers C104H, C105H and C106H to  
AAH as follows:  
C104H = AAH  
C015H = AAH  
C106H = AAH  
NOTE: The page register is WRITE ONLY! Reading P1.0-P1.3 may result in an  
ambiguous result.  
Application Program Start Address  
The start address of the application program should be located at 1000H, as the first 4kBytes  
are reserved for the SOC-4000/I system.  
Revision B  
Page 16  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Serial Downloading (In-Circuit Programming)  
As part of its embedded boot software, the SOC-4000 facilitates serial code and data  
download via the standard UART serial port. Serial download mode is automatically entered  
upon power-up or reset if one of the following conditions exists  
No valid program is programmed in the Flash memory.  
A request for download process was initiated via the UART during the first 200 ms after  
power-up/reset.  
Once in this mode, you can download code or data files into the Flash memory, while the  
device is located in its target board. The CybraTech Cloader executable is the PC serial  
download utility provided together with the device and its documentation and software  
library.  
The SOC-4000/I may be programmed only if within 200ms after power-up or RESET it  
established communication with the Cloader executable, or if the application program is not  
available or not valid (checksum error). Figure 8 describe the startup procedure of the SOC-  
4000.  
Power-Up /  
Reset  
Is  
Start  
Cloader  
Programming  
Communicating  
?
Yes  
mode  
No  
200 ms  
elapsed  
?
No  
Yes  
Is the  
Application  
Program  
OK?  
No  
Yes  
Start Application  
Program  
FIGURE 8:SOC-4000/I STARTUP PROCEDURE  
Revision B  
Page 17  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Using the Flash for Data Memory  
The Flash memory may be used for storing non-volatile data. To update the data area while  
the program is running,the Flash must be defined as a DATA area (and not as a CODE area).  
CybraTech Flash Manager software manages this process in an efficient and reliable  
manner. It provides the means to read, write, erase and update the Flash Data area. A  
detailed description of the CybraTech Flash Manager function is included in the SOC-4000  
Software Function Library user manual, document number: SOC-0000-SW01-OM.  
FFFFH  
Flash Data  
Memory  
F800H  
Program  
Bank 1  
32K  
Program  
Bank 2  
32K  
Program  
Bank 15  
32K  
.........  
8000H  
7FFFH  
Program  
Common  
Area  
32K  
Bank 0  
4K  
1000H  
FFFH  
Reserved by  
System  
0000H  
FIGURE 9:SOC-4000 PROGRAM MEMORY MAP  
Revision B  
Page 18  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Data Memory Mapping  
The SOC-4000 data memory is stored in 3 areas:  
a. 256-bytes internal RAM, mapped as IDATA.  
b. 4kByte RAM located at addresses 8000H – 8FFFH.  
This memory is mapped as XDATA memory and is used as the SOC-4000 working  
RAM and scratchpad memory.  
c. Up to 512kByte RAM with battery backup mapped at address range 0000H – 7FFFH as  
XDATA memory mapped as 16 page of 32kByte each.  
This area may be used as data area to store transactions, PLUs and any other non-volatile  
data required by the application.  
RAM Bank Select Register  
CFR C113H (bits 0-3) is the page register controlling the active RAM page.  
To enable the C113H register set C104H, C105H and C106H to AAH  
C104H = AAH  
C015H = AAH  
C106H = AAH  
For SOC-4000 with 128kByte RAM only bits 0-1 are applicable (bit 0 – LSB).  
For SOC-4000 with 512kByte RAM bits 0-3 are applicable (bit 0 – LSB).  
FIGURE 10:SOC-4000 DATA MEMORY MAP  
Revision B  
Page 19  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
CPU SFRs and Configuration Registers (CFRs)  
The CPU SFRs (Special Function Registers) are compatible with the 8051 instruction set.  
Please refer to “M8051TBO Technical Specifications”.  
The CPU controls the peripherals and their operating modes through Configuration Registers  
(CFRs). The CFR registers for each peripheral are described in Table 29 (page 64).  
Instruction Set  
All instructions in the 8051-compatible SOC-4000 instruction set perform the same functions  
as in the 8051. They identically oversee bit and flag operations and other status functions.  
Only the clock configuration differs.  
For absolute timing of real time events, the timing of software loops can be calculated.  
However, counter/timers default to run at the older 12 clocks per increment. In this way,  
timer-based events occur at the standard intervals with software executing at higher speed.  
Timers optionally can run at 4 clocks per increment to take advantage of faster processor  
operation.  
In the SOC-4000, the MOVX instruction may take only two machine cycles or eight  
oscillator cycles, while the “MOV direct, direct” instruction uses three machine cycles or 12  
oscillator cycles. Thus, the execution times of the two instructions differ. This is because the  
SOC-4000 usually uses one instruction cycle for each instruction byte.  
Note that a machine cycle requires just four clocks, and provides one ALE pulse per cycle.  
Many instructions require only one cycle, but some require five.  
Reset  
The Reset signal is generated by an internal circuit in the ASIC. The signal thresholds are:  
RESET falling edge on Vcc = 3.98v  
RESET rising edge on Vcc = 4.19v  
The hystheresis of the Reset signal is set so that normal operation of the internal Flash  
memory is guaranteed.  
Interrupt Vectors  
The interrupt vectors of the SOC-4000/I are shifted compared with the interrupt vectors of a  
standard 80C51TBO vectors by an offset of 1000H. Table 2 details the SOC-4000/I interrupt  
vectors:  
Revision B  
Page 20  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
PRIORITY  
SOC-4000/i Scale-On-Chip ASIC  
TABLE 2:INTERRUPT VECTORS DESCRIPTION  
INTERRUPT SOURCE  
FLAG  
VECTOR  
LOCATION  
External Interrupt 0  
Timer 0 Overflow  
External Interrupt 1  
Timer 1 Overflow  
Serial Port  
IE0  
TF0  
1003H  
100BH  
1013H  
101BH  
1023H  
102BH  
1 (Highest)  
2
3
4
5
6
IE1  
TF1  
RI + TI  
TF2 + EXF2  
Timer 2 Overflow  
Revision B  
Page 21  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
ADC CONTROLLER INTERFACE  
Features  
Resolution – 20 bit  
Programmable gain –0.5, 0.75, 1, 1.5, 2  
Programmable sample rate of 5, 10 or 20  
samples per second  
Voltage detection input and alarm  
Controller Registers  
ADC Converter (ADC) controller interface includes a semaphore register (one byte), a  
control register (two bytes) and a data/status register (four bytes).  
The ADC controller registers are defined in Table 3.  
TABLE 3:ADC CONTROLLER REGISTERS DESCRIPTION  
FUNCTION  
ADDRESS  
C200H  
BIT  
7
REMARKS  
0 =Disable  
Controller Clock Enable  
1 = Enable  
0xFF = Reset  
Read/Write  
Read only  
Controller RESET  
Semaphore Register  
Data Registers  
C406H  
All  
0-1  
All  
E100H  
E103H to E106H  
E101H to E102H  
Control Register  
All  
Write only  
Semaphore Register  
The semaphore register bit definitions are shown in Table 4.  
TABLE 4:ADC CONTROLLER INTERFACE SEMAPHORE REGISTER BIT DEFINITIONS  
ADDRESS  
E100H  
BIT 7 … BIT 2  
Don’t Care  
BIT 1  
Tx Semaphore  
BIT 0 (LSB)  
Rx Semaphore  
(Controller to ADC Converter) (ADC Converter to Controller)  
Revision B  
Page 23  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Control Register  
The control register bit definitions and its functions and are given in Table 5 (page 24).  
TABLE 5:ADC CONTROLLER INTERFACE CONTROL REGISTER BIT FUNCTIONS  
BYTE # ADDRESS BIT  
FUNCTION  
SETTINGS  
0 = Disable  
1 = Enable  
1
E101H  
0
Interrupt Enable  
(LSB)  
1-7 Don’t Care  
Don’t Care  
00 = 20 Hz (default) & F.S=100,000 Counts  
01 = 10 Hz & F.S. = 200,000 Counts  
10 = 10 Hz& F.S. = 100,000 Counts  
11 = 5 Hz& F.S. = 200,000 Counts  
2
E102H  
0-1 Sample Rate  
(bit 0 –  
LSB)  
000 = 0.50  
001 = 0.75  
010 = 1.00  
011 = 1.50  
100 = 2.00  
2-4 Gain  
111 = Power Down  
Power Down  
0 = Main (default) channel  
1 = Secondary channel  
5
ADC Channel  
6
7
Don’t Care  
Don’t Care  
Don’t Care  
Don’t Care  
Status/Data Registers  
The data register bit definitions are shown in Table 6. The bit functions are described in  
Table 7.  
TABLE 6:ADC CONTROLLER INTERFACE DATA REGISTER BIT DEFINITIONS  
BYTE # ADDRESS BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
(LSB)  
1
2
3
4
E103H  
E104H  
E105H  
E106H  
D7  
D6  
D5  
D13  
SR1  
0
D4  
D12  
SR0  
0
D3  
D11  
D19  
0
D2  
D10  
D18  
0
D1  
D9  
D0  
D8  
D15  
D14  
G1/PD1 G0/PD0  
D17  
CH  
D16  
0
0
G2/PD2  
Revision B  
Page 24  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
TABLE 7:ADC CONTROLLER INTERFACE DATA REGISTER BIT FUNCTIONS  
BIT FUNCTION  
Di  
ADC Reading Data  
D0 = LSB  
D19 = MSB  
SRi  
Sample Rate  
Gi/PDi  
CH  
Gain/Power Down  
Active ADC Channel  
Revision B  
Page 25  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Operation  
Initialization:  
To enable the ADC controller interface:  
1. Enable the ADC controller interface clock source in Clock Enable register C200H:  
Set C200H, Bit 7 to 1.  
2. Reset the ADC controller interface:  
Write FF to register C406H.  
3. Set the Configuration registers (CFR) address for ADC controller interface function:  
CFR address C10CH = 1FH.  
4. Enable interrupt:  
Set E101H, Bit 0 to 1.  
5. Check the semaphore byte at address E100H.  
If Receive semaphore bit at E100H is Ready (Bit 0 = 0), signaling the CPU that the  
ADC controller can receive data, the CPU performs the following operations:  
a. Sets the Transmit semaphore bit at E100H to Busy (Bit 1 = 1) to prevent  
transmission of data from the ADC controller.  
b. Programs the control register E101–E102H of the ADC controller to initialize  
controller operation.  
Normal operation:  
6. After the ADC controller has been initialized, the following operations are  
performed:  
c. The CPU resets the Transmit semaphore bit at E100H to Ready (Bit 1 = 0) to  
signal the ADC controller that it can now transmit data.  
d. The ADC controller sets the Receive semaphore bit at E100H to Busy  
(Bit 0 = 1) to prevent further data transmission to the controller.  
e. The ADC controller sends ADC converter data to data registers at E103H to  
E106H.  
7. After sending the data of registers E103H to E106H, the ADC controller resets the  
Receive semaphore bit at E100H to Ready (Bit 0 = 0), signaling the CPU that the  
controller can now receive new data.  
One ADC controller operation cycle is now complete.  
Steps 6 through 7 are repeated cyclically.  
The ADC internal counts output is dependent upon the input signal, the gain and the  
operation mode setting. Table 5 defines the relation between the internal counts output  
of the zero signal input of the full-scale signal and the ADC settings.  
Revision B  
Page 26  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
TABLE 8:ADC OUTPUT COUNTS VS. ADC SETTINGS  
GAIN SAMPLE  
ADC  
ADC OUTPUT AT  
ZERO SIGNAL  
INPUT  
MAXIMUM  
FULL-SCALE  
INPUT  
ADC OUTPUT  
(COUNTS)  
RATE * RESOLUTION  
MODE *  
(HZ)  
(IN COUNTS)  
(COUNTS)  
153,200  
153,200  
306,400  
306,400  
153,200  
153,200  
306,400  
306,400  
153,200  
153,200  
306,400  
306,400  
153,200  
153,200  
306,400  
306,400  
153,200  
153,200  
306,400  
306,400  
(MILLI-VOLTS)  
0.5  
0.75  
1.0  
20  
10  
10  
5
103,000  
103,000  
206,000  
206,000  
103,000  
103,000  
206,000  
206,000  
103,000  
103,000  
206,000  
206,000  
103,000  
103,000  
206,000  
206,000  
103,000  
103,000  
206,000  
206,000  
20  
20  
20  
20  
15  
15  
15  
10  
10  
10  
10  
10  
6.6  
6.6  
6.6  
6.6  
5
256,200  
256,200  
512,400  
512,400  
256,200  
256,200  
512,400  
512,400  
256,200  
256,200  
512,400  
512,400  
256,200  
256,200  
512,400  
512,400  
256,200  
256,200  
512,400  
512,400  
20  
10  
10  
5
20  
10  
10  
5
1.5  
20  
10  
10  
5
2.0  
20  
10  
10  
5
5
5
5
* ADC Resolution mode is defined in Table 5, Register E102H, bits 0-1 – Sample Rate.  
Revision B  
Page 27  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
KEYBOARD CONTROLLER  
Features  
Supports up to 128 keys (8×16)  
Functional Description  
Keyboard Controller Matrix Configuration  
Programmable anti-bounce mechanism  
The keyboard matrix configuration showing the  
8 × 16 matrix is given in Figure 11. The key code  
values at each junction are in hexadecimal.  
(4-18 ms)  
Automatic key matrix scanning  
Automatically detects excessively long or  
constant key depression  
When Interrupt mode enabled, generates an  
interrupt when any key is pressed or released  
Revision B  
Page 29  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
K I N 0  
K I N 1  
0 1  
K I N 2  
0 2  
K I N 3  
0 3  
K I N 4  
0 4  
K I N 5  
0 5  
K I N 6  
0 6  
K I N 7  
0 7  
K I N 8  
0 8  
K I N 9  
0 9  
K I N 1 0  
0 A  
K I N 1 1  
0 B  
K I N 1 2  
0 C  
K I N 1 3  
0 D  
K I N 1 4  
0 E  
K I N 1 5  
0 F  
*
K O U T 0  
K O U T 1  
K O U T 2  
K O U T 3  
K O U T 4  
K O U T 5  
K O U T 6  
K O U T 7  
0 0  
1 0  
2 0  
3 0  
4 0  
5 0  
6 0  
7 0  
1 1  
2 1  
3 1  
4 1  
5 1  
6 1  
7 1  
1 2  
2 2  
3 2  
4 2  
5 2  
6 2  
7 2  
1 3  
2 3  
3 3  
4 3  
5 3  
6 3  
7 3  
1 4  
2 4  
3 4  
4 4  
5 4  
6 4  
7 4  
1 5  
2 5  
3 5  
4 5  
5 5  
6 5  
7 5  
1 6  
2 6  
3 6  
4 6  
5 6  
6 6  
7 6  
1 7  
2 7  
3 7  
4 7  
5 7  
6 7  
7 7  
1 8  
2 8  
3 8  
4 8  
5 8  
6 8  
7 8  
1 9  
2 9  
3 9  
4 9  
5 9  
6 9  
7 9  
1 A  
2 A  
3 A  
4 A  
5 A  
6 A  
7 A  
1 B  
2 B  
3 B  
4 B  
5 B  
6 B  
7 B  
1 C  
2 C  
3 C  
4 C  
5 C  
6 C  
7 C  
1 D  
2 D  
3 D  
4 D  
5 D  
6 D  
7 D  
1 E  
2 E  
3 E  
4 E  
5 E  
6 E  
7 E  
1 F  
2 F  
3 F  
4 F  
5 F  
6 F  
7 F  
*
Key values are in hexadecimal.  
FIGURE 11:KEYBOARD MATRIX CONFIGURATION  
Revision B  
Page 30  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Controller Registers  
Keyboard controller interface includes a control register (one byte) and a data/status register  
(two bytes).  
The Keyboard controller registers are defined in Table 9.  
TABLE 9:KEYBOARD CONTROLLER REGISTERS DESCRIPTION  
FUNCTION  
ADDRESS  
C200H  
BIT  
2
REMARKS  
0= Disable  
Controller Clock Enable  
1= Enable  
0xFF = Reset  
Read only  
Write only  
C400H  
Controller RESET  
Data Registers  
Control Register  
All  
All  
All  
F100H to F101H  
F100H  
Registers Description  
Control Register  
The keyboard control register bit definitions, functions and settings are displayed in Table 10.  
TABLE 10:KEYBOARD CONTROLLER CONTROL REGISTER BIT FUNCTIONS  
ADDRESS  
F100H  
BIT  
FUNCTION  
SETTINGS  
000 = 4 ms  
001 = 6 ms  
010 = 8 ms  
011 = 10 ms  
100 = 12 ms  
101 = 14 ms  
110 = 16 ms  
111 = 18 ms  
0 = Enable  
0-2  
Anti-Bounce Timeout  
(0-LSB)  
3
Interrupt Enable/Disable  
Don’t Care  
1 = Disable (default)  
4-7  
Don’t Care  
Data Registers  
Keyboard data is stored in two 8-bit registers.  
The data register bit definitions are shown in Table 11  
Revision B  
Page 31  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
NOTE: When Control Register Address F101H, bit 7 is set to 1 (Released), key-code value bits 0 to 6  
in address F101H are meaningless.  
TABLE 11:KEYBOARD CONTROLLER DATA REGISTER BIT DEFINITIONS  
BYTE # ADDRESS  
BIT 7  
X
BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1  
BIT 0  
(LSB)  
1
2
F100H  
F101H  
X
X
X
X
X
X
Key Error Flag  
0 = Legal  
1 = Error  
Release Sign  
0 = Pressed  
1 = Released  
D6*  
D5*  
D4*  
D3*  
D2*  
D1*  
D0*  
* Key Code  
Operation  
At power on, the keyboard controller is reset and the scanning rate is set to 10 µs.  
Initialization:  
To enable the keyboard controller:  
1. Enable the keyboard controller clock source in Clock Enable register C200H:  
Set C200H, Bit 2 to 1.  
2. Reset the keyboard controller:  
Write FF to register C400H.  
3. Check CFR address for keyboard controller function:  
CFR addresses C10DH, C10EH, C10FH = FFH (Table 29, page 64).  
This results in the following operations:  
Enables keyboard output pins (1 to 5 and 82 to 84) (Table 29; page 64; Table 1,  
page 9)  
Enables keyboard input pins (7 to 14 and 74 to 81) (Table 29; page 64, Table 1,  
page 9)  
NOTE: If less than 128 keys are required, some of the pins may be allocated for I/O  
operation. See .Table 29:CFR Bit Configuration (page 64) and I/O Operation (page  
71).  
4. Enable keyboard interrupt:  
Set F100H, Bit 3 to 0.  
5. Set anti-bounce timeout:  
Set F100H, Bits 0, 1 and 2, as shown in Table 10.  
Revision B  
Page 32  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Normal Operation:  
6. Read keyboard key-code value bits, as follows:  
Read register F100H, Bit 0:  
If 0, key-code value is legal.  
If 1, key-code value is illegal (Error).  
Read keyboard values from register F101H, bits 0 to 6:  
When key pressed, values are valid.  
Read F101H, bit 7:  
If 0, key pressed and keyboard values (bits 0 to 6) are valid.  
If 1, key released and keyboard values are meaningless.  
Revision B  
Page 33  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
LED/VFD SERIAL INTERFACE DISPLAY CONTROLLER  
Features  
Functional Description  
Supports up to 24 digits  
Serial interface  
The LED/VFD Serial Interface display  
comprises three groups of eight digits. The  
controller diagram showing the division of the  
24-byte register into three eight-byte groups  
and the operation cycle is given in Figure 12.  
Programmable control-signal polarity  
Programmable data registers  
Supports common-anode, seven-segment  
The LED/VFD Serial Interface Display  
Controller timing diagram is shown in Figure  
13. The clock rate is 2 MHz.  
LED  
Digit 8  
Digit 7  
Digit 6  
Digit 5  
Digit 4  
a
Digit 3  
Digit 2  
Digit 1  
Group 1  
a
a
a
a
a
a
a
Seg a  
Seg b  
Seg c  
Seg d  
Seg e  
Seg f  
Seg g  
DP  
b
c
b
c
b
c
b
c
b
c
b
c
b
c
b
c
f
f
f
f
f
f
f
f
g
d
g
d
g
d
g
d
g
g
d
g
d
g
d
e
e
e
e
e
e
e
e
DP  
DP  
DP  
DP  
DP  
DP  
DP  
DP  
DP  
DP  
d
DP  
DP  
DP  
DP  
DP  
DP  
DP  
DP  
DP  
DP  
Digit 8  
Digit 7  
Digit 6  
Digit 5  
Digit 4  
a
Digit 3  
Digit 2  
Digit 1  
Group 2  
a
a
a
a
a
a
a
Seg a  
Seg b  
Seg c  
Seg d  
Seg e  
Seg f  
Seg g  
DP  
b
c
b
c
b
c
b
c
b
b
c
b
c
b
c
f
f
f
f
f
f
f
f
g
d
g
d
g
d
g
d
g
g
d
g
d
g
d
e
e
e
e
e
e
e
e
c
DP  
d
DP  
Digit 8  
Digit 7  
Digit 6  
Digit 5  
Digit 4  
a
Digit 3  
Digit 2  
Digit 1  
Group 3  
a
a
a
a
a
a
a
Seg a  
Seg b  
Seg c  
Seg d  
Seg e  
Seg f  
Seg g  
DP  
b
c
b
c
b
c
b
c
b
c
b
c
b
c
b
c
f
f
f
f
f
f
f
f
g
d
g
d
g
d
g
d
g
g
d
g
d
g
d
e
e
e
e
e
e
e
e
DP  
0
d
DP  
X
0
0
0
0
0
0
0
0
0
1
0
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
Cycle 1  
Digit 1  
Group 1  
Group 2  
Group 3  
1
0
0
0
X
X
X
X
X
X
X
X
X
X
X
X
Cycle 8  
The controller transmits cycles 1 to 8 continuously.  
FIGURE 12:LED/VFD SERIAL INTERFACE DISPLAY BLOCK DIAGRAM  
Revision B  
Page 35  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
20 µs  
BLANK  
/
BLANK  
20 µs  
t = 400 µs  
STROBE  
/
STROBE  
20 µs  
t1 = 8µs  
CLOCK  
/
CLOCK  
DATA  
FIGURE 13:LED/VFD SERIAL INTERFACE CONTROLLER TIMING DIAGRAM  
Registers Description  
The LED Serial controller registers description is given in Table 12.  
TABLE 12:LED SERIAL CONTROLLER DRIVER REGISTERS DESCRIPTION  
FUNCTION  
ADDRESS  
C200H  
BIT  
5
REMARKS  
Enable/Disable controller  
0xFF = Reset  
Controller Clock Enable  
Controller RESET  
Semaphore register  
Data Registers  
Group 1  
C403H  
D201H  
All  
Read only  
D201H to D208H  
D209H to D210H  
D211H to D218H  
D200H  
Write Only  
Write Only  
Write Only  
Read/Write  
Group 2  
Group 3  
Control Register  
LED data is stored in a 24-byte × 8-bit static display RAM. The data registers are  
divided into three groups, each group containing eight bytes with the segment data for  
eight digits. Thus, the LED display can be formatted to display eight, 16 or 24 digits.  
The display RAM has one Read/Write control register containing the Command byte and  
a Read-only semaphore byte that informs the system if the display is Busy or Ready to  
initiate writing of LED data. The semaphore byte address also serves as first address of  
the Write-only data register.  
The trigger for sending the data out to the display serial interface is programming the  
control register at address D200H. As soon as the controller starts to send data, it sets  
the semaphore byte to FFH, indicating that it is busy.  
When the controller has finished data output, it resets the semaphore byte to 0, indicating  
that it is available for a new operation.  
Revision B  
Page 36  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Control Register  
The definitions and functions of the control-register Command-byte bits are displayed in  
Table 13.  
TABLE 13:LED/VFD SERIAL INTERFACE DISPLAY CONTROL REGISTER BIT FUNCTIONS  
ADDRESS BIT  
NAME  
FUNCTION  
Command bit  
SETTINGS  
0 = Command Only  
D200H  
0
C
1 = Command + Data  
(LSB)  
1
2
X
N/A  
Don’t Care  
0 = Negative Logic  
1 = Positive Logic  
Blank Polarity  
Strobe Polarity  
Clock Polarity  
E
Sets the Blank polarity.  
0 = Negative Logic  
1 = Positive Logic  
3
4
5
6
7
Sets the Strobe polarity.  
0 = Negative Logic  
1 = Positive Logic  
Sets the Clock polarity.  
0 = Disable Display  
1 = Enable Display  
Enables and disables the display.  
0 = Close communication  
1 = Open communication  
Block  
Opens communication or blocks  
the hardware communication lines.  
N/A  
N/A  
Don’t Care  
Semaphore Register  
The semaphore byte is located at address D201H, which is the first address of the  
Write-only data register. This address is Read-only for the semaphore byte. The  
semaphore byte bit definitions are identical. The settings are:  
Controller is Busy: Bits 0 to 7 set to 1 (FFH).  
Controller is Ready: Bits 0 to 7 set to 0 (00H).  
Data Registers  
The display data is stored in a 24-byte × 8-bit XDATA area.  
The data register bit definitions for a 21-digit display are shown in  
Table 14. The registers are Write-only.  
Revision B  
Page 37  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
TABLE 14:LED/VFD SERIAL INTERFACE DISPLAY DATA REGISTER BIT DEFINITIONS  
GROUP BYTE # ADDRESS BIT 7  
#
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
(LSB)  
1
1
2
3
4
5
6
7
8
D201H  
D202H  
D203H  
D204H  
D205H  
D206H  
D207H  
D208H  
DP  
DP  
DP  
DP  
DP  
DP  
DP  
DP  
DP  
g
g
g
g
g
g
g
g
g
f
f
f
f
f
f
f
f
f
e
e
e
e
e
e
e
e
e
d
d
d
d
d
d
d
d
d
c
c
c
c
c
c
c
c
c
b
b
b
b
b
b
b
b
b
a
a
a
a
a
a
a
a
a
2
3
9 to 16 D209H to  
D210H  
17 to 24 D211H to  
D218H  
DP  
g
f
e
d
c
b
a
Operation  
At power-on or reset the LED/VFD Serial Interface display controller is disabled.  
Initialization:  
To enable the LED/VFD Serial Interface display controller:  
1. Enable the controller clock source in Clock Enable register C200H:  
Set C200H, Bit 5 to 1.  
2. Reset the controller:  
Write FF to register C403H.  
3. Check CFR address for LED/VFD Serial Interface display controller function:  
CFR address C101H = AA (Table 29, on page 64).  
This results in the following operations:  
Enables serial controller output pins (58 to 61) (Table 29, on page 64).  
Normal Operation:  
4. Check semaphore byte at address D201H. If semaphore byte is Ready (Bits 0 to 7  
set to 0), write data to Data register addresses D201H to D218H.  
5. Set Write command at the controller Control register address D200H.  
Repeat steps 4 and 5 for new data.  
Revision B  
Page 38  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
PRINTER SERIAL INTERFACE CONTROLLER  
Features  
Functional Description  
Supports paper and labels.  
Up to 448 Dots/line.  
The printer head is supported by the serial data  
and serial clock (pins 44/45). The frequency of  
the clock can be changed. The dot printer energy  
may be controlled by up to six strobe lines  
(STROBE1 – STROBE6). Printer motor and  
sensors support – see “Strobe Controller” (page  
45) and “Interfacing the Printer Opto-Sensors”  
(page 51).  
Up to 100 mm/s printing speed.  
Power voltage failure protection.  
Auxiliary motor controller (rewinder).  
Head temperature sensor reading support  
using ADC 2nd channel.  
NOTE: The strobe lines also referred to as  
“Output Enabled (OE)” or “Stretcher  
lines (STR)”.  
Power  
VPP(Pin28)  
Vch  
1
448  
Line of resistors dots  
Dots  
(Pin 36)  
Strobe 1 (OE1)  
Strobe 6 (OE6)  
.
.
.
.
(Pin 41)  
Up to 448 bits  
buffer registers  
(Pin 43) PRN Latch  
Up to 448 bits  
shift registers  
(Pin 44) PRN SI Data  
(Pin 45) PRN SI Clock  
FIGURE 14:PRINTER INTERFACE BLOCK DIAGRAM  
Revision B  
Page 39  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Registers Description  
The Printer interface controller registers description is given in Table 15.  
TABLE 15:PRINTER INTERFACE CONTROLLER REGISTERS DESCRIPTION  
COMMAND  
ADDRESS  
C200H  
BIT  
6
FUNCTION  
0-Disable  
Controller Clock Enable  
1-Enable  
Controller Reset  
Semaphore Register  
Data Registers  
C405H  
OxFF=Reset  
Read only  
Write Only  
Read/Write  
D801H  
All  
D801H to D838H  
D800H  
Control Register  
Semaphore Register  
The semaphore byte is located at address D801H. The semaphore byte bit definitions are  
identical. The settings are:  
Controller is Busy: Bits 0 to 7 set to 1 (FFH).  
Controller is Ready: Bits 0 to 7 set to 0 (00H).  
Control Register  
The control register bit definitions and functions are given in Table 16.  
TABLE 16:PRINTER INTERFACE CONTROLLER CONTROL REGISTER BIT FUNCTIONS  
ADDRESS BIT  
NAME  
FUNCTION  
SETTINGS  
0 = Negative Logic  
1 = Positive Logic  
D800H  
0
(LSB)  
1
CLK  
Sets the Clock Polarity  
0 0 = 1 MHz  
T0  
T1  
0 1 = 500 KHz  
1 0 = 250 KHz  
1 1 = 31.75 KHz  
Sets the Data Rate  
2
0 0 0 0 0 = 200 bits  
0 0 0 0 1 = 208 bits  
0 0 0 1 0 = 216 bits  
0 0 0 1 1 = 224 bits  
3
4
5
6
7
L0  
L1  
L2  
L3  
L4  
Sets the Data Length  
1 1 1 1 0 = 440 bits  
1 1 1 1 1 = 448 bits  
Revision B  
Page 40  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Data Registers  
Data length is variable between 25 bytes (200 bits) and 56 bytes (448 bits), according to  
the control register setting (L0 – L4).  
The data register bit definitions are shown in Figure 28. The registers are Write-only.  
The data is transmitted to the printer head serially, in the following order:  
a. First byte – data register D801H.  
b. In each data register the MSB (Bit 7) is the first bit transmitted to the printer.  
TABLE 17:PRINTER INTERFACE CONTROLLER DATA REGISTER BIT DEFINITIONS  
BYTE #  
ADDRESS  
BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
(LSB)  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
b0  
1
D801H  
D802H  
D803H  
D804H  
D805H  
D806H  
D807H  
D808H  
D809H  
D80AH  
D80BH  
D80CH  
D80DH  
D80EH  
D80FH  
D810H  
D811H  
D812H  
D813H  
D814H  
D815H  
D816H  
D817H  
D818H  
D819H  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b7  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b6  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b5  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b4  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b3  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b2  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
b1  
2
3
4
5
6
7
8
9
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
56  
D838H  
b7  
b6  
b5  
b4  
b3  
b2  
b1  
b0  
Revision B  
Page 41  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Operation  
At power-on or reset, the Printer interface controller is disabled.  
Initialization:  
To enable the Printer interface controller:  
1. Enable the Printer interface controller clock source in Clock Enable register C200H:  
Set C200H, Bit 6 = 1.  
2. Reset the Printer interface controller:  
Write FF to register C405H.  
3. Check CFR address for Printer interface controller function:  
CFR address C107H = AA (Table 29, page 64).  
This results in the following operations:  
Enables Printer interface controller output pins (41, 43, 44, 45)  
Normal Operation:  
4. Check semaphore byte at address D801H (page 40). If semaphore byte is Ready  
(Bits 0 to 7 set to 0), write data to Data register addresses D801H to D838H (page  
41).  
5. Set Write command at Printer interface controller Control register address D800H  
(page 40).  
6. Repeat steps 4 and 5 for new data.  
The controller has one Read/Write control register containing the Command byte and a  
Read-only semaphore byte that informs the system if the printer is Busy or Ready to  
initiate writing of printer data. The semaphore byte address also serves as first address of  
the Write-only data register.  
Data length is variable between 25 bytes (200 bits) and 56 bytes (448 bits), according to  
the control register setting (L0 – L4).  
The trigger for sending the data out to the Printer interface is programming the control  
register at address D800H. As soon as the controller starts to send data, it sets the  
semaphore byte to 1, indicating that it is busy.  
When the controller has finished data output, it resets the semaphore byte to 0, indicating  
that it is available for a new operation.  
Revision B  
Page 42  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Printer Head Data Interface Operation  
The data is transmitted to the printer head using synchronous serial interface. The  
SOC4000 hardware provides the PRN SI CLOCK (Pin #45) and PRN SI Data (Pin #44)  
signals. After transmitting the data to the printer the printer driver asserts the Latch  
signal (pin #43) to latch the data into the head registers. When ready for printing the  
software printer driver should assert the Strobe signal(s) (Strobe1 to Strobe6, pins #36-  
41) to enable the output of the data to the thermal dots. The Serial out line and the Data  
Out lines are not used while operating with the SOC4000 printer driver.  
Figure 15 describe the timing diagram for the serial head operation. The timing  
requirements should be set according to the printer specification.  
t
1µs<t<32,768µs  
Command  
Command  
Timing Diagram  
an  
d
Stretcher  
VDET (Power Failure)  
Block Diagram  
FIGURE 15:SERIAL HEAD TIMING DIAGRAM  
Revision B  
Page 43  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
STROBE CONTROLLER  
Features  
Functional Description  
Compromised of 8 signal lines  
Printer Head Strobe (OE) Stretcher (Pins  
36-41): enable segmentation of the printer  
head into groups of dots (up to 6) to limit  
current peaks.  
Programmable Pulse length (1 to 32,768  
µs)  
Positive or negative pulse polarity  
Auxiliary Motor Pulse Stretcher-  
AUXMOTOR (Pin 29): controlling the  
auxiliary motor operation (label printing).  
Printer Power Stretcher-VPP (Pin 28):  
control the printer head power.  
t
1µs< t<16,384µs  
Command  
Timing Diagram  
+
_
STB1-6  
Command  
Stretcher  
STB  
Polarity  
Block Diagram  
FIGURE 16:PRINTER STROBE STRETCHER  
Revision B  
Page 45  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
t
1µs<t<32,768s µ  
Command  
Command  
Timing Diagram  
Stretcher  
AUXMOT  
Block Diagram  
FIGURE 17:AUXILIARY MOTOR (AUXMOTOR) PULSE STRETCHER (PIN 29)  
t
1µs<t<32,768s µ  
Command  
Command  
Timing Diagram  
and  
Stretcher  
VDET(Power Failure)  
Block Diagram  
FIGURE 18:PRINTER POWER (VPP) PULSE STRETCHER (PIN 28)  
Revision B  
Page 46  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Register Description  
The Stretcher controller registers description is given in Table 18.  
TABLE 18:STRETCHER CONTROLLER REGISTERS DESCRIPTION  
FUNCTION  
Stretcher Clock  
ADDRESS  
C201H  
REMARKS  
Enable/Disable Stretcher operation  
Enable Register  
Reset Registers  
Trigger Registers  
Data Registers  
C407H to C40EH Reset Stretcher  
E210H to E217H  
E200H to E20FH  
Trigger Stretcher operation  
Pulse Length Register  
Strobe Clock Enable Control Register  
The clock register Command-byte bit definitions and functions are given in Table 19.  
TABLE 19:STROBE CLOCK ENABLE CONTROL REGISTER BIT FUNCTIONS  
ADDRESS BIT  
NAME  
SETTINGS  
C201H  
0
Auxmot  
(LSB)  
1
2
3
4
5
6
7
VPP  
STROBE1  
STROBE2  
STROBE3  
STROBE4  
STROBE5  
STROBE6  
0 = Disable  
1 = Enable  
Revision B  
Page 47  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SETTINGS  
SOC-4000/i Scale-On-Chip ASIC  
Trigger Registers  
TABLE 20:TRIGGER REGISTER DEFINITIONS  
STRETCHER NAME  
AUXMOT  
ADDRESS  
FUNCTION  
E210H  
E211H  
E212H  
E213H  
E214H  
E215H  
E216H  
E217H  
Trigger Auxmot Stretcher FF=Trigger operation  
Trigger VPP Stretcher  
Trigger STROBE1  
Trigger STROBE2  
Trigger STROBE3  
Trigger STROBE4  
Trigger STROBE5  
Trigger STROBE6  
FF=Trigger operation  
FF=Trigger operation  
FF=Trigger operation  
FF=Trigger operation  
FF=Trigger operation  
FF=Trigger operation  
FF=Trigger operation  
VPP (Printer Head)  
STROBE1 (Head group 1)  
STROBE2 (Head group 2)  
STROBE3 (Head group 3)  
STROBE4 (Head group 4)  
STROBE5 (Head group 5)  
STROBE6 (Head group 6)  
Data Registers  
The data register bit definitions are shown in Table 21. The registers are Write-only.  
TABLE 21:STRETCHER CONTROLLER DATA REGISTER BIT DEFINITIONS  
CONTROLLER  
ADDRESS  
BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0  
(LSB)  
Auxmot  
E200H  
E201H  
L7  
L6  
L5  
L4  
L3  
L2  
L1  
L9  
L0  
L8  
(Label Paper  
Rewind)  
OE  
L14  
L13  
L12  
L11  
L10  
E202H  
E203H  
L7  
L6  
L5  
L4  
L3  
L2  
L1  
L9  
L0  
L8  
VPP  
(Printer head)  
OE  
L14  
L13  
L12  
L11  
L10  
STROBE1  
E204H  
E205H  
E206H  
E207H  
E208H  
E209H  
E20AH  
E20BH  
E20CH  
E20DH  
E20EH  
E20FH  
L7  
OE  
L7  
L6  
Pol  
L6  
L5  
L13  
L5  
L4  
L12  
L4  
L3  
L11  
L3  
L2  
L10  
L2  
L1  
L9  
L1  
L9  
L1  
L9  
L1  
L9  
L1  
L9  
L1  
L9  
L0  
L8  
L0  
L8  
L0  
L8  
L0  
L8  
L0  
L8  
L0  
L8  
(Head group 1)  
STROBE2  
(Head group 2)  
OE  
L7  
Pol  
L6  
L13  
L5  
L12  
L4  
L11  
L3  
L10  
L2  
STROBE3  
(Head group 3)  
OE  
L7  
Pol  
L6  
L13  
L5  
L12  
L4  
L11  
L3  
L10  
L2  
STROBE4  
(Head group 4)  
OE  
L7  
Pol  
L6  
L13  
L5  
L12  
L4  
L11  
L3  
L10  
L2  
STROBE5  
(Head group 5)  
OE  
L7  
Pol  
L6  
L13  
L5  
L12  
L4  
L11  
L3  
L10  
L2  
STROBE6  
(Head group 6)  
OE  
Pol  
L13  
L12  
L11  
L10  
Revision B  
Page 48  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
LEGEND:  
NAME  
FUNCTION  
VALUE  
For Auxmont and VPP: maximal pulse length is 32,768 µS.  
For STROBE1-6 maximal pulse length is 16,384 µS.  
Lo – always LSB of pulse length.  
Li  
Stretcher Pulse length in  
micro seconds  
0 = Disabled  
1 = Enabled  
OE  
Pol  
Output Enable  
Pulse Polarity  
0 = Positive  
1 = Negative  
TABLE 22:STRETCHER RESET REGISTER DEFINITIONS  
CONTROLLER  
Auxmot  
ADDRESS  
C407H  
C408H  
C409  
FUNCTION  
Reset Auxmot Stretcher  
Reset VPP Stretcher  
SETTINGS  
FF=Reset  
FF=Reset  
VPP  
STROBE1  
STROBE2  
STROBE3  
STROBE4  
STROBE5  
STROBE6  
Reset STROBE1 Stretcher FF=Reset  
Reset STROBE2 Stretcher FF=Reset  
Reset STROBE3 Stretcher FF=Reset  
Reset STROBE4 Stretcher FF=Reset  
Reset STROBE5 Stretcher FF=Reset  
Reset STROBE6 Stretcher FF=Reset  
C40A  
C40B  
C40C  
C40D  
C40E  
Revision B  
Page 49  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Operation  
At power-on, or reset, the Stretcher controller is disabled.  
Initialization:  
To enable the Stretcher controller:  
1. Enable the Stretcher controller clock source in Clock Enable register C201H:  
Setting the significant bit to 1 enables that Stretcher (Table 19, page 47).  
Normal Operation:  
2. Reset a Stretcher controller by writing FFH to that register’s address (Table 22;  
page 49).  
3. Set data values for the Stretcher according to the desired length (most and least  
significant byte).  
4. Write FF command at Stretcher controller Control register addresses to trigger its  
operation as defined in Table 20 (page 48).  
5. Repeat steps 2 to 4 for all enabled stretchers.  
Revision B  
Page 50  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
PRINTER MOTOR AND SENSOR INTERFACE  
Printer Motor Operation  
Figure 19 describes the timing diagram for driving the printer motor and the heating  
process timing relationship. MOTOR1 and MOTOR2 are generating the PWM signals  
controlling the motor currents. MOTOR3 and MOTOR4 are controlling the motor phases  
(A and B). MOTOR5 and MOTOR6 spare outputs available for the system designer. All  
the motor outputs are OUTPUT pins that are controlled by the printer software driver.  
The timing of these outputs should be set according to the printer head specification.  
FIGURE 19:PRINTER MOTOR TIMING DIAGRAM  
Interfacing the Printer Opto-Sensors  
Opto-sensor characteristics have very wide tolerances. Thus, usually it cannot be  
connected directly to a digital logic input.  
The SOC-4000 opto-sensor input pins are designed to interface opto-sensors. The input  
stage is a Smidt-Trigger input with a pull-up resistor to VCC. This enables direct  
connection of the sensor to the input and saves external hardware components.  
Simplified schematics of the opto-sensor interface are shown in Figure 20.  
Revision B  
Page 51  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
VCC  
SOC-4000  
Output  
Port  
VDD  
10k  
Printer  
50k  
178 Ohm  
*
Opto-Sensor  
* Depends on sensor specification  
FIGURE 20:OPTO-SENSOR INTERFACE TO SOC-4000  
Table 23 defines the supported sensors and switches.  
TABLE 23:PRINTER SENSORS INTERFACE  
SENSOR NAME  
SOC-4000 PIN#  
PORT ADDRESS  
P3.4 (CPU)  
P3.5 (CPU)  
P1.6 (CPU)  
F229H  
Label Detector  
25  
26  
27  
42  
Automatic Label removal Detector (Auto)  
Paper detector  
Printer Head Switch (P18.0)  
To read a sensor input:  
1. Write ‘1’ to the port address.  
2. Read Port value.  
Revision B  
Page 52  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Implementing End Of Label detector  
End of label detector may be implemented by detecting the difference in the brightness  
of the reflected light from the label compared to the label backing paper. Figure 21  
describes a block diagram of such implementation.  
+
-
Intensity  
Change  
Detector  
Amplify  
S & H  
Label  
Pin #25  
Ref  
FIGURE 21:END OF LABEL DETECTOR  
Implementing Label peel-off Detector:  
This detector is a simple phototransistor located at the label exit. Figure 22 describes the  
block diagram of the implementation.  
Auto  
Ref  
Pin #26  
Label  
FIGURE 22:PEEL-OFF LABEL DETECTOR (AUTO)  
Revision B  
Page 53  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Connecting the Printer Head Thermistor to the SOC-4000  
The thermistor is connected to channel 2 of the ADC using pins 66 and 67 of the SOC-  
4000.  
RESISTANCE/ TEMPERATURE VARIATION THERMISTOR  
10000  
1000  
Rn=100KOhms  
100  
10  
1
-40°-30 -20 -10  
0
10 20 30 40 50 60 70 80 90 100 110 120 130  
T(°C)  
25° C  
FIGURE 23:EXAMPLE OF RESISTANCE/TEMPERATURE VARIATION FOR THE THERMISTOR  
Revision B  
Page 54  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
R1  
SIG2+  
66  
330R  
Vth  
Rth  
R2  
Printer  
Head  
SOC-4000  
67  
SIG2-  
FIGURE 24:THERMISTOR SENSOR  
The ADC channel 2 input is a differential input with a dynamic range of 0 – 0.8V. The  
pull-up and the pull-down resistor values must be chosen accordingly, to ensure that the  
Vth is always in range.  
The voltage input to the ADC channel 2 will be:  
Vcc  
R1* Rth  
R1+ Rth  
Vth =  
* R2  
+ R2  
The ADC readings may be calculated by extrapolation according to Table 24.  
TABLE 24:ADC CHANNEL 2 OUTPUT RANGE  
ADC COUNTS  
Vth=0V  
153,200  
254,000  
100,800  
Vth=0.8V  
Full Scale  
Resolution  
According to the thermistor used, temperature range, R1 and R2 , one may calculate (or a  
look-up table) the expected ADC readings at any temperature.  
Revision B  
Page 55  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
PROGRAMMABLE FREQUENCY CONTROLLER  
Features  
Functional Description  
Dividing the 16-MHz frequency source  
according to the control register setting generates  
the CPU clock frequency.  
The CPU clock can be set to 16, 8, 4, 2, 1 or  
0.5 MHz.  
Programmable CPU clock frequency: 16, 8,  
4, 2, 1 or 0.5 MHz  
Driven by a 16-MHz resonator or crystal  
oscillator  
Functions  
Generates independent clocks for the CPU  
and controllers (A/D converter, display,  
keyboard, watchdog timer, etc.)  
Switching CPU frequency:  
To switch from the 16-MHz frequency to any  
other frequency, program the frequency-  
controller control register as shown in  
Table 25.  
To switch from any frequency (other than  
16 MHz) to another frequency, first switch to  
16 MHz and then switch to the desired  
frequency.  
Clock Generator Block Diagram  
The clock generator block diagram is presented  
in Figure 25.  
16 MHz (Default)  
16 MHz  
Clock  
8 MHz  
4 MHz  
1/2  
1/2  
2 MHz  
1/2  
1 MHz  
1/2  
0.5 MHz  
1/2  
FIGURE 25:CLOCK GENERATOR BLOCK DIAGRAM  
Revision B  
Page 57  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Control Registers Description  
The clock frequency is programmed from a single 8-bit control register.  
The address of the clock frequency control register is E800H.  
The bit settings at E800H that define the clock frequency are given in Table 25.  
TABLE 25:CLOCK FREQUENCY CONTROL REGISTER BIT SETTINGS  
ADDRESS BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0  
(LSB)  
CPU CLOCK  
E800H  
Don’t Care  
Don’t Care  
Don’t Care  
Don’t Care  
Don’t Care  
Don’t Care  
0
0
0
0
1
1
0
0
1
1
0
0
0
1
0
1
0
1
16 MHz  
8 MHz  
4 MHz  
2 MHz  
1 MHz  
0.5 MHz  
Operation  
At Power on or Reset, the CPU frequency clock output is set to 16 MHz.  
The clocks for the controllers is fixed and derived directly from the external frequency  
source.  
The Frequency controller setting derives the CPU clock, as defined in Table 25.  
Revision B  
Page 58  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
WATCHDOG TIMER  
Functions  
Monitor the correct operation of the CPU  
Functional Description  
The operating parameters of the watchdog  
timer are presented in Table 26.  
TABLE 26:WATCHDOG TIMER OPERATING PARAMETERS  
PARAMETER  
Time Constant  
VALUE  
1 second  
Trigger  
By the control register (WDI)  
By the control register (ENWD)  
Disabled  
Enable/Disable  
Power Up Mode  
Control Registers Description  
Setting the Clock Enable register (C200H), bit 3 to 1 enables the watchdog timer.  
Setting the Clock Enable register (C200H), bit 3 to 0 disables the watchdog timer.  
Writing FFH to address F800H re-triggers the watchdog.  
Operation  
The application software controls the watchdog operation. It is automatically disabled in  
the Development System (ICE) mode and after power-up or reset.  
The application software should activate the watchdog as soon as it starts normal  
operation after power-on or reset conditions.  
The watchdog timer should be periodically re-triggered during normal operation, before  
the timer expires. Expiration of the watchdog timer resets the CPU.  
If required, disable the watchdog by disabling the watchdog timer clock input.  
Table 27 describes the operation of the watchdog timer.  
TABLE 27:WATCHDOG TIMER COMMAND SEQUENCE  
#
COMMAND  
ADDRESS  
BIT  
SETTING  
1 Enable Watchdog  
2 Retrigger Timer  
3 Disable Watchdog  
C200H  
F800H  
C200H  
3
-
1
FFH  
0
3
Revision B  
Page 59  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
LOW VOLTAGE DETECTOR  
The low voltage detector is a supervisory circuit in which the Power Fail Input (Vdet) is  
compared to an internal 2.21 V reference (Figure 26). The comparator output goes low  
when the voltage at Vdet is less than or equal to 2.21 V and Bit 1 of register E400H  
equals 0. In order to enable this interrupt, set CFR C10CH to 1F.  
Vdet is usually driven by an external voltage divider, which senses the unregulated DC  
input to the system 5V regulator. The voltage divider ratio can be chosen such that the  
voltage at Vdet falls below 2.23 V several milliseconds before the +5V supply falls below  
4.75V. INT0 is normally used to interrupt the microprocessor so that data can be stored  
in non-volatile memory before VCC falls below 4.75 V and the RESET output goes low.  
The Power Fail Comparator output returns to High when Vdet>2.27V.  
Vin  
VCC  
Unregulated DC  
REG.  
5v  
SOC-4000  
Recommended Values  
for R1, R2:  
Power Fail Comparator  
Comparator Output = 0  
1% 133K R1  
when:  
Vdet  
1. INT0 is low  
+
2. E400H, Bit 1 = 0  
Comparator Output  
1% 100K R2  
INT0  
INT0  
5.19V (Typ.)  
5.3V (Typ.)  
INT0 goes low if Vdet < 2.21V.  
FIGURE 26:LOW VOLTAGE DETECTOR  
Power Failure Interrupt Register  
The address of the power-supply interrupt register is E400H (Read/Write).  
The bit settings at E400H that define the power failure interrupt and flag are given in  
Table 28.  
TABLE 28:POWER-FAILURE INTERRUPT REGISTER BIT SETTINGS  
ADDRESS BIT BIT BIT BIT BIT BIT  
BIT 0 (LSB)  
BIT 1 – PFF  
(POWER FAIL FLAG)  
7
6
5
4
3
2
INTERRUPT ENABLE  
0 = If VDET < VREF  
1 = Normal  
0 = Enabled  
1 = Disabled  
E400H  
Don’t Care  
Operation:  
1. Enable INT0 by setting BIT 0 = 0  
2. After detecting INT0, read the value of the PFF bit (Power Fail Flag, BIT 1):  
PFF = 1  
PFF = 0  
:– Normal ADC Interrupt  
:– Low Voltage Detected event  
Revision B  
Page 61  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
CONFIGURATION REGISTERS - CFR  
Programming the CFR registers in the CPU sets the SOC-4000 pin functions. The CFR  
registers include configuration registers that provide the interface between the CPU and the  
other on-chip peripherals, such as the keyboard, LED/VFD, and LCD controllers and  
input/output ports. Each peripheral operates as designated in the CFR registers, where each  
register may be programmed to perform alternative functions. The complete CFR-register bit  
configuration for all peripherals and input/output and corresponding PLCC-84 pins are given  
in Table 29.  
Revision B  
Page 63  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
TABLE 29:CFR BIT CONFIGURATION  
(ALWAYS BIT 0-LSB)  
VALUE  
PIN # REG ADD.  
BIT  
7-6  
NOTES  
61  
60  
59  
58  
C101H  
C102H  
C103H  
C104H  
C105H  
C106H  
10 = LED-SI-BLANK  
10 = LED-SI-STROBE  
10 = LED-SI-DATA  
10 = LED-SI-CLK  
SI = Serial Interface  
CLK = Clock  
5-4  
3-2  
1-0  
7-6  
5-4  
3-2  
1-0  
Don’t Care  
LCD Display module support  
Must be set to AAH  
Must be set to AAH  
Must be set to AAH  
Must be set to AAH  
56  
55  
54  
01 = CSLCD  
10 = OUT12.2  
01 = A0 (WRLCD) 10 = OUT12.1  
01 = A1 (RDLCD) 10 = OUT12.0  
7-6  
5-4  
3-2  
1-0  
10 = Printer Support  
10 = Printer Support  
10 = Printer Support  
10 = Printer Support  
7-6  
5-4  
3-2  
1-0  
10 = Printer Support  
10 = Printer Support  
10 = Printer Support  
10 = Printer Support  
7-6  
5-4  
3-2  
1-0  
10 = Printer Support  
10 = Printer Support  
10 = Printer Support  
10 = Printer Support  
7-6  
5-4  
3-2  
1-0  
10 = Printer Support  
10 = Printer Support  
10 = Printer Support  
10 = Printer Support  
Revision B  
Page 64  
August, 2002  
CybraTech (2000) Ltd.  
PIN # REG ADD.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
BIT  
7-6  
VALUE  
10=PRN_SI_CLK  
NOTES  
SI – Serial Interface  
CLK – Clock  
C107H  
45  
44  
43  
41  
40  
39  
38  
37  
5-4  
3-2  
1-0  
7-6  
5-4  
3-2  
1-0  
10=PRN_SI_DATA  
10=PRN_SI_LATCH  
01=Strobe 6  
PRN - Printer  
11 = OUT P8.0  
11=OUT P7.3  
11=OUT P7.2  
11=OUT P7.1  
11=OUT P7.0  
C108H  
10=Strobe 5  
10=Strobe 4  
10=Strobe 3  
10=Strobe 2  
36  
35  
34  
33  
C109H  
C10AH  
C10BH  
7-6  
5-4  
3-2  
1-0  
10=Strobe 1  
11 = OUT P6.3  
10 = Motor 6 (OUT P6.2)  
10 = Motor 5 (OUT P6.1)  
10 = Motor 4 (OUT 6.0)  
7-6  
5-4  
3-2  
1-0  
Don’t care  
32  
31  
30  
10 = Motor 3 (OUT 5.2)  
10 = Motor 2 (OUT 5.1)  
10 = Motor 1 (OUT 5.0)  
7
Don’t care  
29  
28  
23  
22  
6-5  
4-3  
2
01= Aux. Motor  
01= VPP  
10 = OUT P4.3  
10 = OUT P4.2  
1 = RS485 control (OUT P4.1)  
1-0  
01= TX2  
1F  
10 = OUT P4.0  
-
C10CH  
C10DH  
7-0  
Must be set to ‘1F’  
14  
13  
12  
11  
10  
9
7
6
5
4
3
2
1
0
0 = I/O P15.7  
0 = I/O P15.6  
0 = I/O P15.5  
0 = I/O P15.4  
0 = I/O P15.3  
0 = I/O P15.2  
0 = I/O P15.1  
0 = I/O P15.0  
1= KIN0  
1= KIN1  
1= KIN2  
1= KIN3  
1= KIN4  
1= KIN5  
1= KIN6  
1= KIN7  
KIN = Keyboard In  
I/O = Input/Output  
8
7
Revision B  
Page 65  
August, 2002  
CybraTech (2000) Ltd.  
PIN # REG ADD.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
BIT  
VALUE  
1= KOUT0  
NOTES  
KOUT = Keyboard Out  
C10EH  
5
7
6
5
4
3
2
1
0
0 = I/O P14.7  
0 = I/O P14.6  
0 = I/O P14.5  
0 = I/O P14.4  
0 = I/O P14.3  
0 = I/O P14.2  
0 = I/O P14.1  
0 = I/O P14.0  
4
1= KOUT1  
1= KOUT2  
1= KOUT3  
1= KOUT4  
1= KOUT5  
1= KOUT6  
1= KOUT7  
3
2
1
84  
83  
82  
81  
80  
79  
78  
77  
76  
75  
74  
C10FH  
7
6
5
4
3
2
1
0
0 = I/O P17.7  
0 = I/O P17.6  
0 = I/O P17.5  
0 = I/O P17.4  
0 = I/O P17.3  
0 = I/O P17.2  
0 = I/O P17.1  
0 = I/O P17.0  
1= KIN8  
KIN = Keyboard In  
1= KIN9  
1= KIN10  
1= KIN11  
1= KIN12  
1= KIN13  
1= KIN14  
1= KIN15  
Glossary of Terms  
TERM DEFINITION  
DP  
Decimal Point  
Clock  
CLK  
DIG  
I.O  
Digit  
Input/Output  
Keyboard In  
Keyboard Out  
Segment  
KIN  
KOUT  
SEG  
SI  
Serial Interface  
Backplane  
Auxiliary  
BP  
AUX  
Revision B  
Page 66  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
SPECIAL FUNCTION REGISTERS (SFR)  
The SOC-4000/I includes Special Function Registers (SFR) that enable the device hardware  
controllers and reset them. Each controller description details its specific SFR operation.  
This section details all the SFR registers and functions. All these registers are mapped as  
XDATA memory area.  
Global CFR Register  
Register C100H is used as a general enable/disable of pin allocation to all the hardware  
controllers in the SOC-4000/i. Upon power-up or reset this register is set, disabling all the  
hardware controllers. Writing 0x00 to the register activates the allocation of pins to hardware  
controller, as defined by programming the CFR registers.  
TABLE 30:GLOBAL CFR REGISTER  
ADDRESS  
C100H  
FUNCTION  
REMARKS  
Enable / Disable pin allocation  
0x00 – Enable  
0xFF - Disable  
Operation  
1. Upon power-up or reset, the Global CFR register is cleared, disabling all pin allocation to the  
hardware controllers.  
2. Initialize the CFR registers according to the required hardware configuration as described in  
section “Configuration Registers (CFR)” (page 55).  
3. Initialize the hardware controllers.  
4. Enable the Global CFR Register: Write 0x00 to address C100H.  
Controllers Clock Enable Registers  
Registers C200H-C201H control the clock source to the hardware controllers in the SOC-  
4000/I. Each controller operation may be disabled by inhibiting its clock.  
TABLE 31:C200H CLOCK ENABLE REGISTER  
ADDRESS BIT 7  
BIT 6  
BIT 5  
BIT 4  
BIT 3  
BIT 2  
BIT 1  
BIT 0  
(LSB)  
C200H  
C201H  
ADC  
Printer  
SLED  
0
WDT  
KBD  
0
0
STROBE6 STROBE5 STROBE4 STROBE3 STROBE2 STROBE1  
VPP  
AUXMOT  
Revision B  
Page 67  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
TABLE 32:C200H CONTROLLERS CLOCK ENABLE REGISTER BIT FUNCTIONS  
BIT  
NAME  
LCD  
TYPE  
FUNCTION  
SETTINGS  
0 = Disable  
0
(LSB)  
1
Enable LCD display controller clock  
read/write  
1 = Enable  
Always 0.  
-
None. Always set to 0  
read/write  
read/write  
2
KBD  
Enable keyboard controller clock  
0 = Disable  
1 = Enable  
0 = Disable  
1 = Enable  
Always 0.  
3
WDT  
Enable watch-dog timer clock  
read/write  
4
5
-
None. Always set to 0.  
read/write  
read/write  
SLED  
Enables serial LED display controller  
0 = Disable  
1 = Enable  
0 = Disable  
1 = Enable  
0 = Disable  
1 = Enable  
6
7
Printer  
ADC  
Enable Printer Controller  
read/write  
read/write  
Enables ADC controller clock  
TABLE 33:C201H CONTROLLERS CLOCK ENABLE REGISTER BIT FUNCTIONS  
BIT  
NAME  
Auxmot  
TYPE  
FUNCTION  
SETTINGS  
0
(LSB)  
1
Enable Auxiliary Motor  
Stretcher  
0=Disable  
1=Enable  
read/write  
VPP  
Enable Power to the  
Printer Head  
0=Disable  
1=Enable  
read/write  
read/write  
read/write  
read/write  
read/write  
read/write  
read/write  
2
3
4
5
6
7
STROBE1  
STROBE2  
STROBE3  
STROBE4  
STROBE5  
STROBE6  
Enable Strobe 1  
Enable Strobe 2  
Enable Strobe 3  
Enable Strobe 4  
Enable Strobe 5  
Enable Strobe 6  
0=Disable  
1=Enable  
0=Disable  
1=Enable  
0=Disable  
1=Enable  
0=Disable  
1=Enable  
0=Disable  
1=Enable  
0=Disable  
1=Enable  
Revision B  
Page 68  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Controllers RESET Registers  
The SFRs listed in Table 34 provides the mechanism to reset the hardware controllers of the  
SOC-4000/i.  
TABLE 34:CONTROLLERS RESET REGISTER  
ADDRESS  
TYPE  
FUNCTION  
SETTINGS  
0xFF = Reset  
C400H  
C403H  
C405H  
C407H  
C408H  
C409H  
C40AH  
C40BH  
C40CH  
C40DH  
C40EH  
C406H  
Write only Keyboard controller reset  
Write only Serial LED display controller reset  
Write only Printer controller reset  
Write only Auxmot Stretcher reset  
Write only VPP Stretcher reset  
0xFF = Reset  
0xFF = Reset  
0xFF = Reset  
0xFF = Reset  
0xFF = Reset  
0xFF = Reset  
0xFF = Reset  
0xFF = Reset  
0xFF = Reset  
0xFF = Reset  
0xFF = Reset  
Write only STROBE1 Strobe reset  
Write only STROBE2 Strobe reset  
Write only STROBE3 Strobe reset  
Write only STROBE4 Strobe reset  
Write only STROBE5 Strobe reset  
Write only STROBE5 Strobe reset  
Write only ADC controller reset  
Revision B  
Page 69  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
I/O OPERATION  
I/O operation is determined by the configuration registers (CFRs). The I/O ports are  
composed of two groups:  
1. Byte-Oriented Output Ports –  
Data written to the port is byte oriented (writing FFH to the port will set it to HIGH,  
and writing 00H to the port will set it to LOW).  
2. Bit-Oriented Input/Output (I/O) Ports –  
Data written to the port is byte oriented (FFH–to set the port, 00H–to reset the port).  
Data read from the port is bit-oriented (only the port allocated bit is set/reset).  
The I/O ports groups, addresses and corresponding PLCC-84 pins are described in Table  
35 and Table 36.  
TABLE 35:BIT-ORIENTED I/O PORTS ADDRESSES, PIN AND BIT ASSIGNMENT  
PLCC-84 PIN  
I/O PORT NAME  
I.O 15.7  
PORT ADDRESS  
F22A  
BIT ASSIGNMENT  
x
0 0 0 0 0 0 0  
14  
13  
12  
11  
10  
9
x
0
I.O 15.6  
I.O 15.5  
I.O 15.4  
I.O 15.3  
I.O 15.2  
I.O 15.1  
I.O 15.0  
I.O 14.7  
I.O 14.6  
I.O 14.5  
I.O 14.4  
I.O 14.3  
I.O 14.2  
I.O 14.1  
I.O 14.0  
I.O 17.7  
I.O 17.6  
I.O 17.5  
I.O 17.4  
I.O 17.3  
I.O 17.2  
I.O 17.1  
I.O 17.0  
F22B  
F22C  
F22D  
F22E  
F22F  
F230  
F231  
F232  
F233  
F234  
F235  
F236  
F237  
F238  
F239  
F23A  
F23B  
F23C  
F23D  
F23E  
F23F  
F240  
F241  
0 0 0 0 0 0  
x
0 0 0 0 0  
0 0  
0 0 0  
0 0 0 0  
0 0 0 0 0  
0 0 0 0 0 0  
0 0 0 0 0 0 0  
x
0 0 0 0  
x
0 0 0  
x
0 0  
x
8
0
x
7
x
5
0 0 0 0 0 0 0  
x
4
0 0 0 0 0 0  
0
x
3
0 0 0 0 0  
0 0  
0 0 0  
0 0 0 0  
0 0 0 0 0  
0 0 0 0 0 0  
0 0 0 0 0 0 0  
x
2
0 0 0 0  
x
1
0 0 0  
x
0 0  
84  
83  
82  
81  
80  
79  
78  
77  
76  
75  
74  
x
0
x
x
0 0 0 0 0 0 0  
x
0 0 0 0 0 0  
0
x
0 0 0 0 0  
0 0  
0 0 0  
0 0 0 0  
0 0 0 0 0  
0 0 0 0 0 0  
0 0 0 0 0 0 0  
x
0 0 0 0  
x
0 0 0  
x
0 0  
x
0
x
Revision B  
Page 71  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
TABLE 36:BYTE-ORIENTED OUTPUT PORTS ADDRESSES AND PIN ASSIGNMENT  
PLCC-84 PIN  
I/O FUNCTION  
OUT 13.3  
PORT ADDRESS  
F205  
61  
60  
59  
58  
56  
55  
54  
45  
44  
43  
42  
41  
40  
39  
38  
37  
36  
35  
34  
33  
32  
31  
30  
29  
28  
23  
22  
OUT 13.2  
F206  
OUT 13.1  
F207  
OUT 13.0  
F208  
OUT 12.2  
F21C  
F21B  
F21A  
F216  
OUT 12.1  
OUT 12.0  
OUT P8.3  
OUT P8.2  
F217  
OUT P8.1  
F218  
I.O. 18.0  
F229  
OUT P8.0  
F219  
OUT P7.3  
F21A  
F21B  
F21C  
F21D  
F21E  
F21F  
F220  
OUT P7.2  
OUT P7.1  
OUT P7.0  
OUT P6.3  
MOTOR6 (OUT P6.2)  
MOTOR5 (OUT P6.1)  
MOTOR4 (OUT P6.0)  
MOTOR3 (OUT P5.2)  
MOTOR2 (OUT P5.1)  
MOTOR1 (OUT P5.0)  
OUT P4.3  
F221  
F222  
F223  
F224  
F225  
OUT P4.2  
F226  
OUT P4.1  
F227  
OUT P4.0  
F228  
Revision B  
Page 72  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
8051-COMPATIBLE ON-CHIP PERIPHERALS  
This section describes the standard 8051 peripheral devices available to the user. These  
functions are fully compatible with the standard 8051 CPUs and are controlled via the  
standard 8051 Special Function Registers (SFRs).  
Parallel I/O Ports  
Some of the parallel I/O ports of the 80C51TBO core are available on the SOC-4000  
pins.  
Most of the ports are already allocated to specific functions. However, the application  
design may require allocating different functions to these pins. Table 37 list the  
available pins, 80C51 I/O port, default function and special precaution needed when  
changing the function of the pin.  
TABLE 37:AVAILABLE PINS ON THE 80C51 I/O PORT  
PIN #  
80C51  
PORT  
P1.7  
DEFAULT  
SPECIAL PRECAUTIONS  
FUNCTION  
15  
16  
17  
25  
Buzzer  
None  
Port 1 is used as the code memory page register. Each port line  
should be handled bit-wise, without affecting P1.0-P1.3.  
P1.5  
P1.4  
Port 1 is used as the code memory page register. Each port line  
should be handled bit-wise, without affecting P1.0-P1.3.  
None  
Port 1 is used as the code memory page register. Each port line  
should be handled bit-wise, without affecting P1.0-P1.3.  
P3.4 /  
Timer 0  
P3.5 /  
Label detect  
26  
27  
Label removal  
detector  
Timer 1  
P1.6  
Paper detect  
Port 1 is used as the code memory page register. Each port line  
should be handled bit-wise, without affecting P1.0-P1.3.  
The I/O ports are controlled and accessible using the 80C51TBO Special Function  
Registers as described in its device specification.  
Timers/Counters  
The 80C51 Timers/Counters external inputs are available for use on SOC-4000 pin #25  
(Timer 0) and pin #26 (Timer 1). Using the timers is via the 80C51 Special Function  
Registers (SFRs) as described in the 80C51TBO specification.  
Revision B  
Page 73  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
SOC-4000 INITIALIZATION  
On Power-on/Reset, the SOC-4000 performs a self-test and initializes all registers to 0  
(00H).  
The GLOBAL register C100H is automatically set to 80H, to inhibit all the outputs from  
hardware controllers and therefore avoid damage to external hardware.  
The application software should implement the following steps to initialize the ASIC:  
1. Program the Configuration Registers (CFRs) to support the application hardware, as  
defined in Table 16 (page 2):  
a. Set registers C103H, C104H, C105H and C106H to AAH.  
If an LED/VFD Serial Interface Display is used, set register C101H to AAH.  
If an LCD Display is used set register C102H to D5.  
2. Set the other CFRs as required according to the keyboard, printer, stretchers, printer  
motors and sensors supported.  
3. Initialize the applicable hardware controllers.  
4. Enable the clock source of the controllers, using register C200H and C210H.  
5. Write 00H to the GLOBAL register C100H.  
6. Enable the Watchdog timer.  
Revision B  
Page 75  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
PERIPHERAL INTERFACE CONNECTIONS  
Load Cell Interface  
The SOC-4000 supports a wide range of load-cell connection configurations, each based  
on various combinations of the following connection options:  
4-wire or 6-wire interface  
Up to eight load cells connected in parallel  
Load cell impedance range of 350 to 1000 ohms  
Individually and in combination, these connection options enable the SOC-4000 to  
function on a wide range of application platforms, each having different power  
consumption and system configuration requirements, while using the same electronic  
hardware.  
4-Wire and 6-Wire Interfaces  
The SOC-4000 interface to the load cell carries the following electrical signals:  
SIG + (Signal Input +)  
SIG – (Signal Input –)  
SEN + (Excitation voltage / Sense input +)  
SEN – (Excitation voltage / Sense input –)  
A typical 4-wire load-cell connection, in which the distance between the load cells and  
the SOC-4000 chip is small, as in a standard retail scale, is shown in Figure 27.  
However, in platforms requiring long wires between the load cell and the electronic  
hardware, such as weighing bridges, the voltage drop over the cables is significant and  
affects accuracy.  
The 6-wire interface eliminates this error factor by using the sense wires, as shown in  
Figure 28. The sense wires serve as a reference for the A/D converter, thus eliminating  
the voltage drop over the long excitation-voltage wires.  
Revision B  
Page 77  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Load Cell  
Cable  
Regulated  
Reg.  
Unregulated  
Power  
(4-Wires)  
5 V  
73  
AVcc  
72 SEN  
+
71 SIG +  
SOC-4000  
70 SIG -  
69 SEN-  
AGND  
68  
FIGURE 27:4-WIRE LOAD-CELL CONNECTION  
Load Cell  
Cable  
Regulated  
Reg.  
Unregulated  
Power  
(6-Wires)  
5 V  
Sense  
Wire  
73  
AVcc  
72 SEN  
+
71 SIG +  
70 SIG -  
SOC-4000  
69 SEN-  
AGND  
68  
Sense  
Wire  
AGND  
FIGURE 28:6-WIRE LOAD-CELL CONNECTION  
Revision B  
Page 78  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Load Cells Connected in Parallel  
The SOC-4000 may be connected to up to eight load cells connected in parallel. Multiple  
load cells are required in heavy load applications, such as weigh bridges, that require  
from two to eight load cells.  
Load cells connected in parallel typically result in lower output impedance, which  
decreases in direct proportion to the number of load cells. This results in a higher  
excitation current and higher sensitivity to factors that throw load cells out of balance.  
The SOC-4000 eliminates this problem with its high Common Mode Rejection Ratio  
(CMRR), which allows the connection of a large number of load cells (up to eight)  
without losing measurement accuracy. The multiple load-cell connection is shown in  
Figure 29.  
IMPORTANT  
The load cells should be matched before connecting them to the SOC-4000 to ensure the  
same initial offset, span and impedance. This will eliminate error factors that are beyond  
the control of SOC-4000 electronics.  
NOTE  
These large weighing platforms may also require a 6-wire interface connection, as  
described above (page 77).  
LOAD Cells  
Connection  
Regulated  
5 V  
JUNCTION  
BOX  
73  
AVcc  
72 SEN  
+
(
(
) Output  
*
Trimming  
71 SIG +  
70 SIG -  
69 SEN-  
Up to 8  
SOC-4000  
Load Cells  
) Zero Offset  
Trimming  
*
AGND  
68  
AGND  
FIGURE 29:MULTIPLE LOAD-CELL CONNECTION  
Revision B  
Page 79  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Load Cell Impedance  
Most load cells have output impedance of 350 ohms. However, in power-restricted  
applications, load cells of higher impedance, typically a 1000-ohm bridge, are used to  
reduce the cell’s power consumption.  
The SOC-4000 CMRR minimizes the error resulting from this high bridge impedance  
and ensures full and accurate performance under this limiting condition.  
The result is economical power consumption without sacrificing weighing accuracy.  
Serial Communication Channel Multiplexer  
The SOC-4000 supports two serial communication channels that are multiplexed to the  
embedded 80C31TBO controller UART.  
Selection of the active serial channel is done via the control register at address C111H as  
defined in Table 38.  
TABLE 38:COMMUNICATION CHANNEL MULTIPLEXER CONTROL  
ADDRESS  
CONTROL  
ACTIVE COMMUNICATION  
CHANNEL  
SOC-4000 PIN #  
REGISTER VALUE  
C111H  
0
Tx, Rx (Channel 1)  
20, 21 (Default)  
22,23  
1
Tx2, Rx2 (Channel 2)  
RS-485 Serial Interface Transmit / Receive Control  
SOC-4000 supports managing the operation of an RS-485 driver (transmit / receive). The  
control is implemented asserting port P4.1 (address F227H, pin 23) to ‘HIGH’ or ‘LOW’  
as required according to the function and the RS-485 driver used.  
To operate the RS-485:  
1. Write 00H to F227H (P4.1) sets the port to ‘LOW’.  
2. Write FFH to F227H (P4.1) sets the port to ‘HIGH’.  
Revision B  
Page 80  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Keyboard Interface  
The SOC-4000 supports direct connection of a keyboard of up to 128 keys arranged in  
an 8 × 16 matrix. The hardware interface with an example of a scale keyboard is shown  
in Figure 30.  
The keyboard controller (“Keyboard Controller”, page 29) automatically scans the  
matrix by asserting a high signal on the output lines (KOUT 0 to 7) and reading the input  
lines (KIN 0 to 15). The key hardware code, which is the code returned by the keyboard  
controller when the key is pressed, is shown in Figure 11, page 30.  
The keyboard controller has a programmable anti-bounce mechanism, in which different  
delays can be programmed to avoid erroneous key activation due to bouncing of the  
keys. The delay can be set to a discrete value from 4 to 18 milliseconds, in  
two-millisecond increments. For programming the anti-bounce mechanism, see  
Table 10, page 31.  
To operate the keyboard:  
1. Initialize the CFR registers to support the required keyboard matrix. See Table 29,  
page 64.  
2. Initialize the keyboard controller, as described in “Keyboard Controller”, page 29.  
3. Program the keyboard controller, as described in “Keyboard Controller”, page 29.  
Revision B  
Page 81  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
KOUT7  
KOUT6  
KOUT5  
KOUT4  
KOUT3  
/
7
4
1
.
*
8
-
+
±
F1  
F2  
F3  
F4  
Bsp  
T
F5  
F6  
F7  
F8  
Esc  
Y
M1  
M9  
M2  
M3  
M4  
M5  
M6  
M14  
M22  
M30  
M38  
M46  
M54  
M62  
M7  
M8  
9
M10  
M18  
M26  
M34  
M42  
M50  
M58  
M11  
M19  
M27  
M35  
M43  
M51  
M59  
M12  
M20  
M28  
M36  
M44  
M52  
M60  
M13  
M21  
M29  
M37  
M45  
M53  
M61  
M15  
M23  
M31  
M39  
M47  
M55  
M63  
M16  
M24  
M32  
M40  
M48  
M56  
M64  
5
6
3
%
=
C
M
C
E
R
M17  
M25  
M33  
M41  
M49  
M57  
2
M+  
O
U
M
0
Enter  
E
P
I
KOUT2  
Q
A
Z
W
S
X
R
F
V
KOUT1  
D
G
H
J
K
L
KOUT0  
C
B
N
M
82  
83  
84  
1
2
3
4
5
7 4  
KIN15  
7 5  
KIN14  
7 6  
KIN13  
7 7  
KIN12  
7 8  
KIN11  
7 9  
KIN10  
8 0  
KIN9  
8 1  
KIN8  
7
9
1 0  
KIN4  
1 1  
KIN3  
1 2  
KIN2  
1 3  
KIN1  
1 4  
KIN0  
PIN#  
Signal  
KIN7  
KIN6  
KIN5  
FIGURE 30:KEYBOARD INTERFACE  
Revision B  
Page 82  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
LED/VFD Serial Display Interface  
The SOC-4000 interface supports Serial LED/VFD displays as follows:  
Up to 24 digits each comprising eight segments–seven-segment digit plus Decimal Point  
(DP)  
Three digit groups, Weight, Price and Total  
Automatic hardware refresh mechanism to reduce power consumption  
To operate the LED/VFD display (common anode):  
Initialize the CFR registers to support operation in the LED/VFD Serial display mode.  
See Table 29, page 64.  
8
Segment  
ULN2003  
(x 4)  
8
8
SOC  
4000  
Pin 58  
.
Digit Driver  
ULN2003  
(x 1)  
High Current Drivers  
DY9953  
74HC595  
(x 4)  
.
LED/VFD  
4
8
8
.
Serial Int Pin 61  
(x 4)  
Digit  
FIGURE 31:SOC-4000 INTERFACE TO A LED/VFD DISPLAY  
External Interrupt Sources  
External interrupt sources may be connected to the SOC-4000 using the following pins:  
d. Vdet / INT0~.  
e. P3.4 / Timer-counter 0 input.  
f. P3.5 / Timer-counter 1 input.  
Revision B  
Page 83  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
Using the Vdet input:  
The Vdet input is connected to INT0 of the 80C51TBO core. In battery-operated equipment  
this input is connected to the battery voltage divider and used to detect low battery voltage.  
Other interrupt sources may be connected to this input using open-collector drivers operating  
in negative logic mode (‘0’ is active interrupt). A low voltage input triggers the INT0. The  
application software applies a mechanism to determine whether the interrupt was generated  
by low battery voltage or by other interrupt source.  
The external interrupt sources should be level-type (and not pulse). It is recommended to add  
a LPF with R=330 Ohm, C=1µF.  
Using Timer0 and Timer1 inputs:  
SOC-4000 pin #25 is connected to the 80C51 Timer 0 input (P3.4) and pin #26 is connected  
to Timer1 input (P3.5).  
These inputs may be used for counting or timer operations, or as additional interrupt inputs to  
the device.  
Using these inputs as interrupt inputs requires that the appropriate timer be set to 0xFE. The  
next event causes the counter to increase to 0xFF and triggers the Timer 0 (or Timer 1)  
interrupt.  
I2C-Compatible Interface  
The SOC-4000 supports a 2-wire I2C compatible serial interface. The I2C-compatible  
interface shares its pins with the CPU I/O pins (P1.4, P1.5) and is implemented in software.  
Table 39 provides the hardware interface information:  
TABLE 39:I2C-COMPATIBLE INTERFACE HARDWARE INTERFACE  
PIN#  
NAME  
DESCRIPTION  
17  
16  
SDA (P1.4)  
SCL (P1.5)  
Serial Data I/O pin  
Serial Clock pin  
Power Saving Schemes  
SOC-4000/i provides several means to save power for battery-operated systems:  
Set the CPU to IDLE or POWERDOWN operating modes – see detailed description in  
the M8051TBO Technical Specification, Power Management section.  
Disable unused hardware controllers – by disabling the controller clock via the  
“Controllers Clock Enable Registers (C200H, C201H)”, see Table 32 (page 68) and  
Table 33 (page 68).  
Reduce the CPU frequency to minimum while idle by using the Frequency Controller.  
The CPU frequency may be increased on the fly to 16MHz when an interrupt or an event  
occurred.  
Switch the power to the load cell using the I/O pins of the SOC and an external switch.  
Revision B  
Page 84  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
In-Circuit Emulator (ICE) System  
The In-Circuit Emulator (ICE-3000) system provides full emulation of the SOC-4000 device.  
It includes a plug-in pod that replaces the SOC-4000 device thus enabling full emulation of  
the device in the target board. It emulates the SOC-4000 device in real-time simplifying the  
hardware-software integration process.  
The ICE-3000 is composed of 3 elements:  
DS-51 emulator.  
SOC-4000 Personality Probe.  
Windows-based software debugger.  
The system enables you to access all SOC-4000 device registers and memory locations and  
debug the application using free run or breakpoints and single step execution control.  
Grounding and Board Layout Recommendations  
As with all high-resolution data converters, special attention must be paid to grounding and to  
the PCB layout of SOC-4000 based designs in order to achieve optimum performance from  
the Analog-To-Digital Converter.  
Four-layer boards are recommended where the outer layers are ground layers covering the  
whole surface, and the inner layers are used for routing the signal lines. The same ground  
plane should be used for both the digital and analog grounds.  
Keep all ground connection as short as possible. Make sure that the return paths of the  
signals are as close as possible to the paths that the currents took to reach their destinations.  
Avoid digital signals flowing under the analog components area.  
Wherever possible, avoid large discontinuities in the ground plane, since they force the return  
signals to travel on a longer path. An example of correct implementation is routing all  
signals through the inner layers and keeping the outer layers for ground.  
If you plans to connect fast logic signals (rise/fall time < 5ns) to any of the SOC-4000 digital  
inputs, add a series resistor to each relevant line in order to keep rise and fall times longer  
than 5 ns at the SOC-4000 input pins. A value of 100 or 200 is usually sufficient to  
prevent high-speed signals from capacitive coupling into the SOC-4000 and affecting the  
accuracy of the ADC.  
Revision B  
Page 85  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
LCD Display Module Interface  
The SOC-4000 supports direct connection of an LCD display module. The hardware interface  
with the module is shown in Figure 32.  
LCD Module  
SOC-4000  
D0 - D7  
DB0 - DB7  
(46) - (53)  
CSLCD (56)  
A1 (54)  
Enable  
R/W~  
RS (Register  
Selection)  
A0 (55)  
(XX) - SOC-4000 Pin Number  
FIGURE 32:LCD DISPLAY MODULE HARDWARE INTERFACE  
The SOC-4000 signals and pin out are defined in Table 40.  
TABLE 40:SOC-4000 INTERFACE SIGNALS TO LCD DISPLAY MODULE  
SIGNAL NAME PIN NUMBER I/O  
FUNCTION  
Data bus. D7 is the MSB. Output Only.  
Module select signal  
D0 – D7  
CSLCD  
A1  
46 - 53  
56  
O
O
O
O
54  
Read / Write signal  
A0  
55  
Address (register) select  
The LCD display module hardware interface is composed of 11 signals, as described in Table  
41. Notice that the SOC-4000 imposes several restriction on the module interface.  
Revision B  
Page 86  
August, 2002  
CybraTech (2000) Ltd.  
Technical Specification  
SOC-4000/i Scale-On-Chip ASIC  
TABLE 41:LCD DISPLAY MODULE INTERFACE SIGNALS  
SIGNAL NAME  
DB0 – DB7  
NO. OF  
I/O  
FUNCTION  
SIGNALS  
8
I/O  
Tristate bidirectional data bus:  
data is read from the module to the controller or writen to  
the module.  
DB7 is the MSB.  
DB7 is also used as a busy flag.  
E
1
1
I/O  
I
Operation start signal.  
The signal activates data write or read.  
R/W~  
Read / Write selection signal:  
0 : Write  
1 : Read  
RS  
1
I
Register selection signal:  
0 : Instruction register (Write)  
Busy flag and address counter (Read)  
1 : Data register (Write and Read)  
Table 42 defines the registers addresses used to operate module and their function.  
TABLE 42:REGISTERS ADDRESSES AND FUNCTION  
REGISTER ADDRESS READ / WRITE  
FUNCTION  
Write Instruction register  
Write Data register  
F400H  
F401H  
W
W
Revision B  
Page 87  
August, 2002  
USA  
Germany  
Tedea-Huntleigh Incorporated  
20630 Plummer Street  
Chatsworth, California 91311  
U.S.A.  
Tel: +1-818-701-2700  
Fax: +1-818-701-2799  
Tedea-Huntleigh GmbH  
Mümlingweg 18  
D-64297  
Darmstadt-Eberstadt  
Germany  
Tel: +49-6151-94460  
Email: sales@tedea-huntleigh.com  
Fax:+49-6151-944640  
UK  
France  
SEEA sa.  
16 Rue Francis Vovelle  
28000 Chartres  
France  
Tedea-Huntleigh Europe Ltd.  
37 Portmanmoor Road  
Cardiff  
CF24 5HE  
United Kingdom  
Tel: +44 (0) 29-20460231  
Fax: +44 (0) 29-20462173  
Tel: +33-2-37-33-31-20  
Fax: +33-2-37-33-31-29  
Email: sales@tedea-huntleigh.co.uk  
Taiwan  
Integrated Solutions Ltd.  
Tel: +886-2-2649-7254  
Fax: +886-2-2649-7253  
CybraTech (1998) Ltd.  
5a Hazoran St., PO Box 8381  
Netanya, 42506 ISRAEL  
Tel: +972-9-8638832  
Fax: +972- 9-8638822  
Email: info@cybratech.co.il  
Website: www.cybratech.com  
Document order number: SOC-4000-0001-SP  

相关型号:

SOC-4000I

Scale-On-Chip ASIC Technical Specification
ETC

SOC01D

THIN FILM COMPENSATED SENSORS
ETC

SOC01DD1

THIN FILM COMPENSATED SENSORS
ETC

SOC01DD2

THIN FILM COMPENSATED SENSORS
ETC

SOC01DD3

THIN FILM COMPENSATED SENSORS
ETC

SOC01DN

THIN FILM COMPENSATED SENSORS
ETC

SOC01DP1

THIN FILM COMPENSATED SENSORS
ETC

SOC01DP2

THIN FILM COMPENSATED SENSORS
ETC

SOC01DXX

THIN FILM COMPENSATED SENSORS
ETC

SOC05D

THIN FILM COMPENSATED SENSORS
ETC

SOC05DD1

THIN FILM COMPENSATED SENSORS
ETC

SOC05DD2

THIN FILM COMPENSATED SENSORS
ETC