ST7FOXA0 simulator bug
Company  
ST Home | Microcontrollers

Index  »  ST7Fox  »  ST7FOXA0 simulator bug
     
   ST7FOXA0 simulator bug
 Moderated by :   »  seb13_colin  -  laubey  -  Setler

Author
beginning argument    ( No reply )
EtaPhi   Posted 07-07-2008 at 08:33   



Registered on :
07-12-2004

From Italy

Messages : 182

 OFF-Line

The attached STVD 4.0 project shows a bug of the ST7FOXA0 simulator.
According to the stimuli file "Bug.in", after 64000 clock cycles there are an input capture and a timebase event.
The corresponding interrupt handlers are correctly prioritized as reported in the datasheet: first the input capture one, then the timebase one.
The simulator bug deals with the missing LTCSR_TBF clearing that the hardware does after a read to LTCSR, which is exactly the intended side effect of the instruction:

BTJF LTCSR,#LTCSR_TBF,IC_End

Since IC_ISR clears LTCSR_TBF LTCSR_TBF while the timebase interrupt request is waiting to be serviced, TB_ISR should not be executed but this does not happen.

Regards

EtaPhi




Attachments : TbIcBug.zip   
 Profile   Quote  
On Top

Search in the forums
 
Jump To