parallel - Furthest From DIP Switches Yellow Red Bit 3 1 2...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
G D4 4 Y D3 3 DIP Switches 7-Segment Display LEDs R D2 2 G D1 1 * * * * * denotes color: G - green R - red Y - yellow ON a g d b f c e CSE 380 Parallel Communications with the ARM Processor Parallel I/O Parallel I/O on the ARM Board Seven Segment Display Four DIP Switches Four LEDs Parallel I/O Port Mode Register (IOPMOD) Address 0x3FF5000 Function Controls direction of I/O lines Output 1 Input 0 Proper Configuration for ARM Board 0x1FCF0 Parallel I/O Port Data Register (IOPDATA) Address 0x3FF5008 Configuration Parallel I/O Port Mode Register (IOPMOD) Store 0x1FCF0 Either Read from DIP Switches Load from Parallel I/O Port Data Register (IOPDATA) Write to LEDs or Seven Segment Display Store to Parallel I/O Port Data Register (IOPDATA) 0 17 18 Unused 31 Port Modes 0 17 18 Unused 31 Port Read/Write Data
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Seven Segment Display On 1 Off 0 I/O Port Data Register LEDs Four LEDs Green Yellow Red Green I/O Port Data Register DIP Switches Numbered 1 through 4 I/O Port Data Register a g d b f c e Bit 13 10 14 11 15 12 16 Segment d a e b g c f Bit LED 7 1 4 4 * * 5 3 6 2 LED Green Green
Background image of page 2
Background image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Furthest From DIP Switches Yellow Red Bit 3 1 2 Switch 4 1 2 3 Displaying Digits on the Seven Segment Display Use Lookup Table digits DCD 0x00017C00 ; 0 DCD 0x00001800 ; 1 . . . DCD 0x0001BC00 ; 9 Lookup Pattern & Display Digit in r0 LDR r1, =0x3FF5000 ; Base address LDR r3, =digits MOV r0, r0, LSL #2 ; Each stored value is 32 bits LDR r2, [r3, r0] ; Load pattern for digit in r0 STR r2, [r1, #8] ; Display (8 = offset to IOPDATA) References ARM Developer Suite Version 1.0 Getting Started , ARM Limited, 1999 Steve Furber, ARM System-on-chip Architecture , 2 nd Edition, Addison-Wesley, 2000 David Seal, editor, ARM Architecture Reference Manual , 2 nd Edition, Addison-Wesley, 1996-2000 http://www.arm.com User’s Manual KS32C50100 32-bit RISC Micro Controller Embedded Network Controller , Samsung Electronics, March 1999 ARM Evaluator-7T Board User Guide , ARM Limited, 2000...
View Full Document

{[ snackBarMessage ]}

Page1 / 3

parallel - Furthest From DIP Switches Yellow Red Bit 3 1 2...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online