make
make load
-3) set the fuse bytes to 8MHz internal:
+3) set the fuse bytes to 8MHz internal with BOD:
make fuse
This should result in the following settings:
avrdude: Device signature = 0x1e9307
-avrdude: safemode: lfuse reads as E4
+avrdude: safemode: lfuse reads as A4
avrdude: safemode: hfuse reads as D9
+Fuse Low Byte details
+
+BODLEVEL Brown out detector trigger level = 1
+BODEN Brown out detector, 0=enable = 0
+SUT1 Select start-up time = 1
+SUT0 Select start-up time = 0
+CKSEL3 Select Clock source = 0
+CKSEL2 Select Clock source = 1
+CKSEL1 Select Clock source = 0
+CKSEL0 Select Clock source = 0
The make fuse needs to be done only once
unless you change the Atmega8 chip. make/make load
======================================================
You can e.g use putty under windows
http://www.chiark.greenend.org.uk/~sgtatham/putty/
-it supports as well serial connections
+it supports as well serial connections. The other common
+option under windows is HyperTerminal but it is more complicated
+to use than putty.
For Linux I can recommend picocom
http://code.google.com/p/picocom/
(use command picocom -l -b 9600 /dev/ttyUSB0)
+Another good serial terminal for linux is gtkterm
+http://www.jls-info.com/julien/linux/
+
+Serial port settings for the terminal:
port : Virtual com port (e.g /dev/ttyUSB1 or /dev/ttyUSB0
- or COM5 under windows or ... to whatever port the
- virtual com port maps)
-flowcontrol: none
+ or COM5 under windows or ... whatever port the
+ virtual com-port maps to)
+ Under linux or Mac you can use the command dmesg
+ after you have plugged in the USB cable to see to
+ which com-port/device the new virtual com port maps to.
+
baudrate : 9600
parity : none
+flowcontrol: none
+stopbits : 1
databits : 8
</pre>
<br>
<img src=screenshot-cmd-interface.gif>
<br>
+<br>
+At shop.tuxgraphics.org you can get an optically insulated
+USB to serial interface add-on kit such that your computer
+is galvanically separated from the power supply but still able
+to give commands. This enables you as well to use two power supplies
+to provide positive and negative supply voltages for e.g. an operational amplifier.
+
+<br>
+<br>
<pre>
+You can control the digital power supply by commands. A number
+of commands are provided for this purpose. They are at the moment
+available for Linux and Mac:
+
+
+ddcp-script-ttyinit - initialize the COM port
+ddcp-script-getval - get current values (same as you see on the LCD)
+ddcp-script-setval - send a command to the power supply
+
+ddcp-script-example.sh - an example shell script showing how to use
+ the above commands
+
-------------------------------------------------------------------
Copyright: GPL V2
Author: Guido Socher
-- Basic uart interface prompt, no remote control yet
digitaldcpower-0.6.2 -- 2010-06-26 Full UART command interface
+digitaldcpower-0.6.3 -- 2010-07-03 Accelerate UART command polling to
+ not loose characters when copied/pasted at high speed.
+ Line editing with backspace if terminal supports it.
+ Set BOD (brown out detector enable) fuse.
+ Script interface (ddcp-script)
-------------------------------------------------------------------
</pre>