Archive for the 'Programming' Category

New WinAVR 20080411 has been released

Wednesday, April 16th, 2008

Open source rocks isn’t it? Here is a new WinAVR 20080411 release available for download. As always new release has lots of tweaks, bug fixes and optimizations. There are new XMEGA series microcontrollers preliminary included in supported device list. So we may have a chance to put hands on these new cool AVR microcontrollers. Here [...]

xDRV-driver for LPT with interrupt service routine

Wednesday, March 7th, 2007

Driver xDRV.sys is driver developed by Иванов Д. В.(www.pcports.ru) and is capable to work(read write) with any PC port under windows NT, 2000, XP. But main advantage of this driver is that it can catch and handle LPT port interrupts (in this case LPT1 with address 0×378 with IRQ 07).
Program part of xDRV
Lets see [...]

Control LPT port under windows XP using Delphi

Wednesday, March 7th, 2007

Another way of controlling LPT port under Windows 2000 and XP using Delphi language. In this case library inpout32.dll is used which allows controlling LPT port registers.
Ready project for Borland Delphi 7.0 you can download here: Project Files<187.5kB>
And now how to do this from beginning. Start Borland Delphi 7.0 and make simple form where [...]

Controlling external devices using COM port communications programmed using VB language

Wednesday, March 7th, 2007

There are a lot of Radio amateurs that want to control external devices using computer standard ports. One of them is COM poert. Everybody wants things to be ease as people doing electronics are more hardware people not software. COM port is more often used than LPT because COM port is more resistive to bigger [...]

Sample routine of working with LPT1 port under windows XP in CPP language

Friday, November 3rd, 2006

This is simple routine of sending and reading of byte from LPT1 port under Windows XP.
LPT port has four types of pins:

8 output pins accessed via the DATA Port
5 input pins (one inverted) accessed via the STATUS Port
4 output pins (three inverted) accessed via the CONTROL Port
The remaining 8 pins are grounded

Now we are interested [...]

Program LPT and COM ports easily under windows NT-2000-XP

Friday, November 3rd, 2006

If you are working with embedded projects usually you have concerned about how directly control computer ports like LPT or COM. Basically no one wants to mess up with driver writing or reading tons of documentations in order to send some bytes via IO port to your target board.

Earlier when DOS, win95 and win98 [...]