Shop OBEX P1 Docs P2 Docs Learn Events
Hooking a Attiny13 to a BS2px24 — Parallax Forums

Hooking a Attiny13 to a BS2px24

rdieterrdieter Posts: 3
edited 2008-01-17 16:03 in BASIC Stamp
I have a need to use BS2px24 for a project that requires more ports than are easily available on the MOBO 2pe motherboard. However, I need the resources available through the Attiny13 micro so that I can utilize the existing software to drive the 7seg db unit. My solution was to acquire some Atmel· Attiny13-20pu chips (8pin DIP 20 Mhz). I have the BS2px24 plugged into a Board of education and proceeded to wire it as if it were a “B” processor on the MOBO. When I use the Load AVR program it informs me that a PE is not found, as expected, and proceeds to allow me to program the PX. It successfully downloads the 7SEG1.HEX file into the PX. I get the following on the debug terminal.
Checking program integrity . . . . . [noparse][[/noparse]OK]
Selecting chip:·· B . . . . . . . . . . . . . [noparse][[/noparse]OK]
Connecting to AVR chip . . . . . . . . [noparse][[/noparse]Failed]
I have tried it set up a “A” as well as “B” with same result. I am using· PB.0, PB.1, and PB.2 as shown in the MOBO schematic. I have /RST tied high with 10K resistor and I am manually resetting it before trying to run loadavr.exe. I figured there was no point in hooking up the 7seg db unit until I had successfully programmed the Attiny13.
Any suggestions?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·

Comments

  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2008-01-17 01:10
    On the MoBo, the AVR programming sequence pulses /RST and holds it low during programming. It does this through a port pin which is not accessible on the BS2px24. I've attached a copy of a different LoadAVR version which will let you program your chip. It uses the following pin assignments:

    "A": nRst = 8 : Clk = 9 : Din = 11 : Dout = 12
    "B": nRst = 0 : Clk = 1 : Din = 7 : Dout = 5

    So you'll have to modify your pinout slightly to accommodate it. But give it a try, and see if it works for you.

    -Phil

    P.S. Did the suggestion I gave you here for pin sharing to accommodate the extra requirement not work out?

    Post Edited (Phil Pilgrim (PhiPi)) : 1/17/2008 2:55:53 AM GMT
  • rdieterrdieter Posts: 3
    edited 2008-01-17 16:03
    Running too fast to comment now, but wanted to say many thanks. I will test this this morning. If this works, I will be having some fast turn boards created that I will have in my hot little hands tommorrow. You guys are the greatest. I can guarantee you a long and profitable relationship. I will comment more as soon as I have finished my tests. Thanks agian, in advance.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ·
Sign In or Register to comment.