Using ARM1176JZF-S Kit (DS-5 tools), I need to control stepper motor based on the output of ultrasonic sensor (which detects objects). I have already done the project in 8051 microcontrollers but how to do it in arm board. Let's first concentrate on the getting input from ultrasonic sensors. Please tell me where on the arm board do I need to connect the sensor. Please give some tips in writing the code( preferably in c). Can we implement this on software before hard ware implementation, if so how?
Hi Albert,
The ARM1176JZF-S is just the processor, and DS-5 is just the compiler toolchain (or a virtual modelling environment without any sensors).
For a hardware board the connectivity of the peripherals, GPIO, sensors, etc will depend on both the specific implementation of the SoC, and the development board you are using. Neither of these are not part of the ARM processor - ARM only produces the processor core, not the system around it - so you may be better off asking for support on the forums of the company who produced the development board you are using.
HTH, Pete
Sir,
This board ( PBB76-BD-0232A) was produced by ARM only ;Realview VersatileTM platform baseboard ARM1176JZF-S(PBB76-BD-0232A) to be exact is the actual name of the board. Can you kindly direct me to the appropriate forum if this is not the one.
Yes that's an ARM developed board.
In terms of peripheral connectivity the board is mostly designed for application software development on a "big OS" like Linux or Windows CE; it's not really designed as a microcontroller development platform which can interface with the outside world. There are some options out-of-the-box but far fewer than you might get on a dedicated micro-controller system based on a Cortex-M, such as an http://mbed.org/.
On the interface side you have a small number of GPIO pins (http://infocenter.arm.com/help/topic/com.arm.doc.dui0425f/Babidigi.html), and some of the bigger PC-like connectivity options (USB, Ethernet). Unlike a real microcontroller this platform has no ADC, DAC, or PWM controllers - so motor control will be difficult to do directly unless you modulate directly off the GPIO.
Thank you sir. Because of certain constraints, I have to do the project in this board only.Kindly elaborate the out-of -the-box options you were referring to. Please help me the best you with this project cause I am totally new to this and I have deadlines to meet.
> Kindly elaborate the out-of -the-box options you were referring to
As mentioned - all you really have are some generic GPIO pins which can be poked via the PL061 peripheral bock (see j39 in the diagram here: RealView Platform Baseboard for ARM1176JZF-S User Guide: 3.1.1. PCB layout), and higher-level connectivity options (serial, usb, ethernet).
Is it possible to simulate before actually connecting the sensors and motors in DS-5 TOOLS?
From where / how to learn to do programs with the GPIOs?
Where can I find example programs that deal with GPIOs and timers?
As hinted by Peter, you should explore the user guide: RealView Platform Baseboard for ARM1176JZF-S User Guide (a PDF version is also available from that link) with respect to any board-specific details.
Example programs (e.g. in C) dealing with GPIOs and timers are widely available on the web, They don't have to be specific to ARM. App notes from micro-controller vendors tend to have great examples.
For the ARM specifics that are relevant to a programmer I recommend you start with Cortex-A Series Programmer’s Guide (still mostly applicable to ARM11) and then dive deeper into the ARM Architecture Reference Manual (ARM-ARM) and the Technical Reference Manual (TRM) for your device. Note that ARM11 is covered by the ARMv7-AR ARM-ARM. Google searches with key words like ARM11 TRM or ARM ARM will get you to the right place.
Don't be intimidated by the size of these documents, you only need to read the sections relevant to your application.