PDA

View Full Version : GPIO Bit/Byte I/O Class IS-INPUT US-OUTPUT


rlinder
12-20-02, 05:37 AM
From 'IsoPod™ Users Manual'
IS-INPUT & IS-OUTPUT sounds like a question.

Should it read:
IS-INPUT is pin(port) set as input?
IS-INPUT is pin(port) set as output?

GPIO Bit I/O Class
These words support the GPIO I/O of the DSP56F80x. The following GPIO pins are
defined as objects:

IS-INPUT Makes pin an input (hi-Z).
IS-OUTPUT Makes pin an output. Pin will output the last programmed level.



GPIO Byte I/O Class
These words support the GPIO I/O of the DSP56F80x as bytes. The following GPIO
ports are defined as objects:
PORTA PORTB
For each pin, the following methods can be performed:
IS-INPUT Makes port an input (hi-Z).
IS-OUTPUT Makes port an output. Pin will output the last programmed level.

rlinder
12-20-02, 08:42 AM
Oops

Should it read:
IS-INPUT is pin(port) set as input?
IS-OUTPUT is pin(port) set as output?

nmitech
12-20-02, 09:57 AM
Should it read:
IS-INPUT is pin(port) set as input?
IS-OUTPUT is pin(port) set as output?


GPIO can be set as PORT or individual bit with IS-INPUT/IS-OUTPUT ,

PORTB IS-INPUT ( set portb as input )
PORTB IS-OUTPUT (set portb as ouput )

or

PB2 IS-OUTPUT
PB3 IS-INPUT
PB4 IS-OUTPUT
PB5 IS-INPUT
etc...