Hi. I want to write and read from one spi eeprom such a 25lc256.
I want to write some C++ code to send data and command through LPT port.
for example I want to produce SCK ,MOSI , MISO ,SS signals with C++.
[Re]Developing these things by yourself can be a good exercise but it’s like re-inventing a wheel ..
There is a program that can read/write to/from a lot of EEProms ..
Google for MEMPLUS 1.1 or MEMPLUS 1.2 ..
This program uses “Philips” LPT interface which is fully described in the MemPLus’ help file ..
Hi IanP
programming eeprom through lpt is one part of my software and hardware. I write a program with ability of painting and loading pictures.now I want to sending the hex code of these pictures to eeprom through lpt.
the circuit have one Atmega32 and spi eeprom and ...
I can send it through serial port to micro and with some code in micro can send the hex values to spi eeprom. but I want to do it with LPT.
There are two issues here: a) what operating system do you use and b) what is plugged into LPTI to accept the data ?
If you can use DOS then there are commands to access the port directly ..
In Win XP and higher, for security reason, you are not allowed to access the port directly …
Also, if you want to connect your own device to LPT1 you need to write (or use others) a parallel port kernel mode driver to accept that data and push it out to the device on the correct pins ..