Banner with yellow background
Tuesday, 14. November 2006
Some WOSP shopping

Bought the 8 bit switch bank today ($4.80 for 10 switches), along with some 14 guage wire. Way overkill but whatever...

Sad 'cause sparkfun is down today. I'd like to get the ethernet breakout, and a few other things. I'll probably put in a Digikey order also, but getting the right parts from Digikey is a real chore. They have so much stuff! Looked for the octal buffers at RShack, no luck there. All they had was op-amps and 556 dual timers.

Still haven't decided if I will write the software for WOSP in C or ASM. Either would work fine. I'll try the switches out tonight. I'm sure the Arduino pinout diagram will come in handy.

... Link


Monday, 13. November 2006
Way Old School Programmer

Or, a new take on the Altair.

WOSP provides a way to create and edit programs in Atmel AVR microcontrollers at the byte level. The programmer provides a bank of 8 data switches for program input. Output consists of 12 address lines and 8 data lines. As the AVR uses word-based program memory the programmer shows one byte at a time, allowing you to switch between High and Low bytes.

The basic programming model is to set the switch bank, set the High/Low byte switch, then press the 'Write' key. Pressing the 'Up' button advances the address pointer to the next address. The 'Down' button allows movement backwards. Once the program is complete press the 'Store' button to send it to the microcontroller. You can also use the 'Load' button to read the microcontroller program into the editor.

A 'Goto' button allows you to enter a new address directly using the switch bank.

Implementation: The core of the WOS Programmer is an Arduino board running a simple program. The program defines a 512 byte data area for the target program. Input and output use 8 bit data latches and a common data bus (on the Arduino Port B).

There is also provision for uploading the target program from a host PC to save all the switch flipping.

... Link


Programming Tiny15 via Arduino

When I plugged my Olimex 8pin AVR dev board into my Arduino I could read the device signatures just fine (after fixing one timing bug). But when I tried to write a program to the Tiny15 chip things got strange fast. Especially when I got the byte order wrong (started writing MSB into LSB - another bug). After that no matter how much I wrote the first few bytes of the program were always zero. No fun!

So I added a 'chip reset' to my programming software. This flips all the bits in the flash ON, after that it would take my program. Guess you can only turn the bits off when you program the flash.

For the Tiny15 program I wrote the code in Astudio4, then manually assembled it with -l tiny.lst. Then I openened tiny.lst and copied the machine codes into my programmer C code. The code would use the array to send individual bytes to the Tiny15 using SPI. OK, this is not a great way to do it, but it let me learn how the Tiny15 unit works.

I was disappointed that you could only set the bits OFF unless you reset the whole chip. That makes iterative development more difficult. I'm working on a 'way old school' programmer, which will allow you to enter the program 8 bits at a time (using 8 switches). The plan now is to capture the whole software image (or at least 256 words of it) in memory on the Arduino's ATMega8 chip, then erase and write it to the Tiny15 etc. I will also be able to read the Tiny15 program into the Mega8, edit it there, then push it back out to the Tiny15. More about the WOS programmer in my next post...

... Link


Creative Commons License (by-nd)

Creative Commons License

Blog entries licensed under a Creative Commons License.

8143 days of detection
mod: 12/3/08, 5:42 AM

days of detection

... PMOG
... ideas
... brain hurts
... weblo

owner

Biography

Randall Bohn lives in Orem, Utah, USA. He works as a Software Quality Engineer. He is a big fan of the AVR line of microcontrollers. He has been in the computer industry since 1989. Randall is married and has three children.

rsbohn can be reached via gmail.com.


status
Youre not logged in ... Login
Amazon.com DVD Shop
menu
... home
... topics
... galleries

... Antville.org home
search

related


calendar
November 2006
SunMonTueWedThuFriSat
1234
567891011
12131415161718
19202122232425
2627282930
OctoberDecember
recent updates
Arduino Starter Kit
MAKE Blog How-to Tuesday posted a challenge: Optimize the sketch code for a pressure sensor bar graph. Here is my second attempt: int gate[] = {10, 20, 50, 100, 200, 32767}; void setup() {DDRB = 0b00111110;} void loop() { int dval = 0; int rval = analogRead(2); for (int x = 0; rval...
12/3/08, 5:42 AM
Measuring Supply Voltage
I'm running my latest handheld computer on solar power. It starts up when the sun rises and runs all day. I started wondering how I could measure the voltage coming in from the solar panel. I came up with a way to use a diode and a resistor and the...
7/29/08, 9:53 AM
Ten Pin ISP adapter
I've already built a six pin ISP adapter, but my Olmex cards use the ten pin ISP. I put a header on a scrap of perf board, added an LED for the heartbeat, and then connected the ten pin cable. Actually it is a fifteen pin cable, off a joystick...
7/16/08, 10:00 PM
Hello 5x7 Style
Wrote a new firmware for the 5x7 display. Now it scrolls out 'hello' over and over again. I'm running it on a solar panel, so it wakes up with the sun and runs all day long. When I built the LED matrix I put resistors on the five columns. I'm starting...
6/17/08, 12:48 PM
Provo, Utah
With a walkable downtown and access to two Universities, Provo Utah is a great location. I live next door in Orem. Kipplinger: Provo: Pristine Tech Mecca (Video) (Text)
6/2/08, 10:07 AM
Another release of AVRISP sketch
There is a new release of the AVRISP emulation sketch for Arduino: avrisp.02.zip. This one should work with Mega8 and Mega168. mega-isp
5/28/08, 4:48 PM
Sorting Out Page Sizes
There is a new release of AVRISP Emulation for Arduino. This is an Arduino firmware that allows you to program other AVR microcontrollers. The new zip file (avrisp.01.zip) should compile on the current Arduino IDE, and I changed the comments that put the wrong labels on the SPI pins. Go ahead...
5/27/08, 11:31 AM
Flash Problems
I'm building a project using the AVR ATMega8 microcontroller. Once I got the thing wired up to where I could write firmware to it I found that it was always failing. I made a .hex file full of 0x10 values (256 bytes worth) and tried uploading that to the chip....
5/16/08, 2:56 PM
William's Arduino Board
I'm building an Arduino-compatible board for William. I'm building it on the Evil Mad Scientist MegaXX8 business card. It will have four built-in LEDs and a USB interface. It will also have connectors so he can use it with a breadboard. Perhaps we can connect it to some of his...
5/15/08, 7:26 AM
Cybord Signal Detector
Some digital radio signals use Frequency Shift Keying (FSK). This often has one frequency for a Mark and one for a Space. I plan to build a cybord or other chip that will decode an FSK signal, producing three different values: NO_SIGNAL, MARK, and SPACE. The signals would then go...
5/15/08, 7:20 AM

destinations

Listen to IT Conversations



Made with Antville

Quantum Touch

RSS Feed