久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费

 找回密碼
 立即注冊

QQ登錄

只需一步,快速開始

搜索
查看: 2362|回復: 0
打印 上一主題 下一主題
收起左側

智能臺燈源代碼

[復制鏈接]
跳轉到指定樓層
樓主
ID:303389 發表于 2018-4-7 23:15 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
R0
主程序進程調用指針
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
R1
子程序間接尋址寄存器
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
第一組通用寄存器
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
第二組通用寄存器
電壓電流調節子程序使用
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
進程請求
進程掛起
進程活躍
進程
等待
擴展位
擴展位
擴展位
擴展位
備注
20H
07H
進程請求
06H
05H
04H
03H
中斷使能
02H
數據接收丟失標志,1表示丟失,0表示正常
01H
00H
進程00(串口接收數據)
21H
0FH
進程請求
0EH
0DH
0CH
0BH
中斷使能
0AH
數據發送丟失標志,1表示丟失,0表示正常
09H
數據發送超出末尾指針
08H
進程01(串口發送數據)
22H
17H
進程請求
16H
15H
14H
13H
[size=10.5000pt]
12H
11H
10H
進程02(脈動時鐘服務)
23H
1FH
進程請求
1EH
1DH
1CH
1BH
1AH
19H
18H
進程03(命令執行程序)
24H
27H
進程請求
26H
25H
24H
23H
[size=10.5000pt]
22H
21H
20H
進程04(數據平滑濾波進程),由ADC中斷程序置位請求
25H
2FH
進程請求
2EH
2DH
2CH
2BH
系數修正標志位,為1表示需要系數修正計算,為0表示不需要系數修正計算
2AH
調制程序初次運行標志位,為1表示初次運行,為0表示非初次運行
29H
28H
進程05(電壓電流調節進程)
26H
37H
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
30H
06
27H
3FH
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
38H
07
28H
47H
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
40H
08
29H
4FH
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
48H
09
2AH
57H
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
50H
10
2BH
5FH
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
58H
[size=10.5000pt]
2CH
67H
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
60H
[size=10.5000pt]
2DH
6FH
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
68H
[size=10.5000pt]
2EH
77H
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
70H
[size=10.5000pt]
2FH
7FH
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
78H
[size=10.5000pt]
30H
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
31H
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
32H
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
33H
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
34H
目前運行進程序號
[size=10.5000pt]
[size=10.5000pt]
由主程序設定其值,由軟中斷程序使用
35H
1毫秒軟時鐘
軟中斷計數10
[size=10.5000pt]
36H
PCA模塊0寄存器低字節
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
37H
PCA模塊0寄存器高字節
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
38H
脈動時鐘常數低字節
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
39H
脈動時間常數高字節
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
3AH
脈動時鐘中斷程序中R0數據保護地址
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
3BH
命令執行子程序R1數據保護
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
3CH
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
3DH
ADC_CONTR寄存器映射內存單元
[size=10.5000pt]
3EH
[size=10.5000pt]
[size=10.5000pt]
3FH
歷史數據存儲指針
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
串口數據接收
40H
串口接收數據服務子程序R1數據保護地址
[size=10.5000pt]
41H
接收數據塊首地址
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
42H
接收數據塊指針
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
43H
接收數據塊末邊界地址
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
44H
串口接收數據暫存單元
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
45H
數據接收計數器
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
串口數據發送
46H
串口發送數據服務子程序R1數據保護地址
[size=10.5000pt]
47H
發送數據塊首地址
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
48H
發送數據塊指針
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
49H
發送數據塊末地址
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
4AH
串口發送數據暫存單元
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
4BH
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
4CH
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
4DH
調節模式
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
4EH
輸出參考值低字節
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
4FH
輸出參考值高字節
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
PWM脈沖生成
50H
PWM模式設定字符
[size=10.5000pt]
[size=10.5000pt]
取值00H01H02H
51H
模式1單程步進計數
[size=10.5000pt]
0初值
取值00H01H02H03H
52H
第一脈沖定時低字節
[size=10.5000pt]
[size=10.5000pt]
正脈沖+空隙+負脈沖+空隙調制方式
如果開關頻率為40KHz,晶振頻率為33.1776MHz,則一個開關周期的時鐘脈沖為826.9個,半個周期為413個,所以,正負脈沖的寬度固定為413時間常數
53H
第一脈沖定時高字節
[size=10.5000pt]
14條指令
54H
第一間隙定時低字節
[size=10.5000pt]
[size=10.5000pt]
55H
第一間隙定時高字節
[size=10.5000pt]
15條指令
56H
第二脈沖定時低字節
[size=10.5000pt]
[size=10.5000pt]
57H
第二脈沖定時高字節
[size=10.5000pt]
16條指令
58H
第二間隙定時低字節
[size=10.5000pt]
[size=10.5000pt]
59H
第二間隙定時高字節
[size=10.5000pt]
17條指令
5AH
模式2單程步進計數
[size=10.5000pt]
0初值
取值00H01H02H
5BH
第一脈沖定時低字節
[size=10.5000pt]
[size=10.5000pt]
正脈沖+負脈沖+空隙調制方式
5CH
第一脈沖定時高字節
[size=10.5000pt]
15條指令
5DH
第二脈沖定時低字節
[size=10.5000pt]
[size=10.5000pt]
5EH
第二脈沖定時高字節
[size=10.5000pt]
16條指令
5FH
第一間隙定時低字節
[size=10.5000pt]
[size=10.5000pt]
60H
第一間隙定時高字節
[size=10.5000pt]
17條指令
61H
模式3單程步進計數
[size=10.5000pt]
0初值
[size=10.5000pt]
62H
(正脈沖+負脈沖)數
[size=10.5000pt]
取值02H-FFH
(正脈沖+負脈沖)×n+空隙調制方式
63H
(正脈沖+負脈沖)遞減計數
[size=10.5000pt]
[size=10.5000pt]
64H
第一脈沖定時低字節
[size=10.5000pt]
[size=10.5000pt]
65H
第一脈沖定時高字節
[size=10.5000pt]
17條指令
66H
第二脈沖定時低字節
[size=10.5000pt]
[size=10.5000pt]
67H
第二脈沖定時高字節
[size=10.5000pt]
18條指令
68H
第一間隙定時低字節
[size=10.5000pt]
[size=10.5000pt]
69H
第一間隙定時高字節
[size=10.5000pt]
19條指令
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
三字節除以兩字節存儲地址
70H
被除數低字節
[size=10.5000pt]
[size=10.5000pt]
計算結果放入這三個存儲單元
71H
被除數中間字節
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
72H
被除數高字節
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
73H
除數低字節
[size=10.5000pt]
[size=10.5000pt]
電壓系數4.8×2[size=10.5000pt]81228
電流系數4×2[size=10.5000pt]81024
74H
除數高字節
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
80H-BFH
堆棧地址
[size=10.5000pt]
[size=10.5000pt]
[size=10.5000pt]
C0-FFH
[size=10.5000pt]0
進程現場保護數據塊,4個字節為一單元,共16個單元。保護累加器、程序狀態寄存器、程序指針四個字節
C3H
C2H
C1H
C0H
PC0-7
PC8-F
ACC
PSW
SP(+3)
SP(+2)
SP(+1)
SP(0)
PSW
ACC
PC8-F
PC0-7
[size=10.5000pt]1
[size=10.5000pt]
C7H
C6H
C5H
C4H
[size=10.5000pt]2
[size=10.5000pt]
CBH
CAH
C9H
C8H
[size=10.5000pt]3
[size=10.5000pt]
CFH
CEH
CDH
CCH
[size=10.5000pt]4
[size=10.5000pt]
D3H
D2H
D1H
D0H
[size=10.5000pt]5
[size=10.5000pt]
D7H
D6H
D5H
D4H
[size=10.5000pt]6
[size=10.5000pt]
DBH
DAH
D9H
D8H
[size=10.5000pt]7
[size=10.5000pt]
DFH
DEH
DDH
DCH
[size=10.5000pt]8
[size=10.5000pt]
E3H
E2H
E1H
E0H

























分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 分享淘帖 頂 踩
回復

使用道具 舉報

您需要登錄后才可以回帖 登錄 | 立即注冊

本版積分規則

小黑屋|51黑電子論壇 |51黑電子論壇6群 QQ 管理員QQ:125739409;技術交流QQ群281945664

Powered by 單片機教程網

快速回復 返回頂部 返回列表
主站蜘蛛池模板: 精品中文在线 | 7777奇米影视| 国产在线视频在线观看 | 国产精品一区二区在线 | 美女黄频 | 毛片高清| 日本中文字幕在线视频 | 免费在线看黄 | 日韩av成人 | 久久久久无码国产精品一区 | 午夜精品一区二区三区在线观看 | 91一区二区| 色综合久久天天综合网 | 欧美日韩专区 | av天天干| 白浆在线| 伊人色综合久久久天天蜜桃 | 久久精品99国产精品 | 中文字幕 国产精品 | 欧美福利 | 国产盗摄视频 | 毛片网站在线观看视频 | 黄色在线观看国产 | 国产一区二区小视频 | 日韩一区二区三区在线视频 | 国产一区二区三区在线视频 | 一区二区日韩精品 | 一区二区免费高清视频 | 久草免费在线视频 | 欧美日本韩国一区二区三区 | 麻豆精品国产91久久久久久 | 国产一区二区在线免费播放 | 亚洲精品不卡 | 欧美另类视频 | 日韩激情在线 | 亚洲天堂成人在线视频 | 在线播放日韩 | 黄色网络在线观看 | 久久久久久国产免费视网址 | 久草院线| 日韩 欧美 二区 |