This is not a USB problem, and not linux in any case, but anyway:
> In assembler works only lighting on
>
> mov OEE,#11100000b ; setting pin 7 6 5 of port E as outputs
> orl IOE,#00011000b
> anl IOE,#00000111b ; lighting on 3 LEDs
Your code will set IOE.7 to IOE.5 to 0. This will provide a low output
on the three LED ports, and the LEDs light up if you have them
connected between the ports and the positive supply.
> I can't do it maunally through microswitches I don't why ...
Sure you can't -- the bits of IOE that affect the LEDs don't depend on
the switches. What you have to do is read IOE.2 to IOE.0, then copy
these to IOE.7 to IOE.5. One way to do that is this:
mov a, IOE ; save input pin status
anl a, #0x07 ; not really necessary in this case
rrc a ; rotate right through carry 3 times
rrc a
rrc a
mov IOE, a ; set output pins
You have to rotate the accumulator, using IOE alone won't work, and
you won't get anywhere with AND and OR operations alone.
As this is not a USB or Linux related question, could you please take
it to a relevant forum or mailing list, I'm sure there are some out
there (maybe one of the sdcc mailing lists).
Andras
===========================================================================
Major Andras
e-mail: [EMAIL PROTECTED]
www: http://andras.webhop.org/
===========================================================================
-------------------------------------------------------
This SF.net email is sponsored by: VM Ware
With VMware you can run multiple operating systems on a single machine.
WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines at the
same time. Free trial click here: http://www.vmware.com/wl/offer/345/0
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel