| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
STARTER ST624x FAMILY HARDWARE FEATURES SOFTWARE FEATURES
Top Searches for this datasheetST624x-KIT STARTER ST624x FAMILY HARDWARE FEATURES SOFTWARE FEATURES Immediate evaluation ST6240 with demonstration examples Program debugging within user's real application environment board programming ST62E46 ST62T46 In-circuit programming ST62E4x ST62T4x devices user's application board Software simulator including display read/write Assembler, linker, debugger EPROM/OTP programming utilities Application examples February 1998 1/49 Table Contents ST624x-KIT INTRODUCTION Where from here. STARTER HARDWARE Microcontroller Starter Board Oscillators 8-alphanumeric Digit Reset Button Indicator Hexadecimal Keyboard Resistance trimmer Combi-ports PC0-7 INSTALLING STARTER Hardware Software Requirements Installing Software Connecting Power Supply RUNNING DEMOS What Demos 4.1.1 Demo Display 4.1.2 Demo Voltmeter Running Demonstration Programs CONNECTING EXTERNAL RESOURCES STARTER BOARD USING STARTER BOARD HARDWARE SIMULATOR Data Transmission Driver Technical Limitations Error Messages Troubleshooting EXERCISES Exercise Exercise PROGRAMMING MICROCONTROLLERS Setting Starter Board In-Circuit Programming 8.2.1 Application Board Connections Setting Starter Board In-Circuit Programming 2/49 Table Contents INTERFACE ST6240 DRIVER OVERVIEW STARTER PANEL INTERFACE Interfacing Panel with ST6240 Driver Character Definition Examples 9.4.1 Character Definition 9.4.2 Character Definition Starter Panel Character Software Model 9.5.1 Direct Code Patching 9.5.2 Indexed Data 9.5.3 Complete Message Display HARDWARE INFORMATION 10.1 Part List 10.2 Starter Board Schematic 3/49 Introduction INTRODUCTION ST624x Starter provides with need start designing, developing evaluating programs ST624x microcontrollers immediately. ST624x Starter includes: assembler linker, AST6 LST6. Windows debugger, WGDB6. Windows microcontroller programmer, Epromer. Starter board, which serves demonstration board low-cost debugging tool. Some demonstration programs that show microcontrollers Starter board resources. Some example programs. ST62E46BF1 microcontrollers. complete paper documentation online help. demonstration programs, that come pre-loaded ST62T40B microcontroller, show powerful features microcontrollers operate real environment. demonstration programs hardware resources provided Starter board, which include LCD, hexadecimal keyboard, resistance trimmer oscillator. Using assembler linker, AST6 LST6, assemble link programs. "ST6 Family Software development tools AST6, LST6, WGDB6" User Manual will guide through steps developing, assembling linking programs ST6. Starter software includes example programs typical applications. These installed directory C:\st6tools\sk624Xi1\examples. fast-track solution developing bug-free programs ST6, without hassle writing assembler code, ST6-Realizer program. Once have developed your program, Windows-based program debugger, WGDB6/SIMULATOR, together with Starter board, low-cost powerful debugging tool. WGDB6 includes simulator, that simulates execution your program, uses that plugged into Starter board emulate transactions that performed with data space. Thus, using Starter board with WGDB6, view microcontroller peripherals behave when your program executed. WGDB6 includes powerful debugging features, such source-level debugging, instruction conditional memory access breakpoints selective trace recording. "ST6 Family 4/49 Introduction Software development tools AST6, LST6, WGDB6" User Manual online help will lead through debugging process using WGDB6. When your program ready, Epromer provides with easy-to-use Windows interface, which lets prepare executable code, then write ST62E46B microcontroller that plugged into SDIP56 socket Starter board, your in-circuit application board that connected Starter board. ST62T40B can't erased programmed, already programmed contains demonstrations program. observe evaluate consequences your program resources controls, ST62T40B microcontroller that soldered Starter board Hardware Simulation mode. controls resource that included Starter board, connect your resource board. Instructions Warning This product conforms with 89/336/EEC directive; also complies with EN55022 emissions standard ITE, well with generic 50082-1 immunity standards. product Class apparatus. residential environment this device cause radioelectrical disturbances which require that user adopt appropriate precautions. product contained outer casing, cannot therefore immune against electrostatic discharge (ESD): should therefore only handled static safe work stations. 5/49 Introduction following diagram summarises possible uses Starter board hardware setup required each one. program ST6s your in-circuit programming board: running Epromer Starter board In-circuit programming board Parallel port connected connector program ST6s using Starter board: running Epromer programmed Starter board Parallel port connected demonstrations: ST62T40B Programmed with DEMOKIT2.HEX Starter board Starter board hardware simulator: running WGDB6 Simulator ST62T40B Programmed with DEMOKIT2.HEX Parallel port connected 6/49 Introduction Where from here. following table directs where should look further information about using Starter Find about Starter board microcontrollers provided with kit. Install Starter software, connect power supply board. Find what demonstration applications them. Learn develop source code AST6 LST6. Prepare Starter board hardware simulator with WGDB6. Learn WGDB6 debugging your programs. Prepare Starter board programming microcontrollers using Epromer. Prepare Starter board connecting your in-circuit programming board. Learn Eprommer programming microcontrollers. Connect your hardware resource Starter board. Perform some introductory excercises using WGDB6. Learn interface works. Refer "The Starter Hardware" page this book. "Installing Starter Kit" page this book. "Running Demos" page this book. "ST6 Family Software development tools AST6, LST6, WGDB6" User Manual. "Using Starter Board Hardware Simulator" page this book. "ST6 Family Software development tools AST6, LST6, WGDB6" User Manual. "Programming Microcontrollers" page this book. "In-Circuit Programming" page this book. Epromer online help. "Connecting External Resources Starter Board" page this book. "Exercises" page "LCD Interface" page 7/49 Starter Hardware STARTER HARDWARE This section describes microcontrollers Starter board that come with Starter Kit. full schematic Starter board provided "Hardware Information" page Microcontroller Starter includes ST62E46BF1 microcontrollers. ST62T40B microcontroller pre-loaded with code DEMOKIT2.HEX, which includes demonstration programs (see "Running Demos" page 17), well communications protocol program, that enables Starter board simulator (see "Using Starter Board Hardware Simulator" page 22). Starter Board Starter board includes following resources: Reset button. 8-alphanumeric digit LCD. hexadecimal keyboard. indicator. resistance trimmer. oscillator. SDIP56 socket program ST62E46B ST62T46B. comes with power supply unit that plugged into mains source, source with following characteristics: Voltage: min./20V max. Current: min. 8/49 Starter Hardware includes following connectors: parallel port connector (P2) connection host when used hardware simulator programming. remote resource interface (J1). in-circuit programming board connector (P1). remote connector (J2) which connect your LCD. Below block diagram Starter board: 9/49 Starter Hardware ST624x Starter Board 10/49 Starter Hardware following diagram shows layout Starter board. ST6246B DISPLAY SOCKET ST62T40B In-circuit programming connector "Programming" "User" operating mode selection jumper JP1. oscillator. connector 32.768 oscillator. indicator LD1. display. Power supply JACK connector Power supply indicator LD2. Remote resource interface Remote interface connector ST62T40B protection with jumper combiport PC0-7 used. SDIP56 socket. Keyboard Voltage trimmer RESET button. 11/49 Starter Hardware Oscillators oscillator feeds ST62T40B OSCIN input with clock signal. oscillator delivered with board. required components: crystal capacitors connected ST62T40B described ST6240 Data Book. 8-alphanumeric Digit 8-alphanumeric digit connected ST62T40B driver outputs. segments that driven outputs. disconnect part removing jumper want combi-port PC0-7 connector interface full details about "LCD Interface" page Reset Button This activates ST62T40B RESET input when pressed. power-on reset circuit also provided. Indicator connected ST62T40B (which defined output) demonstrate LED-driving capacity. disconnected from removing jumper JP3. Hexadecimal Keyboard hexadecimal keyboard connected ST62T40B (defined Converter input), analog interface resistor array. voltage value converter input equal 5V/16 number, thus giving image pressed key. 12/49 Starter Hardware following table lists Resistor array values their corresponding voltage/key values: Resistor Array Values R10: R11: R12: 1.2K R13: 2.7K R14: 7.5K Theoretical Voltage Values KEY: 0.312V 0.625V 0.937V 1.250V 1.562V 1.875V 2.187V 2.500V 2.812V 3.125V 3.437V 3.750V 4.062V 4.375V 4.687V Jumper sets keyboard operation mode: polling IRQ, according following diagram. This position selects polling. This position selects IRQ. Jumper disconnects keyboard output from when removed, enabling connect your external source connector. example analog keyboard application, refer SGS-Thomson application note AN431: Using Analog Inputs Multiple decoding. 13/49 Starter Hardware Analog Keyboard diagram: Resistance trimmer resistance trimmer feeds ST62T40B (when programmed Converter input) with variable voltage DC). used conversion demonstration/evaluation. trimmer disconnected from removing jumper. ST62T40B TRIMMER JUMPE Combi-ports PC0-7 port ST6240B used segments. used normal port hardware simulation mode. port PC0-7 accessed prior remove jumpers (marked Starter board diagram page 11). Thus, won't affected inputs port PC0-7 won't damaged. 14/49 Installing Starter INSTALLING STARTER Hardware Software Requirements able install Starter Kit, need with: 1/2" Floppy Disk Drive free Centronics compatible parallel port connector MS-Windows3.11, CD-ROM Disk Drive Installing Software diskettes provided, must install software with them order have latest release: Place SK624XI1 diskette into your floppy disk drive. Windows Explorer File Manager, view contents diskette, then double-click Setup file icon. Follow instructions they appear screen. only ST62 CDROM provided, then: Place ST62 CDROM provided into your CDROM disk drive. Windows Explorer File Manager, view contents CDROM, browse st62oncd\ftools\sk624Xi1 double-click Setup file icon. Follow instructions they appear screen. Connecting Power Supply have mains supply, connect Jack plug power supply cable provided input socket, then connect mains plug mains source. have mains supply, connect male plug power supply cable provided input socket, then connect mains plug mains source with following characteristics: Voltage: min./20V max. Current: min. avoid short circuit, always connect power input cable starter board before connecting mains power supply. 15/49 Installing Starter your power supply plug, polarity must follows: JACK PLUG 16/49 Running Demos RUNNING DEMOS This section describes demonstration programs that provided with Starter explains them. What Demos following paragraphs describe demos that come pre-loaded with Starter demos. "Running Demonstration Programs" page below details select demo. source files these demos provided with Starter software file 4.1.1 Demo Display Initialises (which connected keyboard) analog input. Polls converter detect whether pressed. When pressed, shifts contents place left displays value pressed right side LCD. stop demonstration, press Reset button. quit demonstration routine bypass presentation message, press release Reset button while pressing Starter keyboard. 4.1.2 Demo Voltmeter Initialises pins follows: This pin: initialised Analog input. Connected trimmer RV1. direct drive output. Reads digital value voltage present from converter data register. Displays read voltage value panel. When read value reaches volts, switched indicating that voltage value reaching upper limit. adjust voltage value using voltage trimmer (marked Starter board diagram page 11). stop demonstration, press Reset button. quit demonstration routine bypass presentation message, press release Reset button while pressing Starter keyboard. flickers when around volts reached. This because power supply voltage noise instability resistor trimmer. 17/49 Running Demos Running Demonstration Programs ST62T40B microcontroller labelled DEMOKIT2 programmed with demonstration software. demonstrations: Power down Starter board. Make sure that ST62E46B plugged into SDIP56 socket. Select USER mode using jumpers marked (marked Starter board diagram page 11), shown diagram below: PROG Disconnect cable from parallel port (P2) connection, connected. Power Starter board. Press release Reset button Starter board. When message "Press 1\2" displayed LCD, press either Keyboard demonstration Voltmeter demo. stop current demonstration view other demonstration, repeat step above. avoid display presentation message, press Starter keyboard then, while keeping pressed, press release Reset button. 18/49 Connecting External Resources Starter Board CONNECTING EXTERNAL RESOURCES STARTER BOARD connect your external resources pre-programmed ST62T40B debug evaluate your programs, using connector (marked Starter board diagram page 11). also connect your ST62T40B driver using connector (marked Starter board diagram page 11). able either these connectors, must disconnect resources that already connected ST62T40B, avoid external resource/Starter board resource conflicts. following tables list Starter board resources corresponding connections, indicates jumper that disconnects each resource Table User's Interface Connector Signal supply RESET OSC32in TIMER OSCout WDON Unused Unused Number Number Signal supply OSC32out OSCin Unused Unused NOTE: supply available 200mA current. 32KHz oscillator mounted XT1, locations. 19/49 Connecting External Resources Starter Board connected Analog Keyboard Array output. disconnected removing jumper JP4. connected Analog Keyboard reference voltage input (for interrupt mode). disconnected removing jumper JP5. connected LD1. disconnected removing jumper JP3. connected trimmer RV1. disconnected removing jumper JP6. PA5, PA6, used perform data transfer programming mode (PROG configuration). case these signals connected external user's sources, those sources must disconnected High state) during programming operations. PA0, PA1, used perform data transfer with simulator software. They available external usage this operating mode. Thus, they present connector. Table User's Interface Connector Signal Unused Unused S39/PC6 Number Number Signal Unused Unused S40/PC7 S38/PC5 S36/PC3 S34/PC1 S37PC4 S35PC2 S33/PC0 20/49 Connecting External Resources Starter Board Signal Unused Unused COM2 COM1 Number Number Signal Unused COM4 COM3 VLCD VLCD2/3 VLCD1/3 NOTE: combi-port PC0-7 accessed normally connected pins but, however, these pins disconnected with jumper order combi-port. After Reset, these pins configured automatically segment. VLCD input connected supply voltage through jumper between pins connect another voltage source, first remove this jumper then feed with VLCD voltage. Starter LCD, VLCD1/3 VLCD2/3 generated ST62T40B internal resistor divider. needed, external divider connected these pins described ST6240 data book, especially VLCD 4.5V. 21/49 Using Starter Board Hardware Simulator USING STARTER BOARD HARDWARE SIMULATOWGDB6, debugger that runs under Windows, lets test your programs without having program EPROM your target ST6. Depending much information want, close real life want your test environment WGDB6 three ways: software simulator. WGDB6 simulator, need attach additional hardware your simulator program, that comes with WGDB6 when WGDB6/Simulator, simulates execution your program, letting step through code what happens program runs. WGDB6 simulator includes Wave Form Editor, which simulates output pins your target relation inputs that define, enabling peripherals react inupts they receive. With hardware emulator. Emulators hardware systems that your target microcontroller, same time capturing detailed information, such which areas memory accessed program what happens when they accessed. this case, WGDB6/Emulator provides interface between emulator your displaying data captured emulator letting implement WGDB6 features emulator, such software hardware breakpoints. With Starter board hardware simulator. This cross between above two. WGDB6 software simulator simulates execution your program, each time data space accessed, accesses that that plugged into your Starter board. Thus, using Starter board with WGDB6, view real microcontroller peripherals behave when your program executed. This section describes third option, Starter board hardware simulator. Starter board emulate ST624x microcontroller. When simulating programs designed other microcontrollers, make sure that resources that available microcontroller your application designed for. 22/49 Using Starter Board Hardware Simulator Data Transmission Driver Data transferred between simulated peripheral registers ST62T40B registers host PC's parallel port. DEMOKIT2.HEX program, which ST62T40B microcontroller that soldered Starter board includes transmission driver. data transfer driver uses following pins: parallel port SDOP ST62T40B RESET SIMULATOR USAGE Synchronisation Write data Hardware reset peripherals Initiates data transfer Read data from Note: connect external resources corresponding connector pins when using Starter board peripheral emulator. Technical Limitations Starter board following limitations when used with WGDB6 hardware simulator: Real-time program execution supported. program execution speed depends your Resetting ST62T40B power pressing Reset button external reset does reset simulated core. perform complete simulated reset, WGDB6 reset command instead. Interrupts sent ST62T40B microcontroller supported WGDB6 simulator. pins: NMI, PA0, ST62T40B microcontroller used communications with host thus available simulation. 23/49 Using Starter Board Hardware Simulator Starter board hardware simulator: Power down Starter board. Make sure that ST62E46BF1 plugged into SDIP56 socket. Select USER mode using jumper (marked Starter board diagram page 11), shown diagram below: PROG Connect Parallel port Starter board spare parallel port your using cable provided with Starter Kit. Power Starter board. WGDB6: using Windows click Start button, point Programs, then Tools, then click WGDB6/Simulator. using Windows 3.x, double-click appropriate WGDB6/Simulator icon Tools program group. Refer "WGDB6 User Guide" "ST6 Family Software Development Tools AST6, LST6, WGDB6" User Manual full instructions WGDB6. 24/49 Using Starter Board Hardware Simulator Error Messages following table lists error messages encounter when using WGDB6 with Starter board: Error message Error Port protected when using board. Description This means that WGDB6 tried access PORT registers. These used communications with board. This means that problem occurred during communications between host board. Perform checks listed below. Error Communication error with ST624x board. Troubleshooting there communication problem between WGDB6 Starter board, title "WGDB6 Simulator" appears WGDB6 title bar. this case, shoud check following: That Starter board correctly powered That parallel port cable correctly connected. That device jumper USER position. That ST62E46B plugged into Starter board. 25/49 Exercises EXERCISES This section describes exercises, which your Starter board hardware simulator with WGDB6: first excercise, you're going learn WGDB6 reset your Starter board then display letter second excercise, you're going WGDB6 step through instructions that display messages keyboard. Exercise Connect your Starter board Hardware Simulator following instructions given "Using Starter Board Hardware Simulator" page Press Reset button Starter Kit. WGDB6 Simulator: using Windows click Start button, point Programs, then Tools, then click WGDB6/Simulator. using Windows 3.x, double-click appropriate WGDB6/Simulator icon Tools program group. message `REMOTE' displayed Starter board. WGDB6 main window opens: Load file Stktrain.hex: WGDB6, File menu, click Open. Browse directory c:\st6tools\sk624Xi1 Select file stktrain.hex, then click Disassembler window opens, displaying source code stktrain.hex. 26/49 Exercises Reset simulated program: Commands menu, click Reset. disassembler window opens, displaying line 0xffe, which reset vector. panel Starter board clear, indicating that WGDB6 simulator performed physical reset ST62T40B plugged into starter board. When reset performed, segment outputs were setting bits LMCR register LMCR register sets control mode. full details about LMCR, ST6240 Data Book. 27/49 Exercises going locate register LMCR, change value: WGDB6 main window, Windows menu, click Browser. Browser dialog opens: From Type drop down list, choose data, shown above (LMCR data address). Filter field, type LMCR, shown above. Click Apply. LMCR displayed Symbols matching box, shown above. Select LMCR Symbols matching box, then click Inspect. Inspect window opens, displaying value LMCR (which 28/49 Exercises going change value LMCR Inspect window, select value `0', then Edit menu, click Modify, overtype value with click Set. contents inspect window `$', indicating that LMCR value value corresponds following configuration: bits DS1-0 hold values defining duty. bits HF2-0 hold values setting %256 main osc. bits LF2-1 hold values setting frequency Look Starter board, displays message `REMOTE'. already used program, message `REMOTE'. depends what memory) going manually build character that will displayed LCD: Inspect window, Edit menu, click Dump. dump window opens, click `Data' display contents data space starting address 0d0. Address field Dump window, type address 0e0, then press Enter your keyboard. This moves cursor beginning area. Observe values from 0F7: these correspond letters `REMOTE' that displayed LCD. Overtype these values with value `00', repeatedly pressing your keyboard: will note that panel segments turned off. 29/49 Exercises build letter Dump window overtype values with following values: this address: Which corresponds this value: COM1 COM2 COM3 COM4 Type this value: Look LCD: character displayed digit writing some your characters, using information provided "LCD Interface" page Exercise With stktrain.hex still loaded WGDB6, WGDB6 main window, Commands menu, click Reset reset program. Disassembler window opens, with line init highlighted: this line pointed reset vector. WGDB6 main window, click Cont button. program counter jumps init address, which beginning program. Look Starter LCD: first cleared, then word `DISPLAY', followed `KEY' displayed Press some keys starter keyboard, note result: keys press displayed right side LCD. Bear mind that program being simulated, thus running real time mode, have keep keys pressed several seconds until they displayed LCD. WGDB6 main window, click Stop button. Disassembler window, type m_disp right field, next Page field, press Enter your keyboard. disassembled code around address m_disp displayed, with m_disp address highlighted. Click Break button Disassembler window breakpoint 30/49 Exercises m_disp address: program execution will stop when reaches this address. Disassembler window, Commands menu, click Reset. Type init right field, next Page field, press Enter your keyboard. program counter jumps beginning program. Commands menu, click Continue. This continues running program, until breakpoint placed line m_disp reached. Wait program execution stop. Click Next button execute next line program, look displays segment, that been turned instruction: Keep pressing Next button execute each instruction turn, watching effects each LCD. will notice that each time press Next button, more segments turned until word `DISPLAY' appears LCD. that familiar with WGDB6, stepping through program yourself, observing effects each command LCD, modifying data effect LCD. 31/49 Programming Microcontrollers PROGRAMMING MICROCONTROLLERS Starter board, conjunction with program Epromer, program ST62E46B ST62T46B microcontrollers. also perform in-circuit programming ST62E4X ST62T4X OTP/EPROM microcontrollers using your board, connected Starter board connector (marked Starter board diagram page 11). NOTE: PA5, PA6, RESET pins used perform programming operations. these pins connected external resource must either disconnect them (see "Connecting External Resources Starter Board" page them high impedance state during programming operations. This section describes Starter board programming microcontrollers, lists connection requirements in-circuit application boards. Setting Starter Board Power down Starter board. Plug ST62E46B/T46B microcontroller want program into socket Starter board. Select PROG mode using jumper JP1(marked Starter board diagram page 11), shown diagram below: PROG 32/49 Programming Microcontrollers Connect Parallel port Starter board spare parallel port your using cable provided with starter kit. Power Starter board. Epromer program microcontroller that plugged into Starter board. NOTE: Epromer does work under Windows Epromer from Windows 3.x, double-click Epromer icon Tools group. Epromer from Windows click Start, Programs, Tools, then Epromer. instructions operate Epromer, click Help Epromer main window. In-Circuit Programming perform in-circuit programming ST62E4x ST62T4x EPROM/OTP microcontrollers using your board, connected Starter board connector (marked Starter board diagram page 11). 8.2.1 Application Board Connections following paragraphs specify connection requirements between your application board Starter board. application board must have suitable 16-way connector (8x2 header HE10) connected 16-way cable connector (marked Starter board diagram page Starter board. following table shows required connections: Table Signal interconnection different families Connector 14+16 2+4+8 Power Power ST621X/2X OSCin RESET OSCout VPP/VDD ST624X OSCin RESET OSCout VPP/VDD ST626X/9X OSCin RESET OSCout VPP/VDD 33/49 Programming Microcontrollers connection optional, depending whether application board supply cannot disconnected. application board supply disconnected, supply through pins connector, long total load current does exceed capacitive load less than application board power supply, voltage must that logic levels compatible with those Starter board. OSCin Synchronises programming operations using clock generated programming tool. OSCin located application board, must directly connected 16way connector. isolation needed long quartz crystal ceramic resonator used application. external clock generator used application, must disconnected during in-circuit programming. RESET Controls programming mode entry. prevent signal level contention, RESET must directly connected 16-way connector, must isolated from other nodes application board. direct connection output must avoided. This connected CMOS input, pull-up, KOhm pull-down left open (Internal pull-up). capacitive load RESET should exceed Pins 16-way connector used establish communications between programming tool microcontroller. prevent signal-level contention, Pins must directly connected 16-way connector, must isolated from other nodes application board. direct connection output must avoided. These pins connected CMOS input, pull-up, KOhm pull-down left open (Internal pull-up). 16-pin connector connected target device, same applies. Connection necessary high voltage level guaranteed board design. Some pins connected 16-way connector must high level during programming. This normally achieved RESET signal sent programming tool through 16-way cable, setting pins inputs with internal pull-up. keep these lines high, direct connection these pins other signal level (even temporarily) must avoided. Only connections another CMOS input, external pull-up pull-down allowed. Vpp/pin must directly connected GND/VSS application board, avoid conflict with programming voltage provided programming tool 34/49 Programming Microcontrollers connector. This should pulled down resistor with minimum value must ceramic capacitor between Vpp/Test VSS. Setting Starter Board In-Circuit Programming Power down Starter board. Select PROG mode using jumpers (marked Starter board diagram page 11), shown diagram below: PROG Connect Parallel port Starter board spare parallel port your using cable provided with starter kit. Connect your application board connector (marked Starter board diagram page Starter board. Power your Starter board. Epromer program microcontroller that your board. NOTE: Epromer does work under Windows Epromer from Windows 3.x, double-click Epromer icon Tools group. Epromer from Windows click Start, Programs, Tools, then Epromer. instructions operate Epromer, click Help Epromer main window. your application board powered Starter Kit, must connect power supply before start programming. 35/49 Interface INTERFACE ST6240 DRIVER OVERVIEW This quick summary features ST6240 driver. Refer ST6240 data book more detailed information. ST6240 driver comprises control logic, programmable prescaler, 24-byte wide dedicated RAM, segments common outputs. This drives segments. control logic operates automatically without interrupting processor. driver configuration defined following ST6240 registers: LMCR (LCD Mode Control Register), which defines backplanes (duty cycle) frame frequencies used LCD. bytes), which sets each segment setting resetting corresponding bit. According contents RAM, drivers generate segments common signals which directly drive panel. Hardware configuration requirements reduced minimum: VLCD input must with VLCD voltage (independently VMVDD), according your panel specifications. VLCD1/3, VLCD2/3 pins connected intermediate VLCD voltages, enable external capacitive buffering resistive shunting. internal resistor network implemented that most cases, thus additional components necessary. interface with panel, have Determine operating LMCR register value according panel specifications. Generate correct VLCD voltage and, needed, connect external resistor network VLCD1/3 VLCD2/3 pins. Determine most suitable mapping between panel segments bits. Once you've completed above steps, controlling panel becomes easy modifying software bits. 36/49 Interface STARTER PANEL INTERFACE following paragraphs describe starter panel interfaces with ST62T40B microcontroller. panel used ST62T40B Starter board alphanumeric digits. Each digit based 16-segment matrix operating multiplexed mode (1/4 duty) that only segment pins required digit. Thus following pins required digits: segment (SEG) pins common (COM) pins VLCD operating mode Digits annotated from respectively from right left shown following diagram: ALPHANUMERIC DIGITS digit digit digit digit digit digit digit digit VR0A1879 37/49 Interface Each digit made segments (A,B,C,D shown following diagram: VR001879 Each segment OFF, depending state dedicated Segment Common lines, according boolean equation: segment Seg_line Com_line active Each DIGIT requires lines lines completely defined. following diagram shows graphic segments that switched according each active COM: COM1 COM2 COM3 COM4 VR0B1879 38/49 Interface following table shows mapping between graphic elements segment/common pins. Table Digit Matrix Segment/COM Pins Mapping SEGMENTS SEGMENTS SEGMENTS example, graphic element digit driven line (pin line (pin 19). digit drives segments I,J,K,N when lines C1,C2,C3,C4 respectively active. 39/49 Interface Interfacing Panel with ST6240 Driver When assigning panel segments bits, mapping used will depend using. recommended that define character mapping after defining your software architecture. Make sure, however that this mapping kept simple possible. example, description each character should same digits LCD. panel requires segment lines multiplexed through common lines. This less than capabilities ST6240. Segments outputs COM1,2,3,4 ST6240 driver connected panel inputs described following diagram. PANEL ST6240 OUTPUTS COM4 COM3 COM4 COM3 digit digit digit digit digit digit digit digit COM1 COM2 COM1 COM2 VR001880 ST6240 OUTPUTS 40/49 Interface following table lists location each digit definition RAM. Note that memory entirely used. Table Digit Locations Address COM1 COM2 COM3 COM4 Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Digit Each digit represented bits (MSB digits, even digits) each memory area. Each bits COMs assigned bits defined above shown following table. Table Bits Mapping COM1 COM2 COM3 COM4 41/49 Interface Character Definition Examples following examples show definition characters using previously described method. 9.4.1 Character Definition following diagram represents character displayed panel. VR0C1879 following table gives corresponding pattern display character panel. bits left blank, bits shaded. right column provides corresponding hexadecimal value. COM1 COM2 COM3 COM4 value This description valid characters. position displayed character depends only addresses position (LS/MS nibble). 42/49 Interface 9.4.2 Character Definition following diagram shows character displayed LCD. VR0D1879 following table gives corresponding pattern display character panel. COM1 COM2 COM3 COM4 value bits (representing character set) stored ST624x DATA easily used display software through indexed accesses. 43/49 Interface Starter Panel Character Software Model described previous paragraphs, connection character mapping drive software model LCD-displayable objects. These objects available DISPLAY routines drive panel display during program execution. following paragraphs describe three methods displaying characters LCD. 9.5.1 Direct Code Patching This most simple display digits LCD. mapped character values directly patched into corresponding locations. values contained immediate values write instructions. This method should only used very simple applications (few characters, displayed times) rapid evaluation. following block code shows direct code patching display character digit where value (digit disp_A_0 9.5.2 Indexed Data mapped values character sets defined into ST6240 Data area (refer ST6240 databook). AST6/LST6 .byte directive labels define access Data area. generic display call subroutine accesses character definition through parameter passed calling program. disp_0 subroutine (see below) displays character digit clears digit (MSB same locations). efficient generic display subroutine should manage digit number input parameter) perform read/modify/write only concerned nibble byte (MSB LSB). This done display subroutine delivered with ST6240 Starter library (please read README file provided SK6240LIB directory). character defined words bits. optimize character size Data ROM, useful compact these bits into bytes, however this method increases display routine complexity. ;value digit COM1 addr (E1, LSB) ;value digit COM2 addr (E7, LSB) ;value digit COM3 addr (ED, LSB) ;value digit COM4 addr (F3, LSB) 44/49 Interface ST6240 Starter demo routines, character defined follows (for example character CHAR_A. .byte .byte .byte .byte character displayed using following routine: disp_A_0 RWSR, CHAR_A.w;set Data Window register CHAR_A.d call disp_0 disp_0 point CHAR_A ;subroutine that displays digit output value digit COM1 ;(E1, LSB) second byte CHAR_A ;output value digit COM2 ;(E7, LSB) third byte CHAR_A ;output value digit COM3 ;(ED, LSB) fourth byte CHAR_A ;output value digit COM4 ;(F3, LSB) Four bytes used define character, with equal definition values. this way, easily distinguished using instruction masking non-relevant nibble. 9.5.3 Complete Message Display simplify definition complete messages using AST6 .ASCIZ directive. This directive returns ASCII code pattern characters indicated ended NULL). enable .ASCIZ directive, ST6240 character pre-defined Data that becomes simple access mapped character definition through character's ASCII code. Data window contains bytes. character definition requires bytes, characters defined whole window. This corresponds page ASCII codes (represented ASCII code). 45/49 Interface example characters through whose ASCII codes 40,41,42 through (Hex) respectively, represent ASCII code page fill Data window shown below: .ORG x00;beginning window CHAR_@.byte 22;address window .byte .byte .byte CHAR_A.byte 22;address window .byte .byte .byte through CHAR_O.byte 22;address window .byte .byte .byte 44;last address (3F) window example, ASCII code character (hex): specifies Data window number indexes number character Data window available character that delivered with ST6240 Starter library defined using this method. This allows asci_dis subroutine display character defined ASCII code Mdis_mes subroutine display complete message, built using ASCIZ AST6 directive, panel. Refer files SK6240LI.INI SK6240LI.ASM SK624XLI directory description these subroutines. 46/49 Hardware Information HARDWARE INFORMATION 10.1 Part List Part LD1, C10, C16,C17,C18,C20,C23,C25 C11, C12, C13, C19, 74LS244 8MHz oscillator ST62T40B ST62E46B socket 74LS04 panel 78L05 Voltage Regulator 7805 Voltage Regulator Keyboard 32.768 crystal resistor trimmer 1N4148 diode 10-20 Schottky 1N4004 diode 8.2V Zener diode BC547B transistor BC557B transistor BD236 transistor Self 2x2µH 100nF (Cd) 100nF 100pF 100pF 15pF 1.0nF 22µF 10µF Push-button jumpers Device Part R11, R10, R24, RS1, RS3, connected 4.7K 7.5K 2.7K 1.2K 3.3K SIL8 Array SIL9 Array SIL8 Array resistor trimmer Header SUBD25-M Connector 2x15 pins connector 2x30 pins connector Female Jack plug power supply conn. Device 10.2 Starter Board Schematic next page 47/49 HE10-16DM USER TERFACE MW2X1C 10MF-CT-16V BC557B-PNP-45V 100NF 78L05 100NF 100NF 10K-RV PA6/TRO PA5/TM2 OSCP PA7/SDOP RESETP/ MW1X1C MW1X1C NNECTO 1N4148 4.7K 100NF 4.7K 8.2V 74LS04 NVPP Level RESETP/ FOUT 8MHZ-OSC OSC32I EMC_F 100PF OSCIN46B LED-RED-5MM 10K-SIL9-8R-B 15PF 74LS04 100PF 100PF 100PF 1MF-ER-63V 4.7K PC7/S40 PC6/S39 PC5/S38 PC4/S37 PC3/S36 PC2/S35 PC1/S34 PC0/S33 1N4004 JACK 22MF-EA-25V 1.0NF SELF 1N4148 78L05 100NF 10-20 SCHO 100PF ENVPP BC547B-NPN-45V BC547B-NPN-45V 150-SIL8-4R-B 100PF COM4 COM3 COM2 COM1 VLCD1/3 VLCD2/3 VLCD PA7/Ain PA6/Ain PA5/Ain PA4/Ain VPP/PA3/Ain PA2/Ain PA1/Ain PA0/Ain PA6/TRO 74LS04 ST62T40B OSCOUT OSCIN WDON TIMER PB7/Sout PB6/Sin PB5/Scl PB3/Ain PB2/Ain PB1/Ain PB0/Ain OSC32out OSC32in RESETP PPINT 150-SIL8-4R-B RESET/ OSCOUT OSCIN WDON TIMER 32.768KHZ-XT-P 15PF OSC32O OSC32I OSC32O SDOP REM/ SUBD25C-F-COUDE MW2X1C 100PF MW2X1C enabl AKEY ENVPP Level 46B) 40B) sabl VPP) sabl RESE 3.3K-SIL8-4R-B 74LS244 TROMIN OSCPI PA7/SDOP PPINT OSCPI TROMIN PA6/TRO PA5/TM2 OSCP SDOP SDOP 3.3K-SIL8-4R-B RFAC D5.C D5.A D4.C D4.A D3.C D3.A D2.C D2.A D1.C D1.A COM4 COM3 VIM878 COM4 COM3 D5.D D5.B D4.D D4.B D3.D D3.B D2.D D2.B D1.D D1.B COM1 COM2 COM1 COM2 PA7/SDOP PA6/TRO PA5/2 RESET/ OSCIN46B BD236-PNP-60V LM7805 100NF PC2/S35 PC3/S36 PC4/S37 PC5/S38 PC6/S39 PC7/S40 PC1/S34 PC0/S33 OSC32O OSCIN PA5/TM2 PA7/SDOP RESET/ OSC32I TIMER OSCOUT WDON MW2X15C used 74LS04 COM4 COM3 COM2 COM1 VLCD1/3 VLCD2/3 VLCD PA7/SDOP PA6/TRO PA5/2 VPP6240 MW1X3C D8.D D8.B D7.D D7.B D6.D D6.B D7.C D7.A D6.C D6.A D8.C D8.A 100NF 100NF 100NF 100NF 1.2K 2.7K 7.5K KEYBOARD PC3/S36 PC4/S37 PC5/S38 PC6/S39 PC7/S40 COM4 COM3 COM2 COM1 VLCD1/3 VLCD2/3 VLCD Ain/PA7 Ain/PA6 Ain/PA5 Ain/PA4 TEST/Vpp RESET OSCout OSCin PB7/Sout PB6/Sin ST6246B PC2/S35 PC1/S34 PC0/S33 OSC32in OSC32out PB0/Ain PB1/Ain PB2/Ain PB3/Ain PB5/Scl 48/49 1.2K LED-RED-5MM 1.0NF 1N4148 Hardware Information ED102 ENVDD 74LS04 100PF 74LS04 OSCPI TROMIN 100PF PROG/ REM/ SIM/ PC6/S39 PC4/S37 PC2/S35 PC0/S33 MW1X3C PC7/S40 PC5/S38 PC3/S36 PC1/S34 PC7/S40 PC6/S39 PC5/S38 PC4/S37 PC3/S36 PC2/S35 PC1/S34 PC0/S33 COM2 COM1 VLCD1 COM4 COM3 VLCD VLCD2/3 MW2X8C MW2X30C Hardware Information Notes: Information furnished believed accurate reliable. However, SGS-THOMSON Microelectronics assumes responsibility consequences such information infringement patents other rights third parties which result from use. license granted implication otherwise under patent patent rights SGS-THOMSON Microelectronics. Specifications mentioned this publication subject change without notice. This publication supersedes replaces information previously supplied. SGS-THOMSON Microelectronics products authorized critical components life support devices systems without express written approval SGS-THOMSON Microelectronics. ©1998 SGS-THOMSON Microelectronics rights reserved. Purchase Components SGS-THOMSON Microelectronics conveys license under Philips Patent. Rights these components system granted provided that system conforms Standard Specification defined Philips. SGS-THOMSON Microelectronics Group Companies Australia Brazil Canada China France Germany Italy Japan Korea Malaysia Malta Morocco Netherlands Singapore Spain Sweden Switzerland Taiwan Thailand United Kingdom U.S.A. 49/49 Other recent searchesTIA-968 - TIA-968 TIA-968 Datasheet TDA1554Q - TDA1554Q TDA1554Q Datasheet TC7W126FU - TC7W126FU TC7W126FU Datasheet NCV2901 - NCV2901 NCV2901 Datasheet M29F200BT - M29F200BT M29F200BT Datasheet M29F200BB - M29F200BB M29F200BB Datasheet M29F200BT - M29F200BT M29F200BT Datasheet M29F200BB - M29F200BB M29F200BB Datasheet GS-F8MB-SIMM - GS-F8MB-SIMM GS-F8MB-SIMM Datasheet 1495060000 - 1495060000 1495060000 Datasheet
Privacy Policy | Disclaimer |