Date post: | 15-Apr-2017 |
Category: |
Engineering |
Upload: | jaideep-dadi |
View: | 120 times |
Download: | 4 times |
WORKSHOP ON RTOS FOR SYSTEM INTEGRATION
Submitted by:Name : jayadeepu.dadi
Experiment - 1
Introduction to mbed NXP LPC11U24
• The mbed NXP LPC11U24 Microcontroller in particular is designed for prototyping low cost USB devices, battery powered applications and 32-bit ARM® Cortex™-M0 based designs.
MISO (Master In Slave Out) - The Slave line for sending data to the master,MOSI (Master Out Slave In) - The Master line for sending data to the peripherals,SCK (Serial Clock) - The clock pulses which synchronize data transmission generated by the master
• // control busDigitalOut rs(p34);DigitalOut rw(p35);DigitalOut en(p36);
• // busy flagDigitalIn busy(p28);
• // data busBusOut DataPins(p21,p22,p23,p24,p25,p26,p27,p28);
• NXP LPC11U24 MCULow power ARM® Cortex™-M0 Core48MHz, 8KB RAM, 32KB FLASHUSB Device, 2xSPI, I2C , UART, 6xADC, GPIO
• Prototyping form-factor40-pin 0.1" pitch DIP package, 54x26mm5V USB, 4.5-9V supply or 2.4-3.3V batteryBuilt-in USB drag 'n' drop FLASH programmer
• mbed.org Developer WebsiteLightweight Online CompilerHigh level C/C++ SDKCookbook of published libraries and projects
• Running at frequencies of up to 50 MHz - Nested Vectored Interrupt Controller (NVIC) - Non Maskable Interrupt (NMI) - System tick timer
• Memory: - Up to 32 kB on-chip flash program memory.
• Up to 4 kB on-chip EEPROM data memory; byte erasable and byte programmable.
• Up to 10 kB SRAM data memory.• 16 kB boot ROM. ROM-based USB drivers. Flash
updates via USB supported. ROM-based 32-bit integer division routines
• //wait_ms(5);
Experiment - 2
Blinking of internal led using lpc11u24
The mbed Microcontrollers are a series of ARM microcontroller development boards designed for rapid prototyping.
#include "mbed.h"
DigitalOut myled(LED1);
int main() { while(1) { myled = 1; wait(0.6); myled = 0; wait(0.6); }}
Experiment - 3
Counter control using led’s#include "mbed.h"BusOut myleds(LED1,LED2,LED3,LED4);DigitalIn enable(p25);int main() { unsigned char j=0; while(1) { if(enable) { myleds=j; wait(0.2); j++; if(j==15) j=0; } }}
Experiment - 4
Lcd interfacing with lpc11u24
Interfacing seven segment display with LPC 11u24
Experiment - 5
Common cathode
Multiple seven segment display
Experiment - 6
Experiment - 7
ADC interfacing
Introduction to lpc 214x
• LPC2141 microcontroller is based on 32 bit ARM7TDMI-S CPU
• Due to their tiny size and low power consumption, LPC2141/2/4/6/8 are ideal for applications where miniaturization is a key requirement, such as access control and point-of-sale.
• Its applications are mainly on Industrial control, Medical systems, Access control, point of sale, communication gateway, general purpose applications
Introduction to keil and proteussix- bit binary counter control
Six bit binary control using proteus software
Seven segment using keil software
Seven segment display using proteus software