Thanks for the reply. As I am transferring my C51 source to Arm, I wanted something as simple as Some_io_port_0.15=1 So that I define only Some_io_port and my...
Mukund Deshmukh
betacomp_ngp@...
Mar 1, 2006 10:11 am
13863
In LPC21xx, GPIO SET/CLR registers are designed so you don't need to read them in order to set/clear the corresponding GPIO bits: GPIO0_IOSET |= (1<<15); <----...
My $0.02: Why does someone who loves newsgroups and mailing list always get offended when someone fills the niche of a forum? I personally prefer Forums for...
Thanks for the mail. I am porting huge code from 8052 involving lots of port and bit variable. I just want to know how a pin/bit is defined in header file of...
Mukund Deshmukh
betacomp_ngp@...
Mar 1, 2006 12:52 pm
13867
... typedef struct { unsigned long n0:1; unsigned long n1:1; unsigned long n2:1; unsigned long n3:1; unsigned long n4:1; unsigned long n5:1; unsigned long...
Be carefull with bit fields larger then 8 bits, because they do not work the same on all compilers. Check you assembler listing to see if the compiler...
... Not portable even between compilers. For non-I/O code this is just fine but for operations involving I/O this may produce unexpected results. IE the...
Hi All, I am new to ARM and currently working on a design that uses and LPC2131. I am using CrossStudio and having some problems. When I start debugging it...
Hi everybody, I want to loopback CAN connectors of KEIL MCB2100 . Do I need to add terminator resistors ? Any information in how to do that is welcomed. TIA ...
... Correct. gcc tries to optimize accesses, so if you have a register which must be read/writen as 32bits, bitfields fail for this. Other compiler read/write...
Hi All- I'm currently experiencing a very frustrating issue with the LPC2138 bootloader. I can successfully and reliably use the Philips flash utility to...
Hi, First, I think this topic was hashed over a bit awhile back, you might do a search of the archives for more info. IAR uses the following in their include...
My 2 cents: Mukund, Unfortunately there is seperate control over set and clear of GPIO in the LPC 2XXX .. my initial guess is that this is not slam dunk as you...
... I agree, it should be tested. IAR uses operations according to bit field type, GCC shorten to byte. IAR acceptable. ... My variant uses the same register...
I'm trying to build a control platform using a LPC2138 processor. Is there any open source TCP/IP stack and RTOS available which can be used? I came across...
This indeed came up a while ago. To recap: The reason bit-fields are a bad idea for hardware register access, is that it is completely undefined in ANSI 'C' as...
Before anyone points it out, the line: "if (REG(GPIO_IOPIN0 & bit_pos))" should be replaced with: "if (REG(GPIO_IOPIN0) & bit_pos)" Sorry about this Brendan ...
... Hello Tim, I think I know your problem. You are writing that (from t0 on) P0.14 is released after 470ms and /Reset after 820ms? That's simple to explain! ...
Hi Tim, I haven't checked this on my own hardware, but it sounds to me like you have RESET and P0.14 swapped over. The bootloader can only look at P0.14 after...
... That sounds like the reset and P0.14 lines are reversed. P0.14 must be low coming out of reset. Something like Reset ---|____________|--------------- ...
... Sorry I don't understand this. This is a general issue using any sort of Read-modify-write sequence when you have hardware that maps a ready-only register...
Thanks, you are correct and the problem is solved. I have been looking at those two lines for days knowing what they 'should' be. Kills me. Thanks- Tim ... ...
Hi, ... There is a TR for Embedded C. It has an unweildy set of crappy macros. No wonder users have never heard of it, compiler vendors probably don't want...
... That's probably what I was remembering. ... So that would be a register per bit? 32 registers to deal with a full 32bit I/O port (plus presumably another...
Same for me, I really prefer forum over newsgroup or mailing list, so I'll visit this forum too, but that will be difficult to add real content rapidly.. ... ...
... a real advantage with forums is that infos are organized by posts, so you can see (or avoid) a specific subject. and if you want to edit your precedent...
Tim, ... Is it correct that P0.14 is high after reset in the sequence that you outlined ? I believe that you need to insure that P0.14 is low for greater than...
(again, in a forum I would have just edited my precedent post..) but for ArmCorePro, maybe the subject will be very too vast. it's a nice idea to try to...
Mark It's quite possible that you need to update you JLink driver. The current on is 3.12c. I've seen a lot of problems downloading with the older drivers....