techie
Advanced Member level 3
I am porting a few applications from 8051 to ARM7. Can someone answer the following:
1. Is there a 16-bit variable avaialable in 32-bit ARM. The equivalent of unsigned int in 8051.
2. If I have an LCD display data bus connected to P0.16-P0.23 (8 bits of a 32bit port), what is the best way to write to this 8-bit portion of 32 bit port without disturbing the rest of the databus
3. What is the best way to read P0.16-P0.23 into an 8-bit variable (unsigned char).
4. One port pin is bidirectional requiring direction change quite often. It is difficult to keep track of the direction of other pins and toggle just this pin. Is there a better way to do that. Like for example, making a port pin high requires no knowledge of existing state of other pins on the same port and you can just write IOSET0 = 0x00001000 to set pin 0.15. Is there a similar way to change the direction.
1. Is there a 16-bit variable avaialable in 32-bit ARM. The equivalent of unsigned int in 8051.
2. If I have an LCD display data bus connected to P0.16-P0.23 (8 bits of a 32bit port), what is the best way to write to this 8-bit portion of 32 bit port without disturbing the rest of the databus
3. What is the best way to read P0.16-P0.23 into an 8-bit variable (unsigned char).
4. One port pin is bidirectional requiring direction change quite often. It is difficult to keep track of the direction of other pins and toggle just this pin. Is there a better way to do that. Like for example, making a port pin high requires no knowledge of existing state of other pins on the same port and you can just write IOSET0 = 0x00001000 to set pin 0.15. Is there a similar way to change the direction.