Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

uart programming in NT4.0 using vc++5.0

0 views
Skip to first unread message

Valentin 30IR976

unread,
Nov 28, 1999, 3:00:00 AM11/28/99
to
I want to control UART on NT 4.0 using VC++5.0 I think that I must write

a device driver, but how could I make this?
I know that, for example, in Windows 3.1 I can use this code:

#define port_address 0x3f8

#define REG_RX port_address
#define REG_TX port_address
#define REG_STATUSMODEM port_address+6


//.....

// Then in the program I can make this

unsigned int eline;

eline=_inp(REG_RX);

// And with AND-bitwise operation see if there is any bit with 1 or with

0.

I think that in NT4.0 with VC++5.0 I cannot use _inp, how could I
develope this work?
Is any information on Internet about this?

Any people has told me that I need to have DDK for Windows NT4.0.
What is this and how it works?

In my program now I can send and receive characters from one computer to
another using modem-null-cable.
Now I need to show on my program information about the UART registers.
I think that due to security reason in Windows NT4.0I cannot access
privilegiated instructions such _inp


Tnx for the information

--
73 de Valentin 30IR976 (116 DXCC)

web 30IR976: http://www.geocities.com/titoradio

web personal: http://get.to/zamora

Victor Yu

unread,
Nov 29, 1999, 3:00:00 AM11/29/99
to

Valentin 30IR976 <radi...@yahoo.com> wrote in message
news:384197E5...@yahoo.com...

>
> Any people has told me that I need to have DDK for Windows NT4.0.
> What is this and how it works?
>

You can find the help file on DDK about you wanted. When you install it, you
can find it. And the DDK has example driver about the UART. When you install
the DDK you can find the example file at /ddk/src/comm/serial. So if you
install the DDK, you can get every thing that you want.

Victor Yu 11-29-1999 Taiwan

Maxim S. Shatskih

unread,
Nov 29, 1999, 3:00:00 AM11/29/99
to
Try to open "COM1" and then use IOCTLs or Win32 comm functions on it.
The majority of operations with the serial port can be performed in such a
way.

Max

Valentin 30IR976 <radi...@yahoo.com> wrote in message
news:384197E5...@yahoo.com...

> I want to control UART on NT 4.0 using VC++5.0 I think that I must write
>
> a device driver, but how could I make this?
> I know that, for example, in Windows 3.1 I can use this code:
>
> #define port_address 0x3f8
>
> #define REG_RX port_address
> #define REG_TX port_address
> #define REG_STATUSMODEM port_address+6
>
>
> //.....
>
> // Then in the program I can make this
>
> unsigned int eline;
>
> eline=_inp(REG_RX);
>
> // And with AND-bitwise operation see if there is any bit with 1 or with
>
> 0.
>
> I think that in NT4.0 with VC++5.0 I cannot use _inp, how could I
> develope this work?
> Is any information on Internet about this?
>
>
>

> Any people has told me that I need to have DDK for Windows NT4.0.
> What is this and how it works?
>

0 new messages