Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please make this assembly code into C, this file setups the LCD and allow you to draw pixels, refresh the screen ect when the function(LCD_Pixel)

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

image text in transcribed

Please make this assembly code into C, this file setups the LCD and allow you to draw pixels, refresh the screen ect when the function(LCD_Pixel) or (LCD_Refresh) etc is called.

if the image does not show up, (view in order)

http://imgur.com/a/mUEG4

http://imgur.com/a/27cma

http://imgur.com/a/61h4z

http://imgur.com/a/AODja

http://imgur.com/a/194Vk

http://imgur.com/aGccB

INCLUDE Registers.s AREA DATA, ALIGN-2 LCDmat SPACE 1056 AREA LCDCODE, CODE, READONLY, ALIGN=2 EXPORT LCD_Init EXPORT LCD_Cmd_Out EXPORT LCD_Dat_Out IMPORT DelayMs EXPORT LCD_Contrast EXPORTLCD Pixel EXPORT LCD Refresh EXPORT LCD Blank CSbit EQU 0x80 RSTbit EQU 0x40 A0bit EQU 0x20 CLKbit EQU 0x20 DATbit EQU 0x10 CSport EQU 0x400043FC RSTport EQU 0x400043FC A0port EQU 0x400043FC CLKport EQU 0x400243FC DATport EQU 0x400243FC LCD_Init ; assuming CSwrite pin0, RSTwrite pin1 PUSH LR, R0-R4) LDR RO,-CSport LDR R1, [R0] BIC R1, #(CSbit) STR R1, [R0] LDR Re, -RSTport LDR R1, [R0] BIC R1, #(RSTbit) STR R1, [R0] MOV R3, #70 BL DelayMs LDR R1, [R0] ORR R1, #(RSTbit) STR R1, [R0] MOV R3, #70 BL DelayMs ; GPIO-DATA &= ~1 CSwrite(0) ; GPIO-DATA &= ~2 RSTwrite(0) ; DelayMs (50ms) ; GPIO DATA I-2 RSTwrite(1)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Visual Basic 6 Databases

Authors: Charles Williams

1st Edition

1861002025, 978-1861002020

More Books

Students also viewed these Databases questions

Question

1. Greeting and presentation:

Answered: 1 week ago