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

Tham khảo sách 'học pic từ cơ bản-4', 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 2009 Introduction to PIC Programming Programming Baseline PICs in C by DavidMeiklejohn Gooligum Electronics Lesson 4 Driving 7-Segment Displays We saw in baseline lesson 8 how to drive 7-segment LED displays using lookup-tables and multiplexing techniques implemented in assembly language. This lesson shows how C can be used to apply those techniques to drive multiple 7-segment displays using the free HI-TECH C1 in Lite mode PICC-Lite and CCS PCB compilers to re-implement the examples. In summary this lesson covers Using lookup tables to drive a single 7-segment display Using multiplexing to drive multiple displays Lookup Tables and 7-Segment Displays To demonstrate how to drive a single 7-segment display we will use the circuit from baseline lesson 8 shown on the right. It uses a 16F505 which as was explained in that lesson is a 14-pin variant of the 12F509 used in the earlier lessons. It provides two 6-pin ports PORTB and PORTC. A common-cathode 7-segment LED module is used here. Most will have a different pin-out to that shown but are all connected to the PIC in the same way. Each 5U segment is driven via a 330 Q resistor directly from one of the output pins. The whole of PORTC is used plus RB2 from PORTB. The common-cathode connection is grounded. If a common-anode module is used instead the anode connection is connected to VDD and the pins become active-low cleared to zero to make the connected segment light - you would need to make appropriate changes to the examples below. 1 PICC-Lite was bundled with versions of MPLAB up to . HI-TECH C earlier known as HI-TECH C PRO was bundled with MPLAB and later although you should download the latest version from . Baseline PIC C Lesson 4 Driving 7-segment Displays Page 1 Gooligum Electronics 2009 As we saw in baseline lesson 8 lookup tables on baseline PICs are normally implemented as a computed jump into a sequence of retlw .

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.