The Advanced User Guide for the Acorn Electron


Cassette motor control, bit 6



Download 1.6 Mb.
Page16/20
Date29.01.2017
Size1.6 Mb.
#12471
1   ...   12   13   14   15   16   17   18   19   20

Cassette motor control, bit 6

Setting this bit to ‘1’ will turn the cassette motor on. Setting it to ‘0’ will turn the motor off. Motor control is effected by a small relay contact inside the Electron. It is possible to use this to switch small battery operated equipment on and off (for example a transistor radio).



CAPS LOCK LED control, bit 7

Setting this bit to a ‘1’ turns on the CAPS LOCK LED on the side of the keyboard. A ‘0’ turns it off again.


SHEILA &FE08 to &FE0F - the colour palette
These addresses in the ULA define the mapping between the

logical colours which are provided by programs and the physical colours which are displayed on the screen.
For example, in the two colour mode, logical colour 1 will actually produce a colour defined by &FE08 bit 6 (blue), &FE08 bit 2 (green) and &FE09 bit 2 (red). The bits are negative logic, which means that a ‘1’ in bit 6 of &FE08 will ensure that blue is turned off for colour 1.
The cursor and flashing colours are entirely generated in software: This means that all of the logical to physical colour map must be changed to cause colours to flash.








D7

D6

D5

D4

D3

D2

D1

D0

&FE08




X

B1

X

B0

X

G1

X

X































&FE09




X

X

X

G0

X

R1

X

R0

Figure 14.7a – 2 colour mode palette









D7

D6

D5

D4

D3

D2

D1

D0

&FE08




B3

B2

B1

B0

G3

G2

X

X































&FE09




X

X

G1

G0

R3

R2

R1

R0

Figure 14.7b - 4 colour mode palette









D7

D6

D5

D4

D3

D2

D1

D0

&FE08




B10

B8

B2

B0

G10

G8

X

X































&FE09




X

X

G2

G0

R10

R8

R2

R0
}Colours 0,2,8,10









D7

D6

D5

D4

D3

D2

D1

D0

&FE08




B14

B12

B6

B4

G14

G12

X

X































&FE09




X

X

G6

G4

R14

R12

R6

R4
}Colours 4,6,12,14









D7

D6

D5

D4

D3

D2

D1

D0

&FE08




B15

B13

B7

B5

G15

G13

X

X































&FE09




X

X

G7

G5

R15

R13

R7

R5
}Colours 5,7,13,15









D7

D6

D5

D4

D3

D2

D1

D0

&FE08




B11

B9

B3

B1

G11

G9

X

X































&FE09




X

X

G3

G1

R11

R9

R3

R1
}Colours 1,3,9,11

Figure 14.7c - 16 colour mode palette



14.2 The keyboard
The keyboard is mapped to ROM numbers 8 or 9, and may be read directly by accessing memory locations within either ROM corresponding to particular keys. This is useful as a technique for speeding up the machine, as it allows normal keyboard scanning by the OS to be disabled using OSBYTE &B2 (178).
See section 15.4 on how to select paged ROMs.
The following table lists the relevant memory locations and the bits within each location which represent the keys.


Column

Address

Bit 0

Bit 1

Bit 2

Bit 3

0

&BFFE

Right

Copy

NC

Space

1

&BFFD

Left

Down

Return

Delete

2

&BFFB

-

Up

:

NC

3

&BFF7

0

P

;

/

4

&BFEF

9

O

L

.

5

&BFDF

8

I

K

,

6

&BFBF

7

U

J

M

7

&BF7F

6

Y

H

N

8

&BEFF

5

T

G

B

9

&BDFF

4

R

F

V

A

&BBFF

3

E

D

C

B

&B7FF

2

W

S

X

C

&AFFF

1

Q

A

Z

D

&9FFF

Escape

Caps Lk

Ctrl

Shift

NC=No Connection


15 Outside the Electron
15.1 Introduction to expanding the Electron
This chapter is intended for those who want to add their own bits of hardware onto the Electron. There are several reasons for doing this. The most common one is to allow the Electron to access facilities provided for the BBC Micro. All of the common interfaces such as discs, printer port, analogue to digital converter, speech chip, paged ROMs etc. can easily be added onto the Electron. If care is taken with the design, these products will operate in an almost identical manner to those on the BBC Micro. Several interface add-ons can already be purchased from Acorn.
If the only point in adding hardware onto the Electron were to make it totally BBC Micro compatible, there would have been little point in buying the Electron in the first place. In fact, the Electron has more potential for expansion than a BBC Micro. Why? Because all necessary system buses come out on the expansion connector. This ability to access all of the buses means that the devices which can be added onto the Electron are limited only by the imagination (and maximum allowable loading of the buses).
Appendix G provides a summary of the expansion devices available for the Electron, grouped by generic type.
15.2 The Expansion Connector
All required signals from the Electron are present on this connector. In order to make use of them, a basic knowledge of interfacing to the 6502 will be required. Such a knowledge can be acquired by reading some of the popular electronics magazines and specialised books on interfacing. The aim in this book is to explain all of the details to those who have already read enough about microcomputer hardware in general, and now want to know about the Electron in particular.


Bottom










Top
















18V AC

2




1

18V AC

AC RETURN

4




3

AC RETURN

-5V

6




5

-5V

0V

8




7

0V

+5V

10




9

+5V

16MHz

12




11

SOUND O/P

PHI OUT

14




13

÷ 13 IN

NMI

16




15

RST

R/W

18




17

IRQ

D6

20




19

D7

D4

22




21

D5

D2

24




23

D3

DO

26




25

D1

NC

28




27

RDY

SLOT

30




29

SLOT

A14

32




31

A15

A12

34




33

A13

A10

36




35

A11

A0

38




37

A9

A2

40




39

A1

A4

42




41

A3

A6

44




43

A5

A8

46




45

A7

0V

48




47

0V

+5V

50




49

+5V

Figure 15.1 - Expansion connector layout



Download 1.6 Mb.

Share with your friends:
1   ...   12   13   14   15   16   17   18   19   20




The database is protected by copyright ©ininet.org 2024
send message

    Main page