uv2 stops execution after ORL PCON,#1, but not stops after ORL PCON,#2. How can I simulate stop mode on DS80C530? Roman
maybe something like:
#if defined(SIMULATOR) #define SLEEP for( ;; ) #else #define SLEEP PCON |= 0x02 #endif
But I need the proc. stop-down with timers and etc. and waiting for external interrupt or alarm from rtc. I want to see what is hapenning with my rtx-os and how the rtc- time dependent routins reacts after wake-up. I use the ds80c530 procesor. When I tryed Analog Devices or Cygnal, the stop mode works fine, but they haven,t rtc on chip. It seems that they did own simulation drivers and therefore they are functional. It is bug in uv2 or rather hole in uv2, because uv2 ignores setted bit 1 in PCON.
DS80C530 has been added in V7.06. This includes also power-down handling. Are you using this version?
Yes I use 7.06, but not working. Have somebody idea how to solve this with agsi dll? I wrote some dll's but I don't know how to enter sleep mode after I create watch on sfr.