Stucks after procedure

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

Hi
I have aproblem that you might know how to fix.....( i hope )
In order to burn an EEPROM i am using few procedures and UART interrupt.
As soon as the 8515 feels that the word 'i' has been pressed it sends it to the "write instruction " procedure and then goes back to the main ( waiting for the other command)
As soon as the word "w" is pressed it sends the 8515 to the write procedure where there is the data that need to be burn to the EEPROM and then it goes back to the main.....
As soon as the "r" word is beeng pressed it sends the 8515 to the read procedure ( to veruify that it really burnt it). and from here it goes back to the main for another command.
These are all the commands that there is........This program works fine for only one cycle and lets say that we are doing it in the right order (insruction ,write,read)

The problem is that if i want to do another cycle of instruction etc the 8515 stucks it works very and i mean very slow.....again it only happens if i want to do another cycle but it works fine in the first cycle.

The EEPROM is beeng burned beacause i have the abbility to check it
I also added in the main a small routine that will show me throgh PORT B that it is doing the while(1) and that it is waiting for the command.

Why do you think that the AVR stucks.
If it wouldnt work fine then even at the first procedure it would have stuck .....

Please advise

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

Any chance of seeing the code
Mike

admin's test signature