:::


Browsing this Thread:   1 Anonymous Users






AN1078
#1
新會員
新會員


查看用戶資訊
各位前輩先進大家好:

關於AN1078這份application note以及程式有些疑問想請教

1.在量測電流的MeasCurr.s中

mov.w _ADC1BUF2,w0                     w0 ADC1BUF2
sub
.w _MeasCurrParm+ADC_Offseta,WREG     w0 ADC Offset


這段程式註解所描述的是ADC-offset
但我查過指令發現結果是offset-ADC
想請問為何電流取樣要反向?

2.在smcpos.c中的void SMCInit(SMC *s)這個函式
其中在G參數的定義上與AN1078文件有所出入
程式如下
if (Q15(LOOPTIMEINSEC) > Q15(PHASEIND))
    
s->Gsmopos Q15(0.99999);
else
    
s->Gsmopos Q15(LOOPTIMEINSEC PHASEIND UMAX IPEAK);

但是文件中只有(LOOPTIMEINSEC/LOOPTIMEINSEC)的描述,
也就是(Ts/L),
不懂為何多了乘UMAX除IPEAK的步驟,
請問是否有其他物理意義?

以上兩個問題煩請版主專家前輩先進協助說明,
謝謝!

發表於: 2019/8/7 14:13
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]