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

Tham khảo sách 'học pic từ cơ bản-1', 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 1 Basic Digital I O Although assembler is a common choice when programming small microcontrollers it is less appropriate for complex applications on larger MCUs it can become unwieldy and difficult to maintain as programs grow longer. A number of higher-level languages are used in embedded systems development including BASIC Forth and even Pascal. But the most commonly used high level language is C. C is often considered to be inappropriate for very small MCUs such as the baseline PICs we have examined in the baseline assembler tutorial series because they have limited resources and their architecture is not well suited to C code. However as this lesson demonstrates it is quite possible to use C for simple programs on baseline PICs. Nevertheless it is true that C is less suited to implementing more complex applications where we need to get the most out of these small devices as we will see in later lessons. This lesson introduces the free compilers from HI-TECH Software and Custom Computer Services CCS bundled with MPLAB both of which fully support all current baseline PICs. As we ll see the HI-TECH and CCS compilers take quite different approaches to many implementation tasks. Most other PIC C compilers take a similar approach to one or the other or fall somewhere in between making these compilers a good choice for an introduction to programming PICs in C. This lesson covers basic digital I O flashing LEDs responding to and debouncing switches as covered in lessons 1 to 4 of the baseline assembler tutorial series. You may need to refer to those lessons while working through this one. In summary this lesson covers Introduction to the HI-TECH PICC-Lite HI-TECH C and CCS PCB compilers Digital input and output Programmed delays Switch debouncing Using internal weak pull-ups with examples for all three compilers .

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.