Il sito funziona meglio con JavaScript.
Home
Esplora
lain.church
Aiuto
Registrati
Accedi
izaya
/
collapseos
mirror da
https://github.com/hsoft/collapseos.git
Segui
1
Vota
1
Forka
0
Codice
Problemi
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Move AVR programmer from B690 to B160
Also, remove leftovers from previous move.
master
Virgil Dupras
3 anni fa
parent
faf088b397
commit
037c10fc57
12 ha cambiato i file
con
9 aggiunte
e
86 eliminazioni
Visualizzazione separata
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
Vedi File
@@ -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
Vedi File
@@ -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
Vedi File
blk/693 → blk/162
Vedi File
+ 0
- 5
blk/650
Vedi File
@@ -1,5 +0,0 @@
AVR assembler
651 Guide 655 Instructions list
660 Loader 661-672 Code
672 Common AVR consts
+ 0
- 16
blk/651
Vedi File
@@ -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
Vedi File
@@ -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
Vedi File
@@ -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
Vedi File
@@ -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
Vedi File
@@ -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
Vedi File
@@ -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
Vedi File
@@ -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…
Annulla
Salva