IO_LED and Push Button Components

IO_LED and Push Button Components - IO_LED Component Each...

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

View Full Document Right Arrow Icon
IO_LED Component Each bit of an IO_LED component simulates a standard light-emitting diode (LED) that would be driven by an output pin. IO_LED component bits can also simulate the operation of a toggle switch that would drive an input pin. Eight IO_LEDs are provided in this component, connecting to an 8-bit output port, with bit 0 being the right-most bit and bit 7 the left-most bit. These 8 bits can be any mix of inputs and outputs. Setup of the IO_LED component differs according to whether it is to be used for output (LEDs) or input (switches). Right-clicking the component produces the setup window, in which two hexadecimal addresses must be specified in boxes labeled PORT and DDR. To use the IO_LED component to display output data on simulated LEDs PORT: Address of the data register of the I/O port driving the LEDs. Example: PORTA address is 0000 (or simply 0), PORTB =1, PORTE=8, PTT (Port T) =240. . DDR: Address of the data direction register
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

IO_LED and Push Button Components - IO_LED Component Each...

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

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