tailieunhanh - PROGRAMMING AND CUSTOMIZING THE PIC MICROCONTROLLER 3rd phần 7

Sách là tổ chứcĐể vấn đề phức tạp hơn nữa, bạn có thể muốn tăng một biến và gán kết quả cho một biến thứ hai:Lập trình C #, 2nd Edition myAge + +; tiền tố và hậu tố các nhà khai thác sẽ chỉ định đầu tiên, và sau đó tăng (firstValue = 10, secondValue = 11). Bạn cũng có thể viết: | Simpo PDF Merge and Split Unregistered Version - http outp BaseAddr 2 inp BaseAddr 2 0X0FB End PPortHiInit PPortLoInit Int BaseAddr Set Init Pin 16 to an Electrical low outp BaseAddr 2 inp BaseAddr 2 0x004 End PPortLoInit PPortHiAuto Int BaseAddr Set Auto FDXT Pin 14 to an Electrical High outp BaseAddr 2 inp BaseAddr 2 0X0FD End PPortHiAuto PPortLoAuto Int BaseAddr Set Auto FDXT Pin 14 to an Electrical low outp BaseAddr 2 inp BaseAddr 2 0x002 End PPortLoAuto PPortHiStrobe Int BaseAddr Set Strobe Pin 1 to an Electrical High outp BaseAddr 2 inp BaseAddr 2 0X0FE End PPortHiStrobe PPortLoStrobe Int BaseAddr Set Strobe Pin 1 to an Electrical low outp BaseAddr 2 inp BaseAddr 2 0x001 End PPortLoStrobe In status bit read routines note that I have not included reads for bits that are driven in from the port. I assume that the control register latches are good and that the device connected to the port is not holding it high or low. Also for the status bit read routines the result returned is either 0 or 1 and inverted if appropriate. Simpo PDFCMerge andRSplit Unregistered Version - http PPortRdBusy Int BaseAddr return 1 A inp BaseAddr 1 End PPortRdBusy PPortRdError Int BaseAddr return 1 A inp BaseAddr 1 End PPortRdBusy PPortRdSLCTO Int BaseAddr return 1 A inp BaseAddr 1 End PPortRdSLCTO Read the Busy Pin 11 handshaking line 0x080 7 Read the Printer Error Pin 12 handshaking line 0x020 5 Read the SLCT Out Pin 13 handshaking line 0x010 4 PPortRdAck Int BaseAddr Read the Ack Pin 10 handshaking line return inp BaseAddr 1 0x008 3 End PPortRdAck With these routines external digital hardware can be controlled by the 4 output bits driven to the parallel port and data is either read from or written to and an additional 4r input pins are available. Earlier in this chapter I went on at length about the modern operating systems and development tools you cannot access individual registers which means that these functions cannot be implemented in a .

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