"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"

- Chatchaval -

" A MAN OF FEW WORDS "

" Who makes no mistakes does not usually make anything. "

A map of the on-chip memory area called SFR (Special Funtion Register) space is shown in figure. Note that not all of the addresses are occupied. Unoccupied are not implemented on the chip. Read accesses to these addresses will in general return random data, and write accesses will have an indeterminate effect.

พื้นที่หน่วยความจำตั้งแต่ Address 80h – FFh เป็นบริเวรของหน่วยความจำที่มีการใช้งานเฉพาะของ MCS51 เท่านั้น โดยจะถูกนำมาใช้เป็นตำแหน่งของ Special Function Register หรือ SFR จำนวนตั้งแต่ 20 – 32 ตำแหน่ง (ขึ้นอยู่กับเบอร์ปลีกย่อยของ MCS51) ดังที่แสดงในตารางเป็นของ AT89C55WD และสำหรับ MCS51 บางเบอร์จะมีหน่วยความจำข้อมูลภายในสำหรับใช้งานเพิ่มมากขึ้นกว่าเบอร์อื่นๆ เช่น 8031 หรือ 8751 อีก 128 Byte โดยจะอยู่บริเวณช่วง Address 80h – FFh เช่นกัน ซึ่งถึงแม้ว่าจะมีตำแหน่ง Address เดียวกันกับส่วนของ SFR แต่ในความเป็นจริงแล้วจะเป็นพื้นที่หน่วยความจำอีกส่วนหนึ่งซึ่งมีการ Overlap กันให้อยู่ในบริเวณ Address ส่วนนี้ ซึ่งหากต้องการใช้งานพื้นที่ส่วนนี้ก็ทำได้ด้วยการอ้างถึงหน่วยความจำแบบ Indirect Addressing 



Related articles

MCU Board IC Layout

C:\ MCU IC Layout

รายละเอียดทาง Hardware ของบอร์ดจะจำแนกเป็นส่วนๆ เพื่อให้ทราบถึงแนวทางการเขียนโปรแกรมเพื่อประยุกต์ใช้งาน ในที่นี้จะให้รายละเอียดแบบภาพรวมดังต่อไปนี้

Read More

Get in Touch !