EasyManua.ls Logo

ZiLOG Z80

ZiLOG Z80
34 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
27
Address Selection
Themodule’s address canbe set to anyaddress thatis a multiple of 4, suchas
address 0, 4,8, 12, 16, , 252. This address is known asthe base address, withthe
moduleoccupying thisaddress plus the nextthreeaddresses. Thus if the base
address is 0, then the module occupies the address range 0 to 3.
Theaddress is set with the 6 wayDIP switchSW1.
Thesix address switches, 1 to 6, represent addresses 128, 64, 32, 16, 8 and 4
respectively.Thebase address isthe sumof allthe switches in theOffposition.For a
pianostyle DIPswitch, as illustratedbelow, Upis Off andDownis On.
Inthe illustration below theswitches are:
Up Down Down Down Up Down
Thisrepresentsthe address:
128 + 0 + 0 + 0 + 8 + 0
= 128 + 8
= 136 (or 0x88in hexadecimal).
Inorder to provide somecertaintyfor software itis strongly recommendedyou set
the base addressof your first PIOmoduleto 0x68. Ifyou havea secondPIO module
the recommendedbase address is 0x6C. Ifeverybodyfollowsthis recommendation
thensoftware writtenforthe PIOmodulewill knowwhereto find thehardware.

Other manuals for ZiLOG Z80

Related product manuals