We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
How To Assign a Variable To Single Pin In GPIO
In IAR I Can Write Code Like Following:
#define rs IO1PIN_bit.P1_24 #define rw IO1PIN_bit.P1_25 #define en IO1PIN_bit.P1_26
But I Want To know How to write above code in KEIL.
Someone Please Help Me With this.
And you don't feel that the actually used processor may matter?
An 8051 processor has bit-addressable I/O signals. ARM chips might have - if they support bit banding. Else they do not. What time have you spent looking through the relevant header file(s) for your specific processor?
Keil's 8051 compiler has special constructs to handle bit variables. ARM processors on the other hand doesn't have bit variables - but maybe aliased words, in case the processor in question has bit banding.
Yes I knew that but IAR Workbench Has the following header file "nxp/iolpc2148.h" which includes definition for previously mentioned GPIO access.
I Have another doubt: If I use that header file from IAR in Keil, it will work or not?
In this case, IAR is using an struct of bit fields. This is standard C, even if often not very portable.
I am Using LPC2129 Controller Please tell me what is alternative available and where can I find suitable header file for my controller.
Have you installed the legacy package for Keil MDK-ARM?
Have you visited this link? http://www.keil.com/dd/chip/3648.htm
But you would probably be able to use IAR's file too.
Remember that software engineering requires you to be proactive. Your programs will never be better than you are at picking up information.
Thank you! Mr.Per Westermark I will go through it and contact you if I found any doubts regarding this.