ICP 8535 troubles

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

Whenever I enable ICP on the 8535, the chips responds in an odd manner. If I tie the ICP pin (PD6) either high or low the chip goes into an eternal reset mode. If I leave the pin float, it doesn't reset. The only other feature on the chip being used is port C which has an LCD display hooked to it. I am using the STK200. I have tried two chips with no success and I am now officially stuck.

The code I am using worked fine on an 8515. I ported the code to the 8535 with no success. Am I missing a registery setting or something equally foolish? If anyone has an ICP code snippet that works on an 8535 I'd greatly appreciate it since it will eliminate 'coder error'. I can use either assembler or C for CodeVisionAVR. Any other suggestion?

Thanks!
John

admin's test signature
 

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

Hi John,

If you have ported the code and not re-compiled it with the correct interrupt vector references, then the following could happen: an Input Capture Interrupt could point at an erroneous interrupt vector, and end up in Reset. The AT90S8535 is _not_ backwards-compatible with the AT90S8515, so certain changes in the code must be expected.

I suggest you doble-check your interrupt vectors first.

Morten, AVR tech. support, Atmel FAE