TAILIEUCHUNG - McGraw.Hill PIC Robotics A Beginners Guide to Robotics Projects Using the PIC Micro eBook-LiB Part 4

Tham khảo tài liệu ' pic robotics a beginners guide to robotics projects using the pic micro ebook-lib part 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ả | Using DOS to Code Compile and Program 47 Figure Select in Open File message box and hit the OK button. dow on the left see Fig. . This is the machine code of your program. On the right-hand side of the screen are configuration switches that we need to check before we program the PIC chip. Let s go through the configuration switches once more. Device Sets the device type. Set it for 8X. Memory Size K Sets memory size. Choose 1. OSC Sets oscillator type. Choose XT for crystal. Watchdog Timer Choose On. Code Protect Choose Off. Power Up Timer Enable Choose On. After the configuration switches are set insert the PIC 16F84 microcontroller into the socket. Click on Program or press ALT-P on the keyboard to begin programming. The EPIC program first looks at the microcontroller chip to see if it is blank. If the chip is blank the EPIC program installs your program into the microcontroller. If the microcontroller is not blank you are given the options to cancel the operation or overwrite the existing program with the new program. If there is an existing program in the PIC chip s memory write over it. 48 Chapter Five Figure Hexadecimal numbers showing in EPIC window are the machine language version of the program that is uploaded programmed into the 16F84 microcontroller. I have noticed that when I place a brand new PICmicro 16F84 chip into the EPIC compiler to program EPIC always reports existing code on the chip. I don t know if Microchip Technology Inc. loads numbers into the chip s memory for testing purposes. Don t let it throw you the PICmicro chip is new. The machine language code lines are highlighted as the EPIC software uploads the program into the PICmicro chip. When it is finished the microcontroller is programmed and ready to run. You can verify the program if you like by hitting or highlighting the Verify button. This initiates a comparison of the program held in memory to the program stored in the PIC microcontroller. Chapter 6

TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã 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.