;| |
;| N = 100 000/T procesor cycles |
;| N = Fx * 100 000/4 = 25 000 * Fx |
;| |
;| The main steps of measuring period: |
;| |
;| 1. start measurement, |
;| 2. precode decimal value of digit to segments, |
;| 3. if it’s 5th digit set decimal point, |
;| 4. output to PortB, |
;| 5. output digit number to PortA |
;| (numbers from left to right are 6543210), |
;| 6. test TMR0 overflow bite, if YES increase TimerH, |
;| 7. leave digit to light, |
;| 8. increase digit number, |
;| 9. if <7 goto 2, |
;| 10. else zero digit number, decrease counter and goto 2, |
;| 11. stop measurement, |
;| 12. shift out precounter content, |
;| 13. in case of digital scale add/substract RF, |
;| 14. precode 3-byte value into 7 decimal numbers, |
;| 15. goto 1 |
;| |
;|------------------------------------------------------------------------|
;| |
上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] 下一页
本文关键字:暂无联系方式PIC单片机,单片机-工控设备 - PIC单片机