Home
LPT-to-I2C SE User`s Manual
Contents
1. LPT to 12C SE that the register name changes are not saved until the Save or Save As item under the File menu is selected Edit Current Device Editing the current device may be accomplished by clicking on Edit Current Device from the Edit menu or by right clicking on the grid within the User Definable Device mode of LPT to I2C SE The screen shown above will be displayed when either method is invoked Device Name the name entered in this box will be shown in the title bar of LPT to I2C SE when the definition file is opened Device Address is the device PC address that will be displayed in the Address box when the definition file is opened Note that only even Edit Current Device JE addresses are valid here LPT to I2C SE will append the appropriate R W Device Name BAAT iu bit at the end of the address depending upon the operation to be Number of f i Device Address 48 32 Fill oo PEORES performed the last bit will be a 1 if ER CUN OU NN DESEE 4 1 1 itis a read operation and a 0 if itis a Register Description Value it Number of Registers Enter the 15 v Gatel Start D number of registers the device 16 r Gatel stop op contains The size of the data entry grid will be modified to Ef aatel M56 UU accommodate the number of 18 Reserved DO registers Fill This box should be modified only if you want to initialize all the 1A Text Slicer statu
2. 1r LPT to I2C SE Universal IC Control Sa File Device Options Window Help Message 1 FT e Is Bt Re s ERP EP DRE BERR Php mh PF EE EE EE EE EE EE EEE hh EE EE P e e T 8 e 8 Te Pr e P E EC F EE EE EE Message 5 S ao jw Fo pr pe ps or fis e for pe foo fio n fie fie Fe fis fe iv s fis fo EF Send Message 1 Sequencer Sequence Delay rs Hardware ready at LPT1 Enter two digit hex number or press INS DEL or er key Beene 100 KHz Each PC Message dataset contains an address R W bit and a maximum of 22 data bytes The data bytes are shown as two digit hexadecimal numbers Only valid hexadecimal numbers can be entered into each box Non hexadecimal keyboard entries will be ignored with the following exceptions INSERT key pressing this key adds an extra edit box to the Message The maximum number of data bytes is 16 so the INSERT key will be ignored if there are already 16 bytes present DELETE key pressing this key deletes the data byte where the cursor presently is shown The software requires that you keep at least one data byte in the Message It will also not let you delete the address byte or R W bit following a restart If you want to delete a restart make sure the cursor is in the Start box and then press the DELETE key Message 1 S Restart key a restart condition may be inserted into any E Do Iw mm a Do Ro mm P Message location by pressing the S key on your keyboard The software deletes the boxes af
3. BC Bus Documentation The complete PC Bus specification can be found at http www nxp com products interface control i2c index html LPT to I2C SE Software User s Manual Page 7 LPT to 12C SE When the LPT to I2C SE program starts a screen as shown below will be displayed on the monitor Device Menu The device menu contains a list of PC devices supported by the LPT to I2C SE software Selecting the device from this menu may start any of the listed devices You can have any combination of devices open at one time Switching between active devices may be accomplished via the Window menu on the main toolbar LPT to I2C SE Ele Device Options Window Help PC Frequency Indicator Message Panel Parallel Port Indicator Help Hints Hardware detected at LPT1 Message Panel The main screen has a panel that displays messages from the program It will indicate if the PC transmission was successful or if there was a problem encountered A list of messages is shown below Messages Transmission successful the last PC transmission was successfully completed Address not acknowledged an PC address was successfully transmitted but no slave device acknowledged the address A STOP condition is sent after the acknowledge clock pulse if no acknowledge is received Data not acknowledged an PC address was previously acknowledged but one of the following data bytes was not acknowledged A STOP condition is sent after the ac
4. Device The User Definable Device allows you to define your own PC device and then enables the user to change the values of the individual cells within the grid using various controls such as sliders and spin controls 3r LPT to I2C SE ELETERE EEY 3 File Edit Device Options Window Help Address hex Horizontal syne stop faa D CO 33 a re i 0 joo Write Byte 1 ic oo oo EB mn pl Auto write Off Horizontal sync start pcm mead all Sm Auto Write off Analog input Control 1 Byte Made x 3 Create Control offi ft fo fof fr al Auto write Off d nalog input Control 2 ms Auto Write OFF Luminance control Horizontal sync stop Luminance brightness Spin Control Bik Control mm Auto Write off mm Auto Write off TEE ikh Un p When the User Definable Device is first opened a 256 byte device grid is shown on the screen but does not have any names associated with the data and all the data bytes are set to OXFF A previously defined device may be loaded by selecting it from the Most Recently Used files at the bottom of the File menu If devices have not yet been defined there will be no devices shown below the File Exit menu item To begin the definition process you may right click with your mouse on any data cell in the grid or select Current Device or Current Cell from the Edit menu The Reset item in the Edit menu will clear all the register names to Undefined Reg
5. The data grid consists of rows and columns Each cell within the grid contains a two digit hexadecimal number Each cell corresponds to a physical byte location within the memory device For example in the diagram below cell 0x21 is highlighted row 2 column 1 LPT to I2C SE Software User s Manual Page 12 LPT to 12C SE This translates to address 33 decimal in the device The program calculates the physical address for you and displays it at the left side of the screen in the box labeled Word Address or Subaddress SEET EISE Byte Address Subaddress am The byte address sometimes called subaddress or word File SECH options Window He address is a pointer to a register or memory location within the BS Device Se tup E o 1 2 PC device To access this location the software will send out Device epu aes o a log om gz the device PC address followed by this byte address followed NW SECH l by the read or write data The program displays the byte Address AD a IU 11 12 address of the active cell of the memory grid in both mm 3 z0i21 z2 hexadecimal and decimal notation Page Size a TENE a 30 31 32 Write Time 50 4 40 41 42 Read Byte Button Byte Address 0x071 5 En 51 5 gt Pressing the Read Byte button initiates a read from the PC Fam device The program begins the transmission by writing the B IS BE Re device address followed by the current byte address A
6. as Save As and Load In User Device mode previously created device files may be conveniently loaded Save Data Many devices contain the menu item Save Data under the File menu The data may be recalled by selecting the Load Data item under the File Menu Load Data After data has been stored using the Save Data item in the File menu it can be recalled by selecting the Load Data item Options Menu The options menu allows you to change the PC frequency and to choose the parallel port you will use to communicate with the PC hardware PC Frequency Menu Item The Options Menu contains an item labeled PC Frequency By choosing this menu item you will activate a dialog box which shows the current PC frequency and the maximum PC clock speed available on the current parallel port The speed type of processor as well as the chipset used in your computer and the mode Slow or Normal determines the maximum frequency Pressing the OK button will close the dialog box and will update the PC frequency panel on the main screen The frequency information will be stored in the Registry and will be recalled when the program starts again at a later time You can expect bit rates up to 80 KHz with a Pentium class computer however many factors influence the maximum bit rate and your results may vary significantly Many PC devices are not designed to operate at frequencies above 100 kHz and may cause communication errors if operated beyon
7. by entering hexadecimal numbers from your keyboard Non valid keys will be ignored In order to edit the entire grid including the name and default values of the registers you may right click on the grid or select the appropriate item from the Edit menu The individual cells within the grid will be blue if the cell s subaddress is greater than the maximum number of registers defined for the active device The number of device registers may be changed at any time in the Edit Current Device screen Edit Menu The Edit menu is available only when the User Definable Device screen is active The user can select from one of the three menu items 1 Current Device brings up a screen showing the all the register data for the active device 2 Current register allows registers to be changed one at a time 3 Reset grid all register data will be set to OXFF and the register descriptions will be Undefined Register Edit Register Edit Current Register If you want to adjust one register in the grid use the Edit Register 0x07 Current Register screen This screen can be started by Initial value hexi E right clicking on the User Definable Device grid or by selecting Current Register from the Edit menu The name Description Horizontal sync stop of the register and the initial value displayed when the definition file is first opened can be changed here Note X Cancel LPT to I2C SE Software User s Manual Page 19
8. have a non standard parallel port installed in your PC you can manually add it to the list of Add port Delete Port available parallel ports Enter the hex address of the parallel port then press the Add Port button If you previously added a port the information is A non standard port is generally a PCI based saved here Select the port address then press add in card If you have an add in card obtain the Add Port button to use this port If a portis its address from Device Manager within the no longer available or if the address was entered Control Panel See the Software User Manual for incorrectly highlight the desired address and more details press the Delete Port button Enter the address into the box then press the Add port button The port will now be available in the Options menu and it will behave like a standard LPT port The address will be saved so you will not LPT to I2C SE Software User s Manual Page 10 LPT to 12C SE have to remember the port address Just select the address from the Add previously used port and press Add port Ignore Acknowledge Menu Item Normally the software checks the acknowledge bit after every byte written to ensure that the slave receiver has pulled the SDA line low When the Ignore Acknowledge item is checked in the Options menu the software ignores the acknowledge bit state during writes so it is important to note that the user will not h
9. CSS PI E 23 Si e NO 24 SE NCE RE 24 KL e Eu 24 EECHER 24 VUEN eh o NRI IPIE EEE EE E ETE E 24 a MOOG X 24 Miles Ee le ERR cere T ae eet E 25 BE i EE 25 Dav NSS EE 25 Read Write Selection EE 25 viro KEE 25 Miss d E 25 DREES EENG 25 Fe eet TEE 25 DS elle 25 Mifz tr HN Ei le EE 26 Delay alter MESIACE E 26 Read A INI e CLEC e RENT 26 ojo MP U Y X 26 Numberol EE 26 VE E 26 LPT to I2C SE Software User s Manual LPT to 12C SE INISETEINE ln E 26 Sne 26 LPT to l2C SE Software User s Manual Page 5 LPT to 12C SE General Characteristics The PC protocol allows data to be transferred between devices using two open drain or open collector bi directional lines One line is the serial clock SCL and the other is the serial data SDA The bus master generates the Start conditions the clock signals on SCL as well as the Stop condition An acknowledge is transmitted on the bus after each byte is sent over the bus Bit Transfer Data on SDA must be stable while SCL is high The state of SDA when SCL is high determines the logic level of the transmitted data bit Start and STOP Conditions Within the procedure of the PC bus unique situations arise which are defined as START and STOP conditions A HIGH to LOW transition on the SDA line while SCL is HIGH is one such unique ca
10. F 0 71 72 Repeated Start is then generated followed by the device s read lg o ai g2 address and finally a read of a single data byte The result of each byte read is immediately entered in the appropriate cell in the grid Alternatively you may press the Alt and b keys A 53 42 ZU simultaneously to achieve the same results 7 TT Read All Button te zech S Pressing the Read All button initiates a read from the PC D Lat zD zD device The program begins the transmission by writing the IE 4g 32 43 device address then the byte address 0x00 A Repeated Start is Fill ro FF Sms then generated followed by sequential reads of the entire Fil with rr F H D P device In addition to pressing the Read AII button you may press the Alt and r keys simultaneously to achieve the Fill same results Write Byte Button o 2D 2D 20 Copy rom Copy to Pressing the Write Byte button initiates a Write to the PC oo device The program begins the transmission by writing the an TF E FF slave address and then the word address of the currently active cell in the grid The selected data byte is then sent In addition to pressing the Write Byte button you may press the lt Alt gt and lt y gt keys simultaneously and achieve the same results Write All Button Pressing the Write AII button initiates a Write to the PC device The program begins the transmission by writing the byte address 0x00 to the device and s
11. LPT to I2C SE Software User s Manual LPT to I2C SE ZXALPTtoI2CXdata files PT ta I2C SE mem File Edit Options Window Help Device Se Clock Buffers 7 a 9 A B c D E F Ae 5 EEPROM 16 x 8 128 bit Al O Expanders 128 x8 1K 16 LED Blinkers Dimmers 256 x 8 2K Ti Multiplexers Switches 512 x 8 4K Non Volatile Registers 1Kx8 8K Real Time Clocks 2Kx8 16K Static RAM 4K x 8 32K Thermal Management SKx8 64K 16K x 8 128K J 20 53 d 32K x 8 256K 63 GAK x 8 512K 54 3 H if 3 W 53 45 UJ A 2D Fil from no 2D 2D 2D 2D 2D 2D 2D Tm E 9 32 43 2 61 64 65 20 53 69 6D 70 6C 65 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D Fill with FF Fill Buffer yO WD ENEE cen S SBN Copy from Copy to be pr e Copy Block 19 kHz LPT to 12C SE Information provided in this document is solely for use with LPT to I2C SE Professional SB Solutions Inc reserves the right to make changes or improvements to this document at any time without notice We assume no liability whatsoever in the sale or use of this product including infringement of any patent or copyright No part of this document may be reproduced or transmitted in any form or by any means electronic or mechanical for any purpose without the express written permission of SB Solutions Inc Microsoft and Windows are registered trademarks of Microsoft Corporation Other brand names are trademarks or registered trademar
12. PC clock frequency cannot be guaranteed Parallel Port Indicator The main screen has an area in the bottom right hand part of the screen that shows the active parallel port Selecting a different port from the Options menu can change the active parallel port This box is empty if no hardware has been found System Registry Information During the installation important data is added to the system registry for Windows NT 2000 XP installations in order for the port driver to function correctly If this data is not properly installed the driver will not start and you will not be able to send data to the parallel port If the data was not found it is very likely that there was a problem during the installation of the LPT to I2C SE software If the driver is not functioning correctly due to invalid incorrect registry information or missing device driver files you will not be allowed to access the Options menu LPT to I2C SE Software User s Manual Page 11 LPT to 12C SE Upon starting any EEPROM device you will see a screen similar to the one shown below LPT to I2C SE ZXLPTtoI2C data filesLPT to I2C SE mem Sy File Edit Device Options Window Help Device Setup o 1 2 3 4 5 6 7 B 9 A B Device Size 01 02 03 04 05 06 07 08 09 ii 13 14 15 17 19 21 22 23 24 25 26 27 28 29 31 32 33 34 35 36 37 4i 42 43 44 45 46 47 51 52 53 54 6 57 61 62 63 64 65 66 67 71 72 73 74 7 77 2 83 84 85 86 87 2D 74 B BIN Address Page Siz
13. Stop button will terminate a Repeat Sequence However LPT to I2C SE will complete the entire sequence before the PC transmission ends Sequence Editor The user changes the sequence editor to reflect the order in which the PC messages will be sent via the PC bus The sequence editor allows from 1 to 10 digits to be entered Only digits 1 2 3 4 and 5 are allowed in the box since there are only 5 messages For example if you entered 35123441 into the sequence editor box message 3 will be sent followed by message 5 followed by message 1 etc Delay A delay can be inserted between messages by increasing the value of the number in the Delay box The number is measured in milliseconds Send Button Pressing the Send Button will send the currently active message Clicking in any edit box in the desired message will change the active message The active message is shown above the send button Read Write Bit The Read Write bit determines whether the PC message will read or write to a device via the PC bus If this box is an R then the address byte will end with a logic 1 If this box is a W then the address byte will end with a logic 0 An R read will be changed to write by pressing the w key while a W will be changed to R by pressing the r key All key presses other than r and w will be ignored LPT to I2C SE Software User s Manual Page 17 LPT to 12C SE User Definable
14. ave any feedback whether or not a device is actually receiving the message Windows Menu The Windows Menu contains screen commands such as cascade tile arrange all icons and minimize all If there are devices active in the program you will find them listed in this menu When multiple device types are open it is easy to move between the device types by clicking on the desired item in this menu Help Menu Help Help may be activated at any time in the program by choosing Help from the Help Menu Pressing the FI key may also activate context sensitive help About Selecting the About menu item will activate the About Box This box gives information such as program revision level and date It also displays the email address for contacting i2ctools com for technical assistance with this product Help Hints The main screen contains a panel at the bottom that gives a short description of the item the cursor is currently above By moving the cursor around the screen with the mouse you will find that almost all buttons boxes and other controls have these hints Frequency Indicator The frequency at which the program is sending PC messages over the parallel port is shown in this box on the main screen You can change the frequency by activating the PC Frequency item in the Options menu Although the typical accuracy of the clock frequency measurement is better than 5 it is up to the user to verify the actual clock frequency The displayed
15. d 100 kHz Lower PC frequencies may be needed I C Frequency Max Clock 121 KHz for long cable runs or excessive bus capacitance situations We have tested the software using the LPT to I2C SE Wf OK hardware at the end of printer cables as long as 25 feet however your results may vary Although the accuracy of the PPC clock frequency measurement is typically better than 5 it is up to the user to verify the actual clock frequency The frequency shown assumes no clock stretching or long rise times The PC clock frequency cannot be guaranteed Calibration Menu Item When LPT to I2C SE is first started it will attempt to calibrate the parallel port Calibration is also performed when a new parallel port is selected or when changing between the Slow and Normal modes This calibration is generally accurate to within 5 however if the frequency is not as accurate as desired try selecting the Calibrate item in the Options menu again Parallel Port Selection Menu Item The Options menu contains a list of three potential parallel port selections LPT1 LPT2 and LPT3 The parallel port s address is listed beside the port name for example LPT1 0378h Only available ports will be listed as selectable Parallel ports which are not available will be disabled gray Therefore if you only have one parallel port in your computer you will not have the ability to switch to a different parallel port When the program starts it sca
16. d it will be up to the user to fix the error condition and re enable Auto Write It should be noted that the Slider Control always stays on top of all other devices within LPT to I2C SE Spin Control The Spin Control is activated when the user presses the Spinner button on the User Defined Device screen or by right clicking the grid and then selecting Increment Decrement Current Register with a Spin Control from the pop up menu The subaddress of the active cell in the Register grid will be assigned to the Spin Control Subaddress The subaddress is shown in the upper left corner Clicking on the spin control s up Register value ba l or down arrow will cause the value of decimal vce th that cell to be incremented or E Auto write OFf ud decremented If Auto Write On is checked then the contents of the cell will be transmitted to the device subaddress when it is changed If an error is encountered while transmitting using Auto Write LPT to I2C SE will turn off Auto Write and it will be up to the user to fix the error condition and re enable Auto Write It should be noted that the Spin Control always stays on top of all other devices within LPT to I2C SE Automatic ae Write Selection Horizontal sync stop Register Description Bit Control The Bit Control is activated when the user presses the Bit Control button on the User Defined Device screen or by right clicking the grid and then selecting Use Bit Control to Change Active Reg
17. e Write Time Byte Address 0x000 Read All Write Byte Write All Verify Fill from joo Fill to FF Fill with IFF BYBARSRYEBABKABHS BOM os HBHAZZUHSSHSEH5HHESB NMUBORBENBASLABRE NBSNPANERRLERRES HEBHUDS2ZEZSSUSSNHES HEHBHNEHBEHBSHEOSSHSE HOEBBSESRHREBERAMEHBHNRRT HEMBENHEHTSSAUSSUSSHSNSST Fill Buffer Copy from Copy to oo pr wk Copy Block Transmission successful Enter a single two digit Hex number into each cell IC Address A drop down menu is provided which allows the user to select a valid address for the selected device type Write Page Size Selection The Page Write Size defines the number of bytes that may be written in a single erase write programming cycle Smaller devices generally use an 8 or 16 byte pages while larger devices use up to 128 bytes per page Check the device datasheet to find the appropriate page write size for the device you are programming If you do not know the page size use a small page size such as 8 bytes A smaller page size will require a longer total programming time for a device Erase Write Cycle Time Programming software must allow a certain period of time to elapse after writing a block of data to an EEPROM This time is device dependent but is normally between 5ms and 40ms A STOP condition must be performed before the erase write cycle commences Most EEPROMs will not respond to their address until the erase write cycle has been completed Data Grid
18. eady at LPT1 MINE 125 KH LPT Send Al button Send Sequence button Send Continuously button Open New Page Pressing this button opens a new blank page There will be 32 empty rows messages Selecting New from the File menu while the Expert Mode is active will perform the same function Open Data File A previously saved data file can be recalled by pressing the Open Data File button or by selecting Open from the File menu while the Expert Mode is active A dialog box will be displayed allowing the user to navigate to the appropriate directory Save Data The current data will be saved when this button is pressed The user specifies the name and location of the file in a dialog box that is displayed after the button is pressed A dialog box will be displayed which allows the user to navigate to the appropriate directory The user can also perform the same function by selecting Save from the File menu while the Expert Mode screen is active Close Expert Mode The Expert Mode screen is closed but LPT to I2C SE will not be terminated Add a Row Inserts a new blank row after the current row Delete a Row Deletes the current row current message Clear the current row The current row message will be cleared The row will not be deleted but will appear blank LPT to I2C SE Software User s Manual Page 22 LPT to 12C SE Copy the Current Row The current row message will be copied Use the Paste command to
19. equentially writes the entire device For a RAM type device the data is sent in one long message In the case of an EEPROM the software will send one page of data usually 8 bytes but check the datasheet for the particular device you are addressing followed by a STOP condition Following the STOP condition the program waits a length of time determined by the Erase Write cycle time of the device again check the datasheet for the device you are programming before writing another page to the device In addition to pressing the Write AII button you may press the lt Alt gt and lt w gt keys simultaneously to achieve the same results After the completion of the write cycle LPT to I2C SE will read the entire device to verify that the contents of the device match the data that was sent An error message will be displayed if the data read from the device does not match the data in the on screen buffer Copy ES Write and verify Successful Verify Button Pressing the Verify button initiates a read of the entire EEPROM After reading the contents of the EEPROM LPT to I2C SE will compare the contents with the values in the grid An error will be flagged if the contents of the EEPROM do not match the contents of the LPT to I2C SE on screen grid LPT to I2C SE Software User s Manual Page 13 LPT to 12C SE Fill Buffer The grid will be filled with the two digit hexadecimal number found in the Fill with edit box when
20. he SDA SCL lines Therefore if you want to read 8 data bytes and you have two triggers in your message then you need to set the Number of Bytes to 10 Example The following is an example using the Expert Mode consisting of two writes and one read LPT to I2C SE Software User s Manual Page 26 LPT to 12C SE Start Address R W I Data Stop Delay IST lao Write 00 00 01 02 03 04 05 06 07 Yes o JST AD write 00 Mo n er an Read 00 01 02 03 04 05 06 PL 07 Yes o The first message shows a write to the LPT to I2C SE Hardware Adapter s on board eeprom This will write eight data bytes starting at subaddress 0x00 Ten bytes will be sent in total Address AO subaddress 00 eight data bytes 00 01 02 03 04 05 06 07 The second message is a write to the eeprom setting the subaddress to 0x00 There is no Stop at this end of this message Two bytes will be sent in total Address A0 subaddress 00 The third message begins with a Restart condition since there was no Stop at the end of Message 2 A read will consist of eight data bytes with a Trigger PL Pulse Low before the last byte is read If the Trigger output of the Hardware Adapter was connected to the External Trigger of an oscilloscope you would see the trace shown below The trace shows that the scope was triggered just before the last byte was read The trace clearly shows that the last data byte is 0x07 followed by a NACK then a Stop condition Ty
21. ice definition files are not in a format that can easily be used by the user therefore LPT to I2C SE allows you to save the information in a text format extension txt The user can then open and edit this file with any word processor such as Notepad or WordPad The text files are for the user s information only and cannot be read by LPT to I2C SE Byte Mode When the Write All and Read All buttons are pressed the software assumes that the subaddress is auto incremented after each data byte is written or read For example if you have a four byte device the writing sequence would be Start Address SubaddressO data0 datal data2 data3 Stop Many devices do not auto increment the subaddress between data bytes and require that only one data byte is sent for each transmission In these situations click on the Byte Mode check box The writing sequence would be Start Address SubaddressO data0 Stop The sequence would be repeated for each data byte Print Device Data A print out of the register definitions can be obtained by selecting this option from the File menu Data Grid The grid consists of rows and columns Each cell within the grid contains a two digit hexadecimal number Each cell corresponds to a physical byte location within the PC device For example in the diagram shown above cell 0x07 1s highlighted row 0 column 7 This translates to address 7 decimal in the device assuming the first byte is address 0x00 The data may be changed
22. in the address box in hexadecimal notation The least significant bit of the address is not important can be a 1 or Q since the Expert Mode will ensure that this is appropriate for the read write transaction when the message is actually transmitted LPT to I2C SE Software User s Manual Page 25 Device Address Read yyrite Selection Insert Trigger Into Message Message Data LPT to 12C SE Message Number The message being edited is shown at the top of the message editor screen 7 Message Editor Msg 3 Send Stop at end of message Delay after Address E Stop mj Read Write rem Number of Bytes amp KE Number of bytes message GE IN message A delay measured in GE ENE Delay in milliseconds can be m milliseconds inserted after a message Triggers after message o Read Write A Trigger High m Selection id Trigger Low The user can select a Read ii Pulse High or Write transaction from the drop down selection Pulse Low bos Write Message St op 5 JB Sending a Stop condition E PL after a message is optional Normally it is advisable to send the Stop condition If H a Stop condition is not sent the clock line will be held low until the next message is sent If a Stop is not sent the next message will begin with a Restart condition rather than a Start condition Number of Bytes Using the up and down arrows in this box allows the user to define the n
23. ion from the drop down selection box If a Read is chosen then the Number of Bytes to Read box will be shown and the data entry area will be hidden If a Write is chosen the Number of Bytes to Read will be hidden and the data entry area will be shown Stop Sending a Stop condition after a message is optional Normally it is advisable to send the Stop condition If a Stop condition is not sent the clock line will be held low until the next message is sent If a Stop is not sent the next message will begin with a Restart condition rather than a Start condition Message Data The Message Data area contains the location where the user can enter up to 64 data bytes in hexadecimal format Blank data bytes will be ignored Inserting Triggers Any number of triggers may be inserted into a message Triggers can be a transition from Low to High High to Low a high level pulse and a low level pulse The initial state of the trigger should be established by either manually setting the Trigger Output see Trigger Output section above or by inserting an initialization level within the message When setting the Number of Bytes in the message each trigger event will count as one byte but it will have no effect on the SDA SCL lines Read Mode The message editor for a Read transaction is shown below Note that if the current message is blank then the editor will default to the Write mode Device Address The I2C slave address is entered
24. ister from the pop up menu Register Subaddress The subaddress of the active register in the grid will be assigned pesce mof jt fo fo fr fi ELE SP to the Bit Control The subaddress write Pal Auto Write OFF is shown in the upper left corner Selection Clicking on any of the eight edit boxes will cause the value of that bit to be inverted If Auto Write On is checked then the contents of the cell will be transmitted to the Analog input Control 2 Register Description device subaddress when it is changed It should be noted that the Bit Control always stays on top of all other devices within LPT to I2C SE LPT to I2C SE Software User s Manual Page 21 LPT to 12C SE Expert Mode The figure below shows the Expert Mode screen Add a row Clear the current row Paste Data Delete a row Copy the current row Compress Data ar LPT to I2C SE Test ixt PII Open new 7 e eg blank page gt File Edit Device Options Window About _ HF ch m oF EE B JI Trigger Mutou High E3 K Input State unkown Dead Open data File M q St rt Address R W Data Stop Delay Notes Save data rt ST AD Write 00 00 01 02 03 04 05 06 07 Yes 50 Write data ta EEPROM close 2 ST D write OU Mo 0 write subaddress Expert A ST A Read 00 01 02 03 04 05 06 07 Yes Read EEPROM data Mode Send message Sequence Editor button Send Message Send All Send Sequence i Send Continuously Active Message 01 02 03 04 Indicator Hardware r
25. ister and set the data values to OxFF Clicking on the desired cell and doing one of the following can change the data value of the individual cells 1 Typing in a two digit hexadecimal number 2 Assigning a slider to the active cell by pressing the Slider button 3 Assigning a spin control to the active cell by pressing the Spinner button 4 Assigning a Bit wise control to the active cell by pressing the Bit wise button Items 2 3 and 4 can also be achieved by positioning the cursor over the desired cell and right clicking on the grid to select the appropriate control from the pop up menu LPT to I2C SE Software User s Manual Page 18 LPT to 12C SE Define New Device This is similar to the Edit Current Device explained below This menu selection allows the user to start a new device from scratch All register names are undefined and all default values are OxFF Open Device Definition File A previously saved device definition file def can be recalled by selecting this menu item The device definition file contains the Device Name Device Address Register Names and Register Values Save Device definition files can be saved to disk by selecting the Save menu item Save As Use the Save As dialog box to change the definition file name or to save the definition file in a new location If the file name already exists LPT to I2C SE asks if you want to replace the existing file Save Registers in text format The dev
26. it menu Goto Byte When the Go To Byte selection is made from the Edit menu a dialog box is displayed where a hex or decimal address may be entered Hexadecimal 3FFE When the OK button is pressed the grid location with the desired address is shown Decimal 16382 This is useful when you don t want to scroll through to find a specific Mote maximum address Ox 7FFF data location LPT to I2C SE Software User s Manual Page 14 LPT to 12C SE Copy Block It is possible to copy a block of data from one on screen buffer area to another using the Copy Block function Simply define the data to be copied using the Copy From edit boxes and then enter the address where the data is to be copied to The ending address is calculated automatically by the software and is not ing the Copy Block button starts the copying process se jo j 2 a a 5 le 7 8 o a B c p JE F 4F SF dp 7F a at DL 4D aD 6D 4E 3E BE iaee AD 17 18 19 14 1B 1C 1D 1E 1F Page Size g 2 2n 27 28 29 24 2B 2C 2D 2E 2F Karger n 37 38 38 34 3B 3C 3D 3E 3F Write Time 50 4B 3B BB 47 a Di ff 43 3g Bg fg 4A 5A 6A TA 45 38 D I fo Byte Address 0x000 Cop Page 15 LPT to I2C SE Software User s Manual LPT to 12C SE Universal Transmitter Receiver The figure below shows the screen of the Universal PC Transmitter Receiver
27. knowledge clock pulse if no acknowledge is received Read acknowledged corrupted the master tried to send a NACK no acknowledge for the last read byte in a transmission but it was corrupted by a low level on SDA by another device on the bus SDA stuck low before a START condition is initiated the software verifies that both the SDA and SCL lines are high If SDA is stuck low then an SDA stuck low message will be displayed SCL stuck low before a START condition is initiated the software verifies that both the SDA and SCL lines are high If SCL is stuck low then an SCL stuck low message will be displayed Hardware not detected when the LPT to I2C SE software is first started it verifies that the LPT to I2C SE hardware exists at LPT1 If it is not found at LPT1 it will check LPT2 and then LPT3 Detection is terminated when LPT to I2C SE hardware is found The user may manually select a different port from the one selected by the program but LPT to I2C SE will again verify that hardware is available at the selected parallel port The software will not attempt to proceed with any transmissions until the hardware has been detected File Menu Upon starting the LPT to I2C SE software the File menu contains the Exit and Close commands When a device has been selected from the Device Menu it is possible that the File Menu will also display device LPT to I2C SE Software User s Manual Page 8 LPT to 12C SE specific commands such
28. ks of their respective owners Questions or comments regarding this document should be emailed to support i2ctools com 2008 SB Solutions Inc All rights reserved LPT to I2C SE Software User s Manual Page 2 LPT to 12C SE Table of Contents FC PROTO CO TB 6 GENE e eg E E 6 BiT TRANSFER 6 START e EES ei pipe LETS 6 Rate 6 FS BUS DOCUMENTA TON EE 7 MENIN SCREEN Me 8 Device MeN mee 8 NS Sa OP Se e sts MEI enun tH vero tdem E pua MMC MEM VEA DEUM 8 EE 8 miae T 8 57 90 CC H 9 Reie BR eT H 9 Bioegcau siam O 9 FC Freguency II Bn OTT 9 ECHT ATION MEME EOIN E 9 Parallel Port Selection Menu em 9 nag OE Merna DEE 10 Ignore Acknowledge Menu Wem 11 WTS VSI EE 11 We bd UW DE 11 HEID WEE 11 ADO E 11 Ref Hat GC 11 PCCM ICY IOI C nl EE 11 Parallel Port MGIC AN e EE 11 System Regis ty OI ee 11 EEPROM ENEE 12 FEAT een e E E E ee IUE 12 We Pare eSEE e RE 12 Erase Write Cycle E 12 Da e E E E E E 12 Byte Address Ae ele le EE 13 Read Byte Button 13 Read All Button 13 WV EES B
29. l Page 23 LPT to 12C SE Send Message The current message will be sent when this button is pressed The current message number is shown below the Send Message button To change the active message to be sent single click on the row of the data to be sent Send All All the valid messages on the screen will be sent in order of the row number The action will be performed one time A message is valid if there is a minimum of an address within the message Since the program tests for a valid message on each line within the message grid before sending the message it is recommended not required to compress the data see Compress Data above to speed up the transfer Send Sequence A sequence of messages will be sent when the Send Sequence button is pressed The sequence editor is invoked by double clicking on the sequence display The sequence length can be up to 64 messages in length The sequencer is limited to using messages 1 through 99 The Sequence Editor is shown below gt Sequence Editor Sequencer Trigger Output The Trigger Output can be toggled high and low by pressing the buttons on the toolbar This is useful for setting the initial value of the Trigger output The Input pin state can also be read by pressing the button Read Ehe Trigger State Input State a Pin Set Trigger Set Ban Output High utput Low Read Trigger Output High Input State High Message Editor The i2c message cann
30. ns the available ports for the PC hardware The user is notified if it cannot be found otherwise the when it is found the selected parallel port will have a check mark placed beside it in the Options menu When a new parallel port is selected from the Options menu the change takes effect immediately The selected port will also be displayed in the Parallel Port Indicator in the lower right corner of the screen LPT to I2C SE Software User s Manual Page 9 LPT to 12C SE Add Ports Menu Item The Options menu contains a selection for adding a non standard parallel port A non standard parallel port is generally a port that is contained on a PCI based add in card Before attempting to add a port you need to find the address of the port This can be found in the Windows Control Panel Here is an example of a non standard LPT port MosChip PCI Parallel Port LPT2 Properties As you can see here the LPT port is found at Details zd address Ox9FOO Note this address before proceeding MosChip PCI Parallel Port LP T2 to the next step Se Resource settings Resource type Setting WO Range SF00 SFU7 WM LO Range 9EDD 9E07 Use automatic settings Change Setting Conflicting device list No conflicts Now go to the Options menu and select Add Ports LPT to I2C SE will display the following mAdd a new prt aa Add a previously used port SF 0 Add port 0000 hex If you
31. ot be edited directly in the Expert mode screen Instead an Expert Mode Editor is brought up either by double clicking on a message or when the user attempts to type directly into one of the rows messages in the Expert Mode screen Write Mode The message editor for a Write transaction is shown below Note that if the current message is blank then the editor will default to the Write mode LPT to I2C SE Software User s Manual Page 24 Device Address Read Write Selection Insert Trigger Into message Message Data LPT to 12C SE Message Number E Message Editor Msp 1 The message being edited is shown at the top of the Send Stop at message editor screen EX end of Message Address E Stop MEE Delay after message Read Write m ei Number of Bytes fe E M Number of A delay measured in bytes to send milliseconds can be inserted Delay After Message mz fi SE Delay after after a message Triggers E Device Address TURNER The Dc slave address is a DE x entered in the address box in Trigger Law hexadecimal notation The Pulse High least significant bit of the address is not important can Pulse Low be a 1 or 0 since the Write Message Expert Mode will ensure that Tim E this is appropriate for the ak Bl 5 j pj zm read write transaction when 00 00 01 2 O3 04 n5 06 PL OF the message is actually transmitted Read Write Selection The user can select a Read or Write transact
32. paste it to a different row Paste Data Previously copied data will be pasted into the current row message Compress Data All blank rows will be eliminated from the display Here is an example of a display before compress xr LPT to I2C SE IC Expert Mode Sh File Edit Device Options Window Trigger Output High m Input State High Dcad Msg Start Address RW Data Stop Delay ST AD Write O0 00 01 02 03 04 05 06 07 ves ST ST A write OU ST ST A Read 00 01 02 03 04 05 06 PL 07 ST AL Read 08 09 04 06 02 OD OE PL UF Send Message Send All Send Sequence Send Continuously Active Msg 8 Done 02 03 Transmission successful Double click to edit the sequence EN 60 KHz LPT F And here is the same screen after the compress TF LPT to I2C SE HSC Expert Mode Sel Ss Fie Edit Device Options Window a E x Trigger Output Hight f a Read Stop Delay i Yes T write UU No oO Read 00 01 02 03 04 05 06 PL 07 Yes D Read 08 09 04 06 0C 00 0 PL OF Yes 0 Send Message Send Al Send Sequence Send Continuously Active Msg 1 Dane la2 03 Transmission successful CEN co KHz LPT1 F It is not required to perform a compress but it does speed up the message transfer process since the application does not need to evaluate blank rows to see 1f there is data to be sent LPT to I2C SE Software User s Manua
33. pe Source Ext T RR ER IR RER RE Y1 E shape Mode Normal Cou Dy HI 1 008 CH 1 00 P T HERREN 7 R17 lt 10Hz d 4 al a i a a 1 d a m E EI E mi 1 A EJ 4 4 E E D EI E E d E 1 4 al E 4 ni 1 j LPT to I2C SE Software User s Manual Page 27
34. s 0d registers to one particular value 1B Decoder bytes of text slicer Du OK button the data entered by the iC ID d tt bea op user in the Edit Current Device SE screen will be transferred to the User 1D Reserved on Definable Device screen Lag Reserved mm Cancel button the editing session will be closed and no changes to the User Definable Device screen will 19 Reserved Dn IEF Status Byte DU OK Cancel occur Note that any changes are not saved until the Save or Save As menu item is selected Register Subaddress Register Slider Control EES The Slider Control is activated when the user presses the Slider button on the User Defined Device screen or by right clicking the grid and then selecting Change Active Register with Slider Control from the pop up menu tn t E CS En es Bel UI LI LUN m D ei ur The subaddress of the active cell in the grid will be assigned to the Slider The subaddress is shown in the upper left corner Moving the slider bar up and down will cause the value of that cell to be changed If Auto Write On 1s checked then the contents of the cell will be transmitted to the device subaddress when it is changed If an error is Dese encountered while transmitting using Auto Write LPT to I2C SE Write Selection LPT to I2C SE Software User s Manual Page 20 LPT to 12C SE will turn off Auto Write an
35. se This situation indicates a START condition A LOW to HIGH transition on the SDA line while SCL is HIGH defines a STOP condition The master always generates START and STOP conditions The bus is considered to be busy after the START condition The bus is considered to be free again a certain time after the STOP condition BC Address The first seven bits of an PC transmission make up the slave address The eighth bit or the least significant bit is the R W bit that determines the direction of the message MSE IP TA a ele VIE ut ni c Bled ig JEC Dr P IN Sire LA i wie E ELE Y Er ce A 0 in the least significant position of the first byte means that the master will WRITE information to the selected slave A 0 in this position means that the master will READ information from the slave When an PC address is sent each device in a system compares the first seven bits after the START condition with its own address If they match the device considers itself addressed by the master as a slave LPT to I2C SE Software User s Manual Page 6 LPT to 12C SE receiver or slave transmitter depending on the R W bit When selecting addresses within LPT to I2C SE the software assumes the least significant bit is zero write If the PC message is a write transmission the least significant bit will be sent as a O while if it is a read the software will append a 1 in the LSB position
36. ter the repeated start condition and then inserts SOOWFF An example of a message with a restart condition is shown below R Read key is a read condition This may be changed to a write condition by pressing the w key W Write key is a write condition This may be changed to a read condition by pressing the r key Progress Bar The progress bar is visible when the Repeat sequence button is pressed and is invisible when the LPT to I2C SE Software User s Manual Page 16 LPT to 12C SE transmission has stopped It is used as a visual cue that there is a transmission underway Single Button Pressing the Single Button starts the transmission of PC messages shown in the Sequence editor box After the last message in the Sequence Editor box has been transmitted the PC transmissions are terminated A delay is inserted between each PC message if the Delay box is greater than zero The transmission is terminated with a Stop condition as soon as an error is encountered Repeat Button Pressing the Repeat Button starts the transmission of messages shown in the Sequence editor box After the last PC message in the Sequence Editor box is transmitted the PC transmissions are started once again with the first message shown in the Sequence Editor box A delay is inserted between each message if the Delay box is greater than zero The transmission is terminated as soon as an error is encountered Stop Button Pressing the
37. the Fill Buffer button is pressed The fill can be constrained to the addresses found in the Fill from to the Fill to edit boxes No information will be sent over the DC bus 1r EPT to I2C SE D _PTtol2 C data files 256B Et mem gt File Device Options Window Help __ Device Setup Device Size 256 o FF_ FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF Address AD 1 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF Bage zeg e 2 FF D 00 nn op OO OO OO OD op OO OO OO OO OO OD GE ri 3 o0 00 00 00 00 OD OO OO OO 00 OD OO OO OO OO OD Write Time 50 e e 4 D I 00 on no OO OO 00 OO OO op OO OO OO OD OO o Byte Address Ox000 5 o op 00 op 00 00 op OO 00 FE Er Sp Read Byte amp FF FF FF FF FF FF FF FF FF FF FF FF Ft ler FE FF FR FF FF FF FF Write Byte Write Al A FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF IF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF verify Fill from pi SC Fill to a Hl with loo Fill Buffer Checkerboard The grid will be filled an alternating 1 and O pattern when this is chosen from the Fill with Checkerboard selection is made on the Edit menu Inverted Checkerboard The grid will be filled an alternating 0 and 1 pattern when this is chosen from the Fill with Inverted Checkerboard selection is made on the Ed
38. umber of bytes that will be read in the message The maximum number of bytes that can be read in one message is 64 When the Message Editor is closed the unread bytes will be shown as FF Triggers are considered one data byte so if you want to read 8 data bytes and you need a Trigger you will choose 9 in the Number of Bytes box The SDA and SCL lines will not change state during the Trigger Message Data It is not necessary to enter data in the Message Data area in a Read transaction since an FF will be entered into each location when the Message Editor is closed However you can optionally insert a Trigger into the message by clicking the appropriate Message Data location and then pressing one of the Trigger buttons A Trigger is considered one data byte although it doesn t actually send any data on the i2c bus In the figure shown above a trigger was inserted at a location which will send a trigger before the eighth data byte is read Inserting Triggers Any number of triggers may be inserted into a Read message Triggers can be a transition from Low to High High to Low a high level pulse and a low level pulse The initial state of the trigger should be established by either manually setting the Trigger Output see Trigger Output section above or by inserting an initialization level within the message When setting the Number of Bytes in the message each trigger event will count as one byte but it will have no effect on t
39. yte BUO E 13 ek EIN un aiecersa cee os ne dccem scena NM UEM M ius tel MINUM DE E 13 eu e EE 13 SUR EE 14 UTS Ci OI ICO E 14 Haye ee ENT e E 14 lege D 14 OY OGM EE 15 UNIVERSAL EE 16 UNIVERSAL TRANSIVIITTER RECEIVER wassicasiscavevwsnaccinileccstaudsceeususinbsunanasiesiveubledaecond AER 16 Meier EE 16 Ste BHELOP erae sis ctnnsssive RUE III IMMISIT II MEIN MIU MOIS 17 LPT to I2C SE Software User s Manual LPT to 12C SE FRO Sal E e EE 17 BO TE de E 17 SS UCC EGU OI EE 17 RE 17 Size ebe dE 17 PC VS BW E 17 USER DEFINABLE DEVICE cesis rreri in E AE EEN 18 Define New EIERE Eed Aa 19 Open Device Definition Pie 19 hl m 19 rro X 19 Save Registers IN TEXT IOM E 19 SC e 19 PEME DEVI R EN d m 19 RER Ed EE 19 zo 19 ECE CUFTBHE RSIS UIs E AE ss E AAN E mM I qu indie MM MUN INN PUDE M MUI 19 Ee CUM Fey SC acacia ubepdbi M sen pMa coe Seu ep I dat Oed bMS ubepcdu dE CDI EEE 20 Ste Dt rola iugo en E nen E E 20 SO Fil nd e EE 21 BU lessee E 21 SEENEN 22 ll TE TER 22 Open Data File esscr n a A AE E ERE EE 22 D ar EE 22 EE MOE ap T A E E EE E AE eee 22 PROW ET 22 Delete E 22 Clear the ie ug re EE 22 Copy ele ge 23 KR 23 OTN
Download Pdf Manuals
Related Search
Related Contents
NetSuite User Manual Operating Instructions for hand held ISO Reader ARE H5 Makita FS6300 power screwdriver B-Tech BT8000 Inner Balance User`s Manual Cocoa LeafGreens_DS_0513 BOXER User Guide Version 3.3 (November 2004) The “Boxer Vorwort - Vivax Assist BLOOD PRESSURE MONITOR Copyright © All rights reserved.
Failed to retrieve file