At 05:11 AM 11/20/99 -0500, Tim wrote: >I appreciate the offer...but I use VB6 and a DLL to access ports. I don't >have a problem with clocking (low...high), all I have a problem with is >actually sending data TO the eeprom -- shifting it, OR'ing it with a bit to >keep CS high, etc. > >Tim Hamel 1. VB operations: OR: iResult = iOper1 or iOper2 AND: iResult = iOper1 and iOper2 XOR: iResult = iOper1 xor iOper2 Right shift 1-bit: iResult = iOper1 \ 2 Left shift 1-bit: iResult = iOper1 * 2 E.g. iResult = (iOper and &Hf7) or &H10 2. Work on bytes individually, and use INTEGER variables (16-bit) to hold numbers. This will avoid sign extension problems. 3. Output the 16-bit integer to the port (8-bits). Only the low 8 bits will be sent. ================================================================ Robert A. LaBudde, PhD, PAS, Dpl. ACAFS e-mail: ral@lcfltd.com Least Cost Formulations, Ltd. URL: http://lcfltd.com/ 824 Timberlake Drive Tel: 757-467-0954 Virginia Beach, VA 23464-3239 Fax: 757-467-2947 "Vere scire est per causae scire" ================================================================