我正在做一个项目,我试图弄清楚我将如何写入串行端口。由于我的笔记本电脑没有串口,所以我购买了一个 USB 转串口适配器。现在我需要将数据从我的 C 程序发送到串行端口,但我不知道如何寻址该端口。有谁知道这是怎么做到的?
当我在 Windows 98 上工作时,我使用outportb()
to address the parallel port but this will not work on Windows 7.
(我使用的是 Windows 7 64 位。)
我正在做一个项目,我试图弄清楚我将如何写入串行端口。由于我的笔记本电脑没有串口,所以我购买了一个 USB 转串口适配器。现在我需要将数据从我的 C 程序发送到串行端口,但我不知道如何寻址该端口。有谁知道这是怎么做到的?
当我在 Windows 98 上工作时,我使用outportb()
to address the parallel port but this will not work on Windows 7.
(我使用的是 Windows 7 64 位。)