Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to set, reset IO in ARM architecture?

Status
Not open for further replies.

emanuelcsm

Member level 3
Member level 3
Joined
Feb 15, 2005
Messages
61
Helped
7
Reputation
14
Reaction score
1
Trophy points
1,288
Location
Brasil
Activity points
1,801
Hi, I'm new in ARM Archterure, I'm using the LPC2129.

To set the IO 7 I use IOSET |= 0x00000080; and to reset him I use IOCLEAR |= 0x00000080; Rigth?

But I don't need only set and reset, I'm using the IO's 7 8 9 us a binarry counter, If my IO state is only a register I use 'IOVALUE += 0x00000080' to increment and 'IOVALUE -= 0x00000080' to decrement.

How can I do it in ARM Archteture?
 

Re: New in ARM

Though the IOPIN register is mentioned as READ ONLY, it is rumored, that one can write to it, but it seems to be very inefficient. It is interesting to compare the execution time for:

IO0PIN += 0x00000080;

with

unsigned int PORT0bits;
...
PORT0bits += 0x00000080;
PORT0bits &= 0x00000380;
IO0CLR = 0x00000380;
IO0SET = PORT0bits;

Varuzhan
 

    emanuelcsm

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top