Home › Magazines › 2002 › January › USB UART (2)

USB UART (2)

setting the port currents

Published in issue 306, January 2002

Although the Elektor Electronics USB interface described in the September 2000 issue allows the port current to be set for only one port, the port IC allows the current to be set for each pin.The module USBuart.bas provides the subroutine Sub WrIsink Pin, Wert. The parameter Pin may have a value of 0 through 7 for port pins P00 through P07 or 8 through 11 for port pins P10 through P13. Listing 1 shows a simple program for setting the sink currents of all four Port 1 outputs, while Figure 1 shows the associated screen display.The microcontroller contains a simple 4-bit DAC for each port pin, consisting of four weighted current sources. We can ask ourselves if we can’t use this for something more worthwhile than just controlling the brightness of a few LEDs.

Free downloads

010207-12.zip

Free download

010207-13.zip

Free download

010207-11.zip

Free download

Click below to download a PDF copy of this article from Elektor magazine.

 

Downloads 

PDF Article (e021056.pdf)
10 Elektor Credits
PCB layout (010207-PCB.pdf)
10 Elektor Credits
 

Order from Elektor 

Controller, programmed 010207-41
010207-41 ($ 52.60)
 

Order from ThePCBShop 

PCB, bare 010207-1

 

Free downloads 

010207-12.zip

Free download

010207-13.zip

Free download

010207-11.zip

Free download

Please note. In view of the complexity of international markets, Elektor cannot guarantee the availability of components for this project.

Spotlight

Design your own Embedded Linux Control Centre on a PC

These days a lot of options exist if you want to control home electrical appliances. This book covers a do-it-your-self system made from recycled components.