AutoFun


  • Home

  • About

  • Tags

  • Categories

  • Archives

  • Schedule

  • Commonweal 404

ECTE333汇编代码合集

Posted on 2020-04-09 | In 汇编语言

asember_code


Lab1-b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
;
; Lab1-b assembler program
;
.include "m8515def.inc" ; include the ATMEGA8515(L) definitions file
.org $000
rjmp RESET
.org $007 ; set start address to Timer 0 overflow
rjmp ISRTIME ; jump if timer0 overflows
.def outval = r16 ; labelling regisers
.def temp = r17 ;
.def counter = r18 ;
RESET:
; Initialise the stack pointer (standard method)
ldi temp,low(RAMEND) ; lower half
out SPL,temp
ldi temp,high(RAMEND) ; upper half
out SPH,temp
; set up portb
ser temp
out DDRB, temp ; set all pins of PORTB as outputs
ldi outval, 0xAA ; set to zero
out PORTB, outval ; output to port B
; initialize timer 0
ldi temp, 0x05
out TCCR0, temp ; set timer 0 prescaling to lowest /1024
clr temp ; clear all bits
out TCNT0, temp ; clear the timer
; setup timer 0's overflow interrupt
in temp, TIMSK ; load Timer Interrupt Mask Register
sbr temp, 1<<TOIE0 ; set the timer 0 overflow interrupt enable bit
out TIMSK, temp ; save Timer Interrupt Mask Register
ldi counter, 0x04
sei ; enable interrupts
LOOP:
; do nothing, just loop forever(waiting for timer0 overflow)
rjmp LOOP
ISRTIME:
; interrupt service routine
; is executed every 2^16 pre-scaled cycles
dec counter
cpi counter, 0x00
brne BACK
com outval ; Toggle ODD and EVEN Pins
out PORTB, outval ; output to port B
ldi counter, 0x04
BACK:
reti ; return from interrupt (different to normal return)
Read more »

Atmel

Posted on 2020-04-08 | In 汇编语言

Instruction Set Nomenclature


** 点击下载文件 **


** 点击下载文件 **

Instruction_set

Posted on 2020-04-08 | In 汇编语言

Instruction_set_summary


image-20200408000335518

Read more »

单曲

Posted on 2020-04-07 | In music

Hexo优化

Posted on 2020-04-07 | In Hexo博客

Q: 网上的url突然丢失,无法加载。

将想要的背景图片放入 themes/next/source/images。打开 themes/next/source/css/ _custom/custom.styl 文件,添加以下代码:

1
2
3
4
5
6
7
body {
background:url(/images/yourbackground.jpg);
background-repeat: no-repeat;
background-attachment:fixed; //不重复
background-size: cover; //填充
background-position:50% 50%;
}
Read more »

ECTE363Lab_logbook

Posted on 2020-04-06 | In CommuSystem

Lab2 Pseudo Random Binary Sequence (PRBS) Generation.


Section 1: Displaying PRSB Using the ‘Snapshot’ Method

task1 Examination of Sequence Generator

alt

Read more »
<i class="fa fa-angle-left"></i>12

Henry

🐟🐱深巷,理想三旬

16 posts
8 categories
13 tags
GitHub

  • BGM1
  • Hexo2
  • Instruction_set2
  • Lab_logbook1
  • Latex1
  • Lecture1
  • Math1
  • Pandoc1
  • UnrealEngine1
  • assembler_code1
  • cyberpunk1
  • 指弹2
  • 韩语1
© 2020 Henry
博客全站共3.1k字