Đang chuẩn bị liên kết để tải về tài liệu:
Interfacing PIC Microcontrollers 17

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

Interfacing PIC Microcontrollers 17. Explore in detail microcontroller interfacing techniques using the popular PIC 16F877 Work through step-by-step examples interactively using circuit simulation software, supplied as assembly source code Gain the knowledge of a wide range of peripheral devices such as keyboards, displays, sensors and drives and serial communication with other processors, memory and more Use interactive simulation software to design and test circuits. | Interfacing PIC Microcontrollers ADC8 Convert the analogue input to 8-bits and display Hardware P16F877 4MHz Vref 2.56 16x2 LCD Initialise PortA Analogue inputs default PortC LCD outputs ADC Select f 8 RA0 input left justify result enable LCD default setup include LCD driver routines Main REPEAT Get ADC 8-bit input Convert to BCD Display on LCD ALWAYS Subroutines Get ADC 8-bit input Start ADC and wait for done Store result Convert to BCD Calculate hundreds digit Calculate tens digit Remainder ones digit Display on LCD Home cursor Convert BCD to ASCII Send hundreds point tens ones Send Volts Include LCD routines Figure 7.3 ADC test program outline The data acquisition process is similar to the 8-bit system above but the binary to BCD conversion process is rather more complicated. The result is required in the range 0-4095 so the original result 0-1023 is shifted left twice to multiply it by four. One thousand 03E8 is then loop subtracted from the result to calculate the number of thousands in the number. Correct borrow handling between the high and low byte is particularly important. The process stops when the remainder is less that 1000. The hundreds digit is calculated in a similar way but the tens calculation is a little easier as the maximum remainder from the previous stage is 99 so the high byte borrow handling is not necessary. This process is outlined in Figure 7.5 and the source code shown in Program 7.2. 146 Analogue Interfacing IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII Proj ect Interfacing PICs Source File Name VINTEST.ASM Devised by MPB Date 19 -12-05 Status Fi nal version IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII i I Demonstrates simple analogue input I using an external reference voltage of 2.56V I The 8-bit result is converted to BCD for display I as a voltage using the standard LCD routines. IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII PROCESSOR 16F877 I Clock XT

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.