questions regarding mbed avr programmer

18 Dec 2011

Hi,

I wonder if the mbed AVR programmer can be used for ATMEGA1284p. The link of the project is:

http://mbed.org/users/aberk/programs/mbedAvrProgrammer/5z0rl

Also, the pins at the mbed side can be any of the available pins, or they have to be one of the SPI port?

Thanks.

23 Dec 2011

I am working on modifying the code for programming other parts. I see these definations in the header file:

  1. define ATMEL_VENDOR_CODE 0x1E
  2. define DEVICE_LOCKED 0x00
  3. define WRITE_HIGH_BYTE 0x48
  4. define WRITE_LOW_BYTE 0x40
  5. define READ_HIGH_BYTE 0x28
  6. define READ_LOW_BYTE 0x20

Here are the fuse settings I would like to program:

Low: 0xE0 High: 0xD9 Extend: 0xFF Lock: 0xFF

The signature bytes are 0x1E, 0x97, 0x05

My question is: how should I change the header file to program my chip?

Thanks!