LPT inteface Spi eeprom (25lc256)

Status
Not open for further replies.

tictac

Full Member level 5
Joined
Oct 22, 2006
Messages
297
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
Polland
Activity points
3,572
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++.

how can I do that?

regards.
 

[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 ..

IanP
 

    tictac

    Points: 2
    Helpful Answer Positive Rating
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.

please help me
regards
 

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 ..

Give these articles a read:
https://electrosofts.com/parallel/index.html
https://electrosofts.com/parallel/parallelwin.html


IanP
 

    tictac

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…