"Skills, Knowledge, Abilities, and Experiences

are only useful....

If you are at the right place "

"Try listening to music from the Thai Symphony Orchestra, you may like it"

C:\ 3-Line to 8-Line Decoder

3-line to 8-line decoder/demultiplexer

The 74LS138 is a semiconductor intrgrated circuit consisting of a 3-bit binary-octal decoder/demultiplexer with enable inputs. ผมเริ่มรู้จัก IC ตัวนี้ตั้งแต่สมัยเรียน ปวช. (1984-1986) สมัยนั้นจะมีวิชา Digital ซึ่งโดยพื้นฐานคนที่เรียนสาขาอิเล็กทรอนิกส์ จะต้องรู้จัก IC Logic Gate พื้นฐาน เช่น 74LS00 (Nand Gate), 74LS02 (Nor Gate), 74LS04 (Hex Inverters), 74LS08 (And Gate) และ IC Flip-Flop พื้นฐานต่างๆ ส่วน IC 74LS138 นี้เป็น IC ซึ่งทำหน้าที่ Decoder/Demultiplexer ซึ่งไม่ได้ถูกนำมาสอนการใช้งานในโรงเรียน แต่ถ้าคนที่ชอบอ่านหนังสือวารสาร […]

C:\ BCD-to-Decimal Decoders/Drivers

BCD to Decimal Decoders/Drivers

74LS145, This BCD-to-Decimal decoder/driver consists of eight inverters and ten four-input NAND gates. The inverters are connected in pairs to make BCD input data available for decoding by the NAND gates. IC เบอร์นี้มักถูกนำไปใช้ในบอร์ด Single-Board  สมัยก่อนที่ใช้ CPU Z80 หรือ MCS51 มันถูกใช้เพื่อทำหน้าที่สแกน Keyboard และ 7-Segment ปัจจุบันคงไม่มีใช้แล้ว เพราะ Single-Board ในปัจจุบันได้ถูกพัฒนาไปให้การติดต่อผ่านทาง PC หมดแล้ว และถ้าผมจำไม่ผิดสมัยผมทำงานเป็นช่างซ่อมแผงวงจรในโรงงานผลิตเครื่องรับโทรศัพท์และตู้ PABX ของ LG (ปกติผลิตภัณฑ์ของ LG […]

C:\ Direct & Indirect Address

MCS51 Direct & Indirect Address

The 128 Bytes of RAM which can be accessed by both direct and indirect addressing can be divided into 3 segments as shown in picture. หน่วยความจำข้อมูลภายในของ MCS51 มีด้วยกันทั้งหมด 256 ไบต์ โดยแบ่งออกเป็นสองลักษณะ คือ พื้นที่เฉพาะสำหรับตัวประมวลผล CPU ใช้งานเท่านั้นซึ่งเรามักเรียกว่า Register และพื้นที่ใช้งานทั่วไปสำหรับโปรแกรมใช้งานที่ผู้ใช้สร้างขึ้น จากรูป (รูปแรก) แสดงพื้นที่ของหน่วยความจำข้อมูลภายใน 128 ไบต์แรกของ MCS51 ซึ่งมีแอดเดรสอยู่ในช่วง 00h – 7Fh ซึ่งยังแบ่งย่อยออกได้อีกเป็นสามส่วนตามประเภทการใช้งาน บริเวณแอดเดรส 00h – 1Fh จำนวน 32 ไบต์ […]

C:\ MCU IC Layout

MCU Board IC Layout

รายละเอียดทาง Hardware ของบอร์ดจะจำแนกเป็นส่วนๆ เพื่อให้ทราบถึงแนวทางการเขียนโปรแกรมเพื่อประยุกต์ใช้งาน ในที่นี้จะให้รายละเอียดแบบภาพรวมดังต่อไปนี้ External Memory คือหน่วยความจำภายนอกซึ่งมีอยู่ 2 Socket ตัวแรกใช้ชิพเบอร์ 6264 ขนาด 8K Byte (28Pin) ตำแหน่ง 8000h-9000h โดยเป็นตำแหน่งที่จัดวงจรให้ผสมระหว่าง Program และ Data Memory เข้าด้วยกัน ถ้าเป็นภาษา Assembly ก็คือคำสั่ง movc และ movx จะมองที่หน่วยความจำเดียวกัน การจัดวงจรแบบนี้ทำให้ผู้ใช้สามารถแก้ไขข้อมูลหรือโปรแกรมในหน่วยความจำได้ ขณะเดียวกันก็สั่งให้ทำงาน (Run) ได้ด้วย เหมาะสำหรับการพัฒนาในภาษา Assembly

C:\ Address Multiplexer

MCU Address Multiplexer

IC 74LS138 ทำหน้าที่ DECODE (MULTIPLEX) สัญญานจากขา Address จาก MCU เพื่อนำไปใช้กับอุปกรณ์ต่างๆ บนบอร์ดดังนี้ ; External Memory (Address 8000h-9FFFh) ซึ่งเป็นหน่วยความจำภายนอกที่มีให้ 2 Socket ตัวแรกใสชิพเบอร์ 6264 ขนาด 8K Byte ไว้ (28 Pin) โดยเป็นตำแหน่งที่จัดวงจรให้ผสมผสานระหว่าง Program และ Data Memory เข้าด้วยกัน

C:\ 8255 PORT

8255 PIO Port

8255 มีพอร์ตขนาด 8 บิตให้ใช้จำนวน 3 Port จาก Diagram มีการออกแบบให้พอร์ตทั้ง 3 ถูกใช้งานดังนี้ 1) DIp Switch จำนวน 4 ตัว ที่ต่ออยู่กับ 8255 I/O สำหรับประยุกต์ใช้งานกับโปรแกรมที่ต้องมีการตั้งค่าใดๆ การตั้งค่า Dip=On จะอ่านค่าได้เป็น 0 ส่วนการตั้งค่า Dip=Off จะอ่านค่าได้เป็น 1 สรุปเป็น I/O ได้ดังนี้ Dip-1 = 8255 PB4 Dip-2 = 8255 PB5 Dip-3 = 8255 PB6 Dip-4 = 8255 PB7 2) 4×8 Port (16 Pin) : คือขั้วต่อสำหรับขยาย […]

C:\ SLAB-51

SLAB Board Connector Config.

เป็นผังการวางตำแหน่ง Connector ต่างๆ ของบอร์ดทดลอง MCS-51 ของบริษัท ศิลารีเสร์ช ที่ซื้อมาเล่นกว่า 20 ปีมาแล้ว และยังใช้งานได้ดี

C:\ 8255 I/O

8255 I/O

The 8255 is a general purpose programmable I/O device designed for use with microprocessors. It has 24 I/O pins which may be individually programmed in 2 groups of 12 and used in 3 major modes of operation. In the first mode (MODE 0), each groups of 12 I/O pins may be programed in sets of […]

C:\ Z80 PIO

Z80 PIO

The Z80 PIO is a general purpose parallel input/output port device with two programmable independent 8-bit ports, which provides a direct interface between the Z80 microprocessor and peripheral devices. This PIO provides excellent data transfer processing by the interrupt and allows the interrupt in mode 2 of MPU.

C:\ 2545 Keypad

2545 Keypad

จะเล่าเรื่อง Kaypad ของโทรศัพท์ แต่ยังนึกไม่ออกว่าจะเล่าอะไร ดูรูปเล่นไปก่อนนะครับ