This website works better with JavaScript.
Начало
Каталог
lain.church
Помощ
Регистрация
Вход
izaya
/
collapseos
огледало от
https://github.com/hsoft/collapseos.git
Наблюдаван
1
Харесван
1
Разклонения
0
Код
Задачи
0
Версии
0
Уики
Activity
Преглед на файлове
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…
Отказ
Запис