Problems with CodeWarrior Chip Emulation and MC68HC908QT4 AWU

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems with CodeWarrior Chip Emulation and MC68HC908QT4 AWU

623 Views
F_Wolf
Contributor I

Hi, as described in the subject I have some problems getting the Auto Wark Up working for my HC908QT4. I checked if the AWUIE is enabled, and it is. Nevertheless my generated method is never been called after the MCU enters the stop mode. Any suggestions what i'm doing wrong?

 

Regards Wolf

 

Using Version 5.9.0 Build 5292 of CodeWarrior

Labels (1)
0 Kudos
3 Replies

265 Views
F_Wolf
Contributor I

The CW i have installed is 6.3.1 the 5.9 mentioned above is from the about Tab of CW, the 6.3 from the installer.

 

But to fromulate my question more general:

Is the AWU functionality in general implemented in CW? I have the feeling it is not.

 

Regards

Wolf

 

Sorry for writing a new post, but editing the old seems not permitted anymore.

0 Kudos

265 Views
bigmac
Specialist III

Hello,

 

I have never tested it, but it would not surprise me that stop mode, and therefore AWU operation, would not be simulated under FCS.  If this is so, I would assume that the stop instruction would be ignored, and the simulated execution would continue with the following instruction.  Is this what you have observed?  However, I would expect that an interrupt for the associated timer would be simulated.

 

As far as I can see, little would be gained by simulating stop mode - this ultimately needs to be tested on the actual hardware.

 

Regards,

Mac

 

0 Kudos

265 Views
F_Wolf
Contributor I

Hi,

 

executing the STOP instruction in the FCS will halt the CPU and it don't seem that an interrupt is generated.

 

But maybe my configuration of the chip is wrong so that this leads to the described problem?

my setting is

 

CONFIG1: COPRS=0,LVISTOP=1,LVIRSTD=0,LVIPWRD=0,LVI5OR3=1,SSREC=0,STOP=1,COPD=1

CONFIG2: IRQPUD=0,IRQEN=0,??=0,OSCOPT1=0,OSCOPT0=0,??=0,??=0,RSTEN=0


 PTA: PTA5=0,PTA4=0,PTA3=0,PTA1=0
 PTAPUE: OSC2EN=0,PTAPUE5=0,PTAPUE4=0,PTAPUE3=0,PTAPUE1=0
 DDRA: DDRA5=1,DDRA4=1,DDRA3=1,DDRA1=1,DDRA0=0
 KBIER: AWUIE=1

 

KBSCR: ACKK=1

0 Kudos