I've been seeing a strange problem in a test fixture within the
MC68HC912B32. I recently modified the software so it uses PS2 and
simulates open-collector output. The pin is just gpio because the
device has no SCI1. I have a 470 ohm resistor pulling to +5V. I write
0x00 -> PORTS to ensure that the output will be low when enabled as
output.
I control an LED with anode to the PS2 pin and kathode to Ground:
OFF: set DDRS.2
ON: clear DDRS.2
The problem is that after an unknow period of time since powerup (up
to one millisecond or so), bit 2 in PORTS has become '0' after I had
set it to '1'. I find that it only happens once: While debugging, I
set PORTS.2 and the LED begins flashing as expected indefinitely. What
could cause that, do others see it? It seems to me a hardware failure,
but haven't got other hardware to test on.

(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )