skyflyer
Newbie level 4
Hi!
Warning: total newbie here. I'm trying to learn ARM (have not tried to program it yet, but have plans to do so) and I was looking through examples and couldn't find an explanation for IODIR1 variable setting. Most examples set this variable to like this:
with comment that this initializes pins P1.16 - P1.23 (8 pins).
My question is, how does a such a big number initialize pins 16 - 23 and where could I find the explanation? The AVR code for instance (DDRB) I understand, but this is puzzling. I have a small dev board and LPC1113 for playing around, but would like to understand the code and what it does before I try to connect the chip. For instance, how would I set just pin1.1 as output?
Thanks,
Miha.
Warning: total newbie here. I'm trying to learn ARM (have not tried to program it yet, but have plans to do so) and I was looking through examples and couldn't find an explanation for IODIR1 variable setting. Most examples set this variable to like this:
Code:
IODIR1=0x00FF0000;
My question is, how does a such a big number initialize pins 16 - 23 and where could I find the explanation? The AVR code for instance (DDRB) I understand, but this is puzzling. I have a small dev board and LPC1113 for playing around, but would like to understand the code and what it does before I try to connect the chip. For instance, how would I set just pin1.1 as output?
Thanks,
Miha.
Last edited: