QB 4.5: reading 16 bit from a port 
Author Message
 QB 4.5: reading 16 bit from a port

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.*-*-*.com/ ;  |
  |                                               |
  |    La casa dell'aforisma e del petteguless    |
  |                                               |
  +-------------------------oOO-------------------+
                   |__|__|
                    || ||
                   ooO Ooo



Sun, 01 Jul 2001 03:00:00 GMT  
 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



Mon, 09 Jul 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. QB 4.5 to VB4-16 Bit Sound

2. 16-bit I/O port reads from basic?

3. Sending newpage with Crystal Reports 4.5 pro 16 Bit

4. 16-bit ver 4.0/4.5

5. FLAT 32 bit and QB 4.5

6. 32 bit QB 4.5 Libs???

7. Porting 16 bit VBX to 32 bit OCX

8. Porting Visual C++ project: 16-bit to 32-bit

9. VB 16-bit to 32-bit porting issues

10. QB 4.0 Docs/QB 4.5 Wanted

11. want QB 4.5 QB 7.1 FOR FREE!!!

 

 
Powered by phpBB® Forum Software