Reading target fusebits

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey guys; I have been away for a long time! but im back into my fav hobby, AVRS!

Anyways; I cant find any information on this (I am guessing because searching for this specific subject yields more programming them what im looking for)

I am wondering; is reading an AVRs fusebits as easy as just setting up an SPI communication and asking for it? For example; how would I go about setting up an AVR+LCD and when I press a button it reads the fusebits off from a target AVR?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

On the same note; If it is as easy as just setting up an SPI connection. Then I could easily use my Bus Pirate to read off fusebits right? Im sure the bus pirate can do it because you can even use avrdude with the bus pirate.

For anyone who doesnt know what bus pirate is; Its a really awsome open source project that allows you to communicate easily with multiple buses (SPI, 1wire, uart, i2c, LCD chipsets, some JTAG, and more... Worth checking out; also check out there open source logic analyzer (still awaiting the arrival of mine).

http://dangerousprototypes.com/d...

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I am wondering; is reading an AVRs fusebits as easy as just setting up an SPI communication and asking for it?

No not SPI. But ISP can do it.

The ISP programming interface and protocol is described in your AVR data sheet - in the section "Memory Programming".

As of January 15, 2018, Site fix-up work has begun! Now do your part and report any bugs or deficiencies here

No guarantees, but if we don't report problems they won't get much of  a chance to be fixed! Details/discussions at link given just above.

 

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington] "Words represent concepts. Use the wrong words, communicate the wrong concept." [J Morin] "Persistence only goes so far if you set yourself up for failure." [Kartman]

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

when I press a button it reads the fusebits off from a target AV

Ever AVR datasheet (that supports ISP) has a section on "Serial Programming" which describes the protocol. Not just for erase/read/write of the flash but also things like reading signature bytes.

If you get Buttload or LUFA it contains AVRISPmkII "clone" code that will show you how to operate the protocol.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks guys; I spent the better half of last night reading the tiny2313's serial programming interface and I got it to work; now I will try and download the program memory or something of that nature.