資源簡介
PIC16F887 四相五線步 進電機驅動程序
代碼片段和文件信息
#pragma?config?FOSC?=?XT????????//?Oscillator?Selection?bits?(XT?oscillator:?Crystal/resonator?on?RA6/OSC2/CLKOUT?and?RA7/OSC1/CLKIN)
#pragma?config?WDTE?=?OFF???????//?Watchdog?Timer?Enable?bit?(WDT?disabled?and?can?be?enabled?by?SWDTEN?bit?of?the?WDTCON?register)
#pragma?config?PWRTE?=?OFF??????//?Power-up?Timer?Enable?bit?(PWRT?disabled)
#pragma?config?MCLRE?=?ON???????//?RE3/MCLR?pin?function?select?bit?(RE3/MCLR?pin?function?is?digital?input?MCLR?internally?tied?to?VDD)
#pragma?config?CP?=?OFF?????????//?Code?Protection?bit?(Program?memory?code?protection?is?disabled)
#pragma?config?CPD?=?OFF????????//?Data?Code?Protection?bit?(Data?memory?code?protection?is?disabled)
#pragma?config?BOREN?=?OFF??????//?Brown?Out?Reset?Selection?bits?(BOR?disabled)
#pragma?config?IESO?=?OFF???????//?Internal?External?Switchover?bit?(Internal/External?Switchover?mode?is?disabled)
#pragma?config?FCMEN?=?OFF??????//?Fail-Safe?Clock?Monitor?Enabled?bit?(Fail-Safe?Clock?Monitor?is?disabled)
#pragma?config?LVP?=?OFF???
- 上一篇:組態軟件自動門設計
- 下一篇:基于單片機的聲控小車設計
評論
共有 條評論