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…
Category: ARM
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 =…