Page 79 - 22-0722 EBOOK
P. 79

วารสารราชบััณฑิิตยสภา
                                         ปีีที่่� ๔๖ ฉบัับัที่่� ๓  กัันยายน-ธัันวาคม ๒๕๖๔
             ศาสตราจารย์์กิิตติคุุณ ดร.มงคุล เดชนคุรินทร์                                     69




                Abstract: Serial Data Exchange Between Microcontrollers Using the Keyboard Protocol
                          Professor Dr. Mongkol  Dejnakarintra
                          Fellow of the Academy of Science,
                          The Royal Society of Thailand
                               This article presents a method for serial data exchange between the 8088
                         Micro-controller Board (master board) and the PIC16F627A Microcontroller Board
                         (slave board). The 8-bit data byte is sent one bit at a time consecutively from
                         the sending board. The eight bits are combined at the receiving board to retrieve

                         the original data byte. About hardware, the two microcontroller boards use only
                         two wires for sending/receiving the clock signal and data. The software in this
                         present article follows the keyboard protocol used in the data exchange between
                         a host computer and its keyboard: The master board emulates the scan code
                         processing section of the computer, while the slave board emulates the keyboard
                         and generates the synchronizing clock signal. The procedure in this article has
                         an advantage, namely, using only two signal wires between the microcontroller

                         boards as in the author’s previous article, but has a disadvantage, namely,
                         limitation of the data exchange speed by the frequency of the synchronizing
                         clock signal. From a test in which the two microcontroller boards were placed
                         not farther than one foot apart, it was found that the data reaching the
                         destination board were correctly received, being the same as those having
                         been sent from the source board.

                         Keywords: microcontroller, serial data, interrupt, integrated circuit, 8088, 8255,
                                   8259, PIC16F627A



             บทนำา

                     บทความนี้้�เป็นี้ผลจากการปรับปรุงระบบแลกเปล้�ยนี้ข้้อมูลอนีุ้กรมแบบท้�ใช้้สายสัญญาณ
             ๔ เส้นี้ ระหว่างแผงวงจรไมโครคอนี้โทรลเลอร์ 8088 (แผงวงจรตััวหลัก) กับแผงวงจรไมโคร

             คอนี้โทรลเลอร์ PIC16F627A (แผงวงจรตััวรอง)  ซ่�งได้นี้ำาเสนี้อไปก่อนี้หนี้้านี้้� (มงคล เดช้นี้ครินี้ทร์, ๒๕๖๒)
             โดยม้จุดประสงค์เพิ่�อลดจำานี้วนี้สายสัญญาณระหว่างแผงวงจรทั�งสองให้เหล่อเพิ้ยง ๒ เส้นี้  ทำานี้องเด้ยวกับ

             ท้�ทำาในี้บทความท้�นี้ำาเสนี้อตั่อมา (มงคล เดช้นี้ครินี้ทร์, ๒๕๖๔)  การปรับปรุงดังกล่าวม้ทั�งด้านี้ฮาร์ดแวร์
   74   75   76   77   78   79   80   81   82   83   84