Fig 1 7 Segment LED Display 0 – 99 7 Segment(SSD) Counter on LPC2148 ARM7 Development Board What is 7 Segment Display(SSD)? – A seven-segment display is a form of electronic display device for displaying decimal numbers (and some alphabets too). 7-segment displays are simply 7 LEDs placed in one same package. To change the displayed value, we…
Smallest of N numbers ARM Assembly Code
ARM Assembly Code to find smallest of N numbers and store value in memory This code is tested in Keil uVision 4. Developed for ARM LPC2148 by Abhay Kagalkar ARM Code : ;/*Program to find smallest of N numbers*/;/* By Abhay Kagalkar*/ AREA arr,codeENTRYmain ldr r0,=data1 ldr r3,=0x40000000 ldr r4,=0x05…
ARM Code: Find whether number is Prime or Not
This code is tested in Keil uVision 4. Developed for ARM LPC2148 by Abhay Kagalkar ARM Code : AREA Prime_or_Not,code,readonly ENTRY MOV R0,#15 ;Number which you want to test CMP R0,#01 ;Comparing with 01 BEQ PRIME ;If equal declare directly as prime CMP R0,#02 ;Compare with 02 BEQ…
ARM Code: Length of carriage return terminated String
ARM Assembly Code to find the length of Carriage return terminated string This code is tested in Keil uVision 4. Basically The Carriage Return (CR) character (0x0D, r) moves the cursor to the beginning of the line without advancing to the next line. This character is used as a new…
LCD Interfacing ARM LPC2148 Embedded C
LCD Interfacing-ARM LPC2148 Introduction: This Code is specially developed for LCD on ALS ARM LPC2148 Evaluation Board. A 16*2 Alphanumeric display with backlight is provided on Evaluation Board. Mode of Operation:- LCD is interfaced using 4 bit Mode. Port Details: P0.2 to P0.7 are used for LCD interfacing. RS =…
4 bit Comparator using 2 bit Comparator Verilog Code
Verilog Code
8 Bit Booth Multiplier Verilog Code
Verilog Code module BoothMulti(X, Y, Z); input signed [7:0] X, Y; output signed [31:0] Z; reg signed [31:0] Z; reg [1:0] temp; integer i; reg E1; reg [7:0] Y1; always @ (X, Y) begin Z = 31’d0; E1 = 1’d0; …
Sequential Multiplier Verilog Code
Verilog Code Test Bench Output
How to write Assembly programs in Keil 4 in 10 Steps
How to write ARM Assembly programs in Keil 4 in 10 Steps Creating an Assembly project in Keil 1. Open the Keil IDE by clicking on its icon on the desktop. 2. Choose New uVision Project from the Project menu. …
T FlipFlop Verilog Code
Verilog Code Test Bench