06年上大学的时候编的PIC16F630读取SP12温度压力传感器汇编程序,估计还能用,拿来分享,原创很辛苦^_^不要说我太黑啊 我赚点分也不容易啊 list p=16f630 ; list directive to define processor #include ; processor specific variable definitions errorlevel -302 ; suppress message 302 from list file #define MEASURE_P
部分代码 main() { // 2. init Timer 1, T1ON, 1:1 prescaler, internal clock source _T1IP = 4; // this is the default value anyway TMR1 = 0; // clear the timer PR1 = 32768-1; // set the period register TRISA = 0xff00; // set PORTA lsb as output