??? 12/17/08 14:21 Read: times |
#160993 - You are right Sir.. Responding to: ???'s previous message |
That is what exactly is happening. It is writing 16 bit data!! Thanks a lot for pointing out the mistake. Please clarify how to write into the regisers properly. I tried searching, and with thatever ideas I got from google, I am not able to make it work. Please help.
I am using 8051F340 with 16 address lines and 8 data lines. Registers of wiznet are 8 bit registers. I need to write into /read from individual registers and also have to be able to increment decrement pointers and read/write continuously. Please let me know how to do it. At present I am doing it this way, which writes 16 bit data instead of 8 bit data. If I try char xdata *wiznet, it isn't working. #define SHAR5 0X200c volatile uint16 xdata *wiznet; wiznet= ((uint16 xdata *)SHAR5); SIL_WRITE(wiznet,0x01); void SIL_WRITE(uint16 *addr1,uint8 data1) { *addr1 = data1; return; } How do I declare the pointer so that it just writes 8 bit address but to a 16 bit location? I have memory mapped the wiznet from 2000. I am also planning to add more memory (parallel). Your help would be appreciated. |
Topic | Author | Date |
complier issue | 01/01/70 00:00 | |
What is SIL_WRITE? | 01/01/70 00:00 | |
Incomplete | 01/01/70 00:00 | |
just a guess | 01/01/70 00:00 | |
cross posted at SILabs forum | 01/01/70 00:00 | |
What do you expect... | 01/01/70 00:00 | |
complier issue | 01/01/70 00:00 | |
Extension fron one to two bytes | 01/01/70 00:00 | |
You are right Sir.. | 01/01/70 00:00 | |
RTFM | 01/01/70 00:00 | |
Erik, I meant wiznet registers!! | 01/01/70 00:00 | |
Big picture | 01/01/70 00:00 | |
I understand.. | 01/01/70 00:00 |