|
請多多指教
單片機源程序如下:
- #include <reg52.h>
- #include <absacc.h>
- #define uint unsigned int
- #define uchar unsigned char
- #define DAC0832 XBYTE[0xfffe]
- void DelayMS(uint ms)
- {
- uchar i;
- while(ms--)
- {
- for(i=0;i<120;i++);
- }
- }
- void main()
- {
- uchar i;
- while(1)
- {
- for(i=0;i<256;i++)
- DAC0832 = i;
- DelayMS(1);
- }
- }
復(fù)制代碼
所有資料51hei提供下載:
第十二周作業(yè).zip
(21.11 KB, 下載次數(shù): 14)
2020-6-10 15:13 上傳
點擊文件名下載附件
include&#160;.docx
(11.2 KB, 下載次數(shù): 5)
2020-6-10 15:13 上傳
點擊文件名下載附件
|
評分
-
查看全部評分
|