I use MC912XEP100MAL.After enter stop mode use ANDCC #$7f nop; STOP ,before enter stop mode ,i set the pin PORTK_PK1 = 0 and PORTK_PK2 = 0; But after excute the code and the MCU enter stop mode,PORTK_PK1 = 1 AND PORTK_PK2 = 1 is 1,i can't understand,why?
Hi,
To be sure we take into account everything we I would like to know.
- Mode of the MCU you use. (connection of the mode pins and value in MODE register)
- A value of the DDRK register.
- The method of the reading of the PTK.2,1. Is it measurement at the port pins or status of the PTK register or...
- Have you checked all writes to PORTK?
Best regards,
Ladislav