On Wed, Mar 20, 2002 at 02:29:26PM +0900, Myunghyun Lee wrote:
> mode = IEEE1284_DEVICEID;
> ioctl(fd, PPNEGOT, &mode);
>
> MFG:Winbond;MDL:W99200F;CLS:MEDIA;DES:WINBOND VIDEO ENCODER;
Really you should use
mode = IEEE1284_MODE_NIBBLE | IEEE1284_DEVICEID;
(Device ID can be read in any reverse-capable mode.)
> But I cannot read register value from W99200F.
> Following is a read sequence.
>
> I negotiated to EPP before.
>
> set data direction to OUTPUT
> set all control lines to HIGH
> output address
> set [Write] and [Address Strobe] to LOW
> wait until [Wait] is HIGH ------------> Wait isn't changed to HIGH
> set [Write] and [Address Strobe] to HIGH
>
> set data direction to OUTPUT
> set [Write] and [Data Strobe] to Low
> wait until [Wait] is HIGH ------------> Wait isn't changed to HIGH
> read data
> set [Write] and [Data Strobe] to HIGH
How are you trying to do this? By hand, or with read()?
Tim.
*/
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Wed Mar 20 2002 - 09:48:07 EST