So we will have 64 uS line where:
- 4 is blank before sync
- 5 is a sync
- 7 is blank after sync
- 48 is visible screen
PIC12C508/509 don't have interrupts, so we will simply call Line(s) subprogram(s) multiple times to generate proper raster:
; call ; 2/2 Line: nop ; 1/3 nop ; 1/4 ; video 48 instructions /52 ... clrf GPIO ; 1/53 -> video 48 nop ; 1/54 nop ; 1/55 movlw 0x08 ; 1/56 tris GPIO ; 1/57 incf LineN,f ; 1/58 -> sync nop ; 1/59 -> sync nop ; 1/60 -> sync movlw 0x18 ; 1/61 -> sync tris GPIO ; 1/62 -> sync retlw 1 ; 2/64For frame sync it will be special Line subprogram...
Discussions
Become a Hackaday.io Member
Create an account to leave a comment. Already have an account? Log In.