
QB 4.5: reading 16 bit from a port
How about reading the port and then writing the same byte right back to the
same port before moving on to the next read?
ChasG
--
---
Delhi, La., Gateway to: Poverty Point Archaeological Center
Site of the oldest pre-historic civilization in North America
Personal Home Page:.............. HTTP://cust2.iamerica.net/cgodard
Business Home Page:.............. HTTP://cust.iamerica.net/ggodard
KA5EJW Advanced Class Ham FCC General Class Radiotelephone
Quality Tuner Service.... HTTP://cgodard.hypermart.net/quality
Quote:
>I mus use a card for read 16 bit from a hardware port. I now the port
>can supply 8 bit, but I have discovered the other 8 bit are in the
>port following, so I can
>a=INP(port)
>b=INP(port+1)
>the problem is when the program read a port (port or port+1), the
>hardware resets the contents of both ports.
>Using C++ this reading is simply achieved with:
>INPORT(port)
>or even with
>INPORTW(port)
>Some one knows how perform the word reading with a sinle shoot without
>loosing the contents of the unread port?
>Thanks in advance for any help
>Claudio
>--
> _ _
> (O O)
> +-----------oOO----(_)--------------------------+
> | |
> | Home page: http://www.texnet.it/cfabbro |
> | |
> | La casa dell'aforisma e del petteguless |
> | |
> +-------------------------oOO-------------------+
> |__|__|
> || ||
> ooO Ooo