Dose anybody know the purpose of doing this
void Send_CmdNo(unsigned char command){ CSX=0; RDX=1; D_CX=0; DBUS=command; WRX=0; WRX=0; WRX=0; WRX=1; CSX=1; }
why use WRX=0 3 times b4 WRX=1? wouldn't that just give you WRX=1?
by the way WRX is just
sbit WRX = P7^2;
does it mean on the I/O pin the output will send out 0 three times and 1 one time? It performs that fast?
Note that _nop_ is an Intrinsic Function - so the code should be:
void Send_CmdNo(unsigned char command) { CSX = 0; RDX = 1; D_CX = 0; DBUS = command; WRX = 0; _nop_(); // Short Delay _nop_(); WRX = 1; CSX = 1; }
note the parentheses.
http://www.keil.com/support/man/docs/c51/c51__nop_.htm
thanks guys... so many replies altho most is a bit off the topic but I still appreciate it ^^ I will study into it :)