Stimuli on AVRStudio

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

I dowloaded AVRStudio from Atmel web site and I wrote a simple program that uses the UART, implemented on a AT90S8535 system. I tried to simulate my program: I created a stimuli file performing the serial bit flow, but the processor didn't serve the UART receive interrupt routine. Then I tried to manually change the rx bit on pind register of the simulator with the correct timing, but the behaviour was the same. It's not a software error, because the program runs well when I try to work with the part on my system. I followed the explanation provided with the on line help, to create the stimuli file, but it doesn't work: is there something else I can try?

Thank you to those who want to answer.

Best regards

Francesco Bianchini

admin's test signature
 

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

One thing on my wishlist is just a terminal window where i/o to and from the uart could get piped for on screen interation.

Often interaction is needed rather than just dumping a file in.

Wastes time actually programming hardware just to see the serial perform in real time.

While I'm on the subject of handy things, something to consider for atmel would be a register bit for uart control to determine whether to invert the pins or not for serial i/o.

This was a handy feature in the BASIC stamps, and allowed you to save an inverter no matter which way around your design needed things.

admin's test signature
 

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

I know this problem to well, but there is a work around.

In the IO view:
UART interface
Status register
RXC <----------------- Set this bit.

Press F11 till you are in the interrupt routine, after that modify UART data register field as required.

Continue debuging.

Regards,
Wiljon

admin's test signature