1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76
|
DIO48 Base address 1: 0xc100
/* BADR1: These are 8 8-Bit Word Registers */
#define DIO_PORT0A (base1) /* Port A 8 bit I/O of 8255 */
#define DIO_PORT0B (base1+1) /* Port B 8 bit I/O of 8255 */
#define DIO_PORT0C (base1+2) /* Port C 4+4 bit of 8255 */
#define DIO_CNTRL_REG_0 (base1+3) /* Mode and Direction Control Register */
#define DIO_PORT1A (base1+4) /* Port A 8 bit I/O of 8255 */
#define DIO_PORT1B (base1+5) /* Port B 8 bit I/O of 8255 */
#define DIO_PORT1C (base1+6) /* Port C 4+4 bit of 8255 */
#define DIO_CNTRL_REG_1 (base1+7) /* Mode and Direction Control Register */
7 segment display:
--- 0 ---
| |
| |
5 1
| |
| |
--- 6 ---
| |
| |
4 2
| |
| |
--- 3 ---
* Mapping of dio48 signals to elements of elevator:
*
* port pin# dir function
*
* 0A 00 in 7-segment-display a
* 01 in 7-segment-display b
* 02 in 7-segment-display c
* 03 in 7-segment-display d
* 04 in 7-segment-display e
* 05 in 7-segment-display f
* 06 in 7-segment-display g
* 07 in big down arrow
*
* 0B 08 in big up arrow
* 09 in led of floor button 'E' (= 0)
* 10 in led of floor button '1'
* 11 in led of floor button '2'
* 12 in up arrow of call button on floor 0
* 13 in down arrow of call button on floor 1
* 14 in up arrow of call button on floor 1
* 15 in down arrow of call button on floor 2
*
* 0C 16 in motor on/off
* 17 in direction down/up
* 18 in open/close control of door on floor 0
* 19 in open/close control of door on floor 1
* 20 in open/close control of door on floor 2
* 21 (unused)
* 22 (unused)
* 23 (unused)
*
* 1A 24 out floor button 'E' (= 0)
* 25 out floor button '1'
* 26 out floor button '2'
* 27 out up call button on floor 0
* 28 out down call button on floor 1
* 29 out up call button on floor 1
* 30 out down call button on floor 2
* 31 out cabin position sensor floor 0
*
* 1B 32 out cabin position sensor floor 1
* 33 out cabin position sensor floor 2
* 34 out door open sensor floor 0
* 35 out door open sensor floor 1
* 36 out door open sensor floor 2
* 37 (unused)
* 38 (unused)
* 39 (unused)
|