mirror of
https://github.com/clockworkpi/PicoCalc.git
synced 2026-03-26 22:12:39 +01:00
add pico_multi_booter code
This commit is contained in:
23
Code/pico_multi_booter/picomite/PicoMiteI2S.pio
Normal file
23
Code/pico_multi_booter/picomite/PicoMiteI2S.pio
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
; ============================================================================
|
||||
; QVGA PIO (16 instructions)
|
||||
; ============================================================================
|
||||
; Control word (right shifted):
|
||||
; - bit 0..26 (27 bits) loop counter N
|
||||
; - bit 27..31 (5 bits) jump address
|
||||
|
||||
.program i2s
|
||||
.side_set 2 ; HSYNC and VSYNC output (2 bits)
|
||||
.wrap_target
|
||||
Set x,30 side 0
|
||||
Pull noblock side 1
|
||||
loop1:
|
||||
Out pins,1 side 0
|
||||
Jmp x--,loop1 side 1
|
||||
Set x,30 side 2
|
||||
Pull noblock side 3
|
||||
loop2:
|
||||
Out pins,1 side 2
|
||||
Jmp x--,loop2 side 3
|
||||
.wrap ; wrap jump to .wrap_target
|
||||
|
||||
Reference in New Issue
Block a user