ATtiny2313A, ATtiny4313 and RSIG in SPMCSR

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

The old tiny2313 could read fuse and lockbits but not Signature/Calibration bytes.

When the tiny4313 came out, RSIG is shown in the "24. Register Summary" in the shared "ATtiny2313A/4313" data sheet.

The "19.7.1 SPMCSR "“ Store Program Memory Control and Status Register" paragraph also shows RSIG.
It does not always appear in header files!

Anyway, when I ordered my STM32F429 Diiscovery kit, I added a couple of tiny2313A chips.

I tried using RSIG bit to read the Signature/Calibration with the same program that works for tiny4313. And RSIG does not exist.

Of course, the 2313A also is supposed to have USIBR register and USART_MSPI functionality.

And the 2313A has the same Signature as the 2313.

David.

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

Quote:
Anyway, when I ordered my STM32F429 Diiscovery kit, I added a couple of tiny2313A chips.

Let me guess: you want to run avr-gcc on STM32F4xx?
Quote:
And RSIG does not exist.

I do not have 4313/2313A to verify that but did you check that:

&SPMCSR == (uint8_t*)0x37
RSIG == 5

etc?
It could be an ordinary *.h error.

No RSTDISBL, no fun!

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

Yes. The SPMCSR lives at 0x37. Just the same as in a Tiny2313 and a Tiny4313.

Yes, I force a RSIG in Tiny4313 and I can read the Signature bytes. Just like a Tiny25/45/85 or modern mega328P etc.

If I try the same with the Tiny2313A, the device simply resets. Using RFLB works just fine with all the chips.

David.