-
Notifications
You must be signed in to change notification settings - Fork 5
/
noload.asm
50 lines (41 loc) · 2.29 KB
/
noload.asm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
;**********************************************************************
; P R O G R A M M MPPTnG *
; *
; Traking program for MPPT new generation *
;**********************************************************************
; *
; Filename: noload.asm *
; Date: 30.04.01 *
; Last Update: 23.09.01 *
; File Version: V3.0 *
; *
; Author: Michael Zürcher *
; *
; Company: HTA-Biel/Bienne Indulab *
; *
; Changes: program for dealing with no load at output *
; added Interrupt routine (5.5.01) * *
; *
;**********************************************************************
; *
; Notes: *
; - Main program : mpptng.asm *
; *
;**********************************************************************
NCInterupt call PWMoff
bsf NOC
DeCharge call wait20ms ; wait for capacitor to be discharged
call UpdateCAN
call GetFilteredUout
jmpFltL UOFH,MAXUOH,ResNOC ; jmp, if minimal voltage not reached
jmpFgtL UOFH,MAXUOH,DeCharge ; go on, if minimal reached
jmpFleL UOFL,MAXUOL,ResNOC ; consider L-Byte
goto DeCharge
ResNOC bcf RES_NOC
call wait20ms
bsf RES_NOC
;----------------------------------------------------------------------
call PWMon ; PWM einschalten
bcf INTCON,RBIF ; reset interrupt
bcf NOC
goto IntReturn