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

Tham khảo tài liệu ' pic robotics a beginners guide to robotics projects using the pic micro ebook-lib part 2', 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ả | Robot Intelligence 7 If you don t want to use CodeDesigner program text files may be written using any word processor as long as it is able to save its text file as ASCII or DOS text. If you don t own a commercial word processor you can use Windows Notepad which is included with Windows 95 and 98. If you work at the DOS level you can use the Edit program to write text files. When you save the text file save it with a .bas suffix. For example if you were saving a program named wink save it as . Step 2 Using the Compiler Once set up the CodeDesigner software will call and control the compiler and programmer software. The compiler may be run manually from a DOS window. To run the compiler program manually enter the command pbc followed by the number of the PIC chip being programmed that is 16F84 then followed by the name of the source code text file. For the PicBasic Pro compiler program the command starts with pbp instead of pbc followed by the name of the source code text file. For example for the PicBasic compiler if the source code text file we created is named wink then at the DOS command prompt enter pbc -p16f84 For the PicBasic Pro compiler the command line would be pbp -p16f84 The compiler reads the text file and compiles two additional files an .asm assembly language and a .hex hexadecimal file. The file is the assembly language equivalent to the Basic program. The file is the machine code of the program written in hexadecimal numbers. It is the .hex file that is uploaded into the PIC chip. If the compiler encounters errors when compiling the PicBasic source code it will issue a list of errors it has found and will terminate. The errors listed need to be corrected in the source code text file before it will successfully compile. Step 3 Installing the Firmware or Programming the PIC Chip Connect the EPIC programming board to the computer s printer port via a DB25 cable. If you are using CodeDesigner launch the .

TỪ KHÓA LIÊN QUAN
Đã 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.