I have problem with existing project. This project was was developed for old and hard to buy AT90S2313 MCU.
I uploaded original .hex file into ATtiny2313 and program is not working fine.
It's RC5 remote decoder + some IO outputs + some special features (timer etc )
Program has 2 modes.
Mode 1 - Setup mode for learning RC5 codes and save it into EEPROM (somethink like number 1 - relay1 etc.... )
Mode 2 - Normal mode device is receiving and decoding RC5/Philips codes.
I may select mode with jumper. Device is starting with flashing diodes. This blinking is working as is descibed in pdf document.
But device is not responding on any RC5 code. I haven't source code long time but we find autor and bought sources few days ago. ( I have no permission upload it public )
I recompilled .asm source code again for attiny2313 with correct definition file tn2313def.inc (btw they look similiar same PINB PIND addresses)
but device is still not working. Only blink at statup and not responding on any RC5 code.
Device should receive 2 identical RC5 codes and save into EEPROM - after 1th recognized RC5 code should confirm with 1xblink after 2nd received code
should blink 2x times and save it. New MCU ATtiny2313 is doing only blink when entering into SETUP mode and then nothing.
I am not assembler fan/programmer only C coder but I recognized blinking function and added blinking before receiving and after receiving RC5 code in setup mode. It's simple debug output. I receive 1th blink and no blink after RC5 function.
Looks like device is stucked in decoding routine. Well we bought many TSOP IR receivers and nothing helps.
Any other idea how to identify problem? why original code is working on AT90S and not working on ATtiny2313 MCU on SAME HW PCB!
Original .hex code is working there is no issue problem is only on his replacement ATtiny2313...
Btw where to buy AT90S2313 1-3 unit in EU ?
listing from definition file for ATtiny2313
</p> <p>;* A P P L I C A T I O N N O T E F O R T H E A V R F A M I L Y<br /> ;*<br /> ;* Number : AVR000<br /> ;* File Name : "tn2313def.inc"<br /> ;* Title : Register/Bit Definitions for the ATtiny2313<br /> ;* Date : 2005-01-11<br /> ;* Version : 2.14<br /> ;* Support E-mail : firstname.lastname@example.org<br /> ;* Target MCU : ATtiny2313
</p> <p>AVRA: advanced AVR macro assembler Version 1.2.3 Build 2 (15. November 2007)<br /> Copyright (C) 1998-2007. Check out README file for more info<br /> Pass 1...<br /> Pass 2...<br /> done</p> <p>Used memory blocks:<br /> Code : Start = 0x0000, End = 0x0211, Length = 0x0212<br /> EEPROM : Start = 0x0000, End = 0x0005, Length = 0x0006</p> <p>Assembly complete with no errors (7 warnings).<br /> Segment usage:<br /> Code : 530 words (1060 bytes)<br /> Data : 0 bytes<br /> EEPROM : 6 bytes</p> <p>