rhydoLABZ Stick Series (LPC2129/38/48)
The Stick Series from rhydoLABZ is primarily intended to be used as a development system for 64-pin ARM Controllers (LPC2129/38/48), which can also be used as stand-alone devices. Over the last few years, the ARM architecture has become the most pervasive 32-bit architecture in the world of embedded electronics while LPC2148/38/29 still being the most widely used in ARM7 family. They come with many inbuilt peripherals making them more efficient and a reliable option for the beginners as well as high end application developers.
Stick design consists of all basic components required to quickly evaluate and demonstrate the capabilities of NXP LPC2129/38/48 Series. These are populated with USB connector, voltage regulator, RTC crystal, Main Crystal, necessary de-coupling capacitors etc in a breadboard compatible formfactor, with access to all Port pins for external connection. Power supply input to the system can be either from the VCC pinout or the USB Supply (Use J1 for appropriate power input selection). The design also includes a reset switch to avoid programming pitfalls and to manually bring back the system to the initialization mode. On board MCU has pre-programmed bootloader, can be programmed using USB-UART interface available on-board.
LPC2129/38/48 Comparison
Layout
Stick Features
Note :
- J3 & J6 are present only on LPC2148 stick
- K5 is not present in LPC2129 stick
Sample Code
The sample code given below toggles the PORT pins in regular intervals.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
/****************************************************** HEADER FILE *******************************************************/ #include<lpc21xx.h> /****************************************************** FUNCTION DECLARATIONS *******************************************************/ void PORT_Initial(void); void Delay(unsigned long val); /****************************************************** MAIN FUNCTION *******************************************************/ int main() { PORT_Initial(); /* Initialize the ports */ while(1) { IO0SET=0xFFFFFFFF; /* Set PORT0 pins HIGH */ IO1SET=0xFFFFFFFF; /* Set PORT1 pins HIGH */ Delay(200000); /* Keep them HIGH for sometime */ IO0CLR=0xFFFFFFFF; /* Set PORT0 pins LOW */ IO1CLR=0xFFFFFFFF; /* Set PORT0 pins LOW */ Delay(200000); /* Keep them LOW for sometime */ } } void PORT_Initial(void) { IO0DIR = 0xFFFFFFFF; /* Set all PORT0 pins as output */ IO1DIR = 0xFFFFFFFF; /* Set all PORT1 pins as output */ PINSEL0 = 0x00000000; /* Set P0.0 - P0.15 as GPIO */ PINSEL1 = 0x00000000; /* Set P0.16 - P0.31 as GPIO */ PINSEL2 = 0x00000000; /* Set all PORT1 pins as output */ } void Delay(unsigned long val) { while(val>0) { val--; } } |
Resources
Shop With Us
Leave a Reply
You must be logged in to post a comment.