TAILIEUCHUNG - Học PIC từ cơ bản-3

Tham khảo sách 'học pic từ cơ bản-3', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Gooligum Electronics 2008 Introduction to PIC Programming Programming Baseline PICs in C by DavidMeiklejohn Gooligum Electronics Lesson 3 Sleep Mode and the Watchdog Timer Continuing the series on C programming this lesson revisits material from baseline lesson 7 which examined the baseline PIC architecture s power-saving sleep mode its ability to wake from sleep when an input changes and the watchdog timer - generally used to automatically restart a crashed program but also useful for periodically waking the PIC from sleep for low-power operation. As before selected examples from that lesson are re-implemented using the free C compilers bundled with Microchip s MPLAB HITECH C1 in Lite mode PICC-Lite and CCS PCB which were introduced in lesson 1. Baseline lesson 7 also described the various clock or oscillator configurations available for the PIC12F508 509 - a topic which does not really need a separate treatment for C since the programming techniques needed to implement the examples from that lesson have already been covered in lessons 1 and 2. Only the PIC configuration is different so this lesson includes a table listing the corresponding configuration word settings between MPASM HI-TECH C and CCS PCB. In summary this lesson covers Sleep mode power down Wake-up on change power up on input change The watchdog timer Periodic wake from sleep Configuration word settings with examples for HI-TECH C PICC-Lite and CCS PCB. Circuit Diagram The examples in this lesson use the circuit shown on the right consisting of a PIC12F509 and 100 nF bypass capacitor with LEDs on GP1 and GP2 and a pushbutton switch on GP3. Baseline lessons 1 4 and 5 showed how this circuit could be implemented using Microchip s LPC Demo Board. However if you want to be able to measure the current consumption to see how it is reduced when the PIC is placed into sleep mode you will need to either power the demo board independently from the PICkit 10k 1 PICC-Lite was bundled with .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.