OK, I finally got around to going through the book and butterfly kit I bought a while ago from Smiley micros. Got up to chapter 4 pages 67-68 and the PORT IO project which is connect 8 switches to PORTB and pull those pins to ground to switch the LEDs off. Problem is that something else is pulling all but bit 0 to ground slowly all the time. If I connect the PORTB pins to plus 3 volts, each LED will light and stay that way for a little while after removing the connections to the + voltage but if let sit long enough other devices on that board seem to pull the pins to ground.
Does this sound right?
Also for the life of me I could not get the computer to program through the bootloader I could get Hyper terminal to listen to the bootloader (??? appeared when I held down the button) and I could send a text name to the butterfly so it was working. But I could not get AVR Studio to see the butterfly on the serial connection. So I pulled out my armored Dragon and plugged in the ISP connection. Programs fine, but I wonder if blasting the bootloader is doing something that would prevent me from getting the proper response from PortB.
I do understand what the exercise is trying to teach me, but it is more fun if it works the correct way.
And before anyone asks, yes I did pull the ISP cable off of the butterfly and I did cycle the power to make sure.
Do I need to turn ISP off to get this to work? If so can I get in with JTAG or DW to do the programming for each step? My tools include a Dragon, an STK500, and a JTAGICE mk2. Mostly I'm using the Dragon because it has a hub (powered) built into the protective box, so I can still use my mouse and not the silly pointer on my laptop.
If I need the bootloader to make this work, can I just pull the source from somewhere and include it into each project so that I can continue to use the ISP/JTAG/DW programming?