本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
lain.church
說明
註冊
登入
izaya
/
collapseos
镜像来自
https://github.com/hsoft/collapseos.git
關注
1
收藏
1
複製
0
程式碼
問題
0
版本發佈
0
Wiki
活動
瀏覽代碼
Move AVR programmer from B690 to B160
Also, remove leftovers from previous move.
master
Virgil Dupras
3 年之前
父節點
faf088b397
當前提交
037c10fc57
共有
12 個檔案被更改
,包括
9 行新增
和
86 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-4
blk/001
+1
-0
blk/160
+0
-0
blk/161
+0
-0
blk/162
+0
-5
blk/650
+0
-16
blk/651
+0
-9
blk/652
+0
-16
blk/655
+0
-16
blk/656
+0
-6
blk/657
+0
-7
blk/690
+5
-7
doc/avr.txt
+ 3
- 4
blk/001
查看文件
@@ -3,11 +3,10 @@ MASTER INDEX
005 Z80 assembler 030 8086 assembler
050 AVR assembler 70-99 unused
100 Block editor 120 Visual Editor
160-259 unused 260 Cross compilation
160 AVR SPI programmer
170-259 unused 260 Cross compilation
280 Z80 boot code 350 Core words
410 PS/2 keyboard subsystem 420 SD Card subsystem
440-519 unused 520 Fonts
550-689 unused
690 AVR SPI programmer
700-799 unused
550-799 unused
800 8086 boot code
blk/691 → blk/160
查看文件
@@ -1,3 +1,4 @@
( AVR Programmer, load range 160-162. doc/avr.txt )
( page size in words, 64 is default on atmega328P )
CREATE aspfpgsz 64 ,
VARIABLE aspprevx
blk/692 → blk/161
查看文件
blk/693 → blk/162
查看文件
+ 0
- 5
blk/650
查看文件
@@ -1,5 +0,0 @@
AVR assembler
651 Guide 655 Instructions list
660 Loader 661-672 Code
672 Common AVR consts
+ 0
- 16
blk/651
查看文件
@@ -1,16 +0,0 @@
This assembler works very much like Z80 assembler (B200) so
refer to this documentation first. Here, we document specifici-
ties.
All mnemonics in AVR have a single signature. Therefore, we
don't need any "argtype" suffixes.
Registers are referred to with consts R0-R31. There is
X, Y, Z, X+, Y+, Z+, X-, Y-, Z- for appropriate ops (LD, ST).
XL, XH, YL, YH, ZL, ZH are simple aliases to R26-R31.
Branching works differently. Instead of expecting a byte to be
written after the naked op, branching words expect a displace-
ment argument.
(cont.)
+ 0
- 9
blk/652
查看文件
@@ -1,9 +0,0 @@
This is because there's bitwise ORing involved in the creation
of the final opcode, which makes z80a's approach impractical.
This makes labelling a bit different too. Instead of expecting
label words after the naked branching op, we rather have label
words expecting branching wordref as an argument. Examples:
L2 ' BRTS FLBL! ( branch forward to L2 )
L1 ' RJMP LBL, ( branch backward to L1 )
+ 0
- 16
blk/655
查看文件
@@ -1,16 +0,0 @@
AVR instructions list
OPRd (B663)
ASR COM DEC INC LAC LAS LAT LSR NEG POP PUSH
ROR SWAP XCH
OPRdRr (B664)
ADC ADD AND CP CPC CPSE EOR MOV MUL OR SBC
SUB
OPRdA (B664)
IN OUT
OPRdK (B665)
ANDI CPI LDI ORI SBCI SBR SUBI
(cont.)
+ 0
- 16
blk/656
查看文件
@@ -1,16 +0,0 @@
OPAb (B665)
CBI SBI SBIC SBIS
OPNA (B666)
BREAK CL[C,H,I,N,S,T,V,Z] SE[C,H,I,N,S,T,V,Z] EIJMP ICALL
EICALL IJMP NOP RET RETI SLEEP WDR
OPb (B667)
BCLR BSET
OPRdb (B667)
BLD BST SBRC SBRS
Special (B667,B670)
CLR TST LSL LD ST
(cont.)
+ 0
- 6
blk/657
查看文件
@@ -1,6 +0,0 @@
Flow (B668)
RJMP RCALL
BR[BC,BS,CC,CS,EQ,NE,GE,HC,HS,ID,IE,LO,LT,MI,PL,SH,TC,TS,VC,VS]
Flow macros (B671)
LBL! LBL, SKIP, TO, FLBL, FLBL! BEGIN, AGAIN? AGAIN, IF, THEN,
+ 0
- 7
blk/690
查看文件
@@ -1,7 +0,0 @@
AVR SPI programmer
This program allows you to access AVR chips Flash memory, EEPROM
and fuses using a SPI relay. This requires drivers that imple-
ment the SPI Relay protocol.
Load range: B691-B693
+ 5
- 7
doc/avr.txt
查看文件
@@ -1,11 +1,9 @@
# Working with AVR microcontrollers
# Assembling AVR binaries
TODO
# Programming AVR chips
(In this documentation, you are expected to have an AVR binary
ready to send. To assemble an AVR binary from source, see
asm.txt)
To program AVR chips, you need a device that provides the SPI
protocol. The device built in the rc2014/sdcard recipe fits the
bill. Make sure you can override the SPI clock because the sys-
@@ -18,7 +16,7 @@ to proper AVR pins as described in the MCU's datasheet. Note
that this device will be the same as the one you'll use for any
modern SPI-based AVR programmer, with RESET replacing SS.
The AVR programming code is at B6
9
0.
The AVR programming code is at B
1
60.
Before you begin programming the chip, the device must be desel-
ected. Ensure with "0 (spie)".
Write
Preview
Loading…
取消
儲存