Find Jobs
Hire Freelancers

Write an ARM assembly program to implement a Time-Of-Day clock application

$10-30 USD

已关闭
已发布将近 6 年前

$10-30 USD

货到付款
Write an ARM assembly program to implement a Time-Of-Day clock application as specified below: The TOD Clock will have 4 separate counters: HR Indicator: indicates the hour of the day with values ranging from 0 - 24 MIN Indicator: indicates the current minute with values ranging from 0 - 60 SEC Indicator: indicate the current second with values ranging from 0 - 60 MSEC: indicates the current msec with value ranging from 0 - 1000 The TOD Clock must be accurate to 1 msec resolution The time of date is updated anytime any of the indicators is wrapped around to 0. To enable the SysTick interrupt as well as to create a SysTick interrupt handler, follow the attached example. [login to view URL] the document NOTE: In your code comments, show your calculation of the reload value using clock frequency. Hints: - You can set up the SysTick interrupt to time out every 1 msec - The reload value must be calculated based on the clock setting - Anytime a time indicator wraps around from max value to 0, the next indicator above it will be incremented by 1 ;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ; ; interrupt.s ; ;++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ EXPORT __initial_sp Stack_Size EQU 0x00000200 SysTick_CTRL EQU (0xE000E010) SysTick_LOAD EQU (0xE000E014) AREA STACK, NOINIT, READWRITE, ALIGN=3 Stack_Mem SPACE Stack_Size __initial_sp AREA counter, DATA ALIGN intCount DCD 0 AREA vectors, CODE, READONLY EXPORT __Vectors __Vectors DCD __initial_sp DCD Reset_Handler DCD 0 DCD 0 DCD 0 DCD 0 DCD 0 DCD 0 DCD 0 DCD 0 DCD 0 DCD 0 DCD 0 DCD 0 DCD 0 DCD SysTick_H AREA program, CODE, READONLY EXPORT Reset_Handler Reset_Handler LDR R0, =__main BLX R0 SysTick_H LDR R0, =intCount LDR R1, [R0] ADD R1, #1 STR R1, [R0] BX LR AREA myData, DATA ALIGN a DCD 1 AREA myCode, CODE EXPORT __main ALIGN ENTRY __main PROC LDR R0, =SysTick_LOAD MOV R1, #0x2EE0 STR R1, [R0] LDR R0, =SysTick_CTRL MOV R1, #3 STR R1, [R0] LDR R0, =a MOV R5, #0 repeat STR R5, [R0] B repeat ENDP END
项目 ID: 16968704

关于此项目

远程项目
活跃6 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作

关于客户

UNITED STATES的国旗
San Jose, United States
5.0
7
付款方式已验证
会员自8月 24, 2016起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。