* Microsecond clock on VAX
@ 1995-11-07 5:00 Ricardo Constantino
1995-11-08 5:00 ` Roger Ivie
0 siblings, 1 reply; 3+ messages in thread
From: Ricardo Constantino @ 1995-11-07 5:00 UTC (permalink / raw)
I have heard that it is possible to obtain the internal state of
a microsecond clock on VAX machines.
The standard (and documented) GETJPI and GETTIM services use the
synchronized 10ms VAX clock. I need an unsynchronized clock
to perform some precise CPU performance measurements.
Does anybody out there known the secret (!) address to this
wonder clock.
Thanks in advance.
Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Microsecond clock on VAX
1995-11-07 5:00 Microsecond clock on VAX Ricardo Constantino
@ 1995-11-08 5:00 ` Roger Ivie
0 siblings, 0 replies; 3+ messages in thread
From: Roger Ivie @ 1995-11-08 5:00 UTC (permalink / raw)
In article <30A056AA.2492@worldnet.sct.fr>, Ricardo Constantino <constant@worldnet.sct.fr> writes:
> I have heard that it is possible to obtain the internal state of
> a microsecond clock on VAX machines.
> The standard (and documented) GETJPI and GETTIM services use the
> synchronized 10ms VAX clock. I need an unsynchronized clock
> to perform some precise CPU performance measurements.
>
> Does anybody out there known the secret (!) address to this
> wonder clock.
There is a microsecond timer in full VAX processors that can be accessed
by privileged code. Unless you're running in the kernel, it is not
available to you. It is also not available on most MicroVAX processors.
For example, the VAXstation 4000/90 (using NVAX) has it, while the
VAXstation 4000/60 (using Rigel?) doesn't.
The timer is really nice when it's there. For reasons I don't want to
get into, I recently needed to implement a software UART on a high-end
VAX processor and used the 4000/90 to prototype my code; I used the
timer to perform the bit timing. It worked nicely.
However, I mistakenly copied my definitions for the 4000/60's UART (I was
using the DTR and CTS bits as the data bits in my prototype) for use on
the 4000/90. Unfortunately, the 4000/90's Flash ROMs are at the address
used by the 4000/60's UART. Also unfortunately, the 4000/90's Flash ROMs
are wired with +12V on the Vpp pin; that is, they are ready to go. To
complete the picture, the Flash ROM location in the 4000/90 taken by
the modem control register I was using just happens to be in the middle
of the text of a message and contains spaces. My code manipulated DTR by
reading the location, setting or clearing the bit, and writing it back.
It turns out that Intel conveniently chose (guess what!) 0x20 as the
command to erase the Flash ROMs. For security (you wouldn't want to
accidentally erase the Flash ROMs), Intel requires that you write the
0x20 twice.
In other words, I managed to accidentally erase three of the four Flash
ROMs in two 4000/90s before I figured out the problem...
--
-------------------------+---------------------------------------------
Roger Ivie | "Once again we see that clowning and anarchy
ivie@cc.usu.edu | don't mix." -- The Tick
http://cc.usu.edu/~ivie/ |
^ permalink raw reply [flat|nested] 3+ messages in thread
* MicroSecond Clock on VAX.
@ 1995-11-05 5:00 Ricardo Constantino
0 siblings, 0 replies; 3+ messages in thread
From: Ricardo Constantino @ 1995-11-05 5:00 UTC (permalink / raw)
I have heard that it is possible to obtain the internal state of
a microsecond clock on VAX machines.
The standard (and documented) GETJPI and GETTIM services use the
synchronized 10ms VAX clock. I need an unsynchronized clock
to perform some precise CPU performance measurements.
Does anybody out there known the secret (!) address to this
wonder clock.
Thanks in advance.
Ricardo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1995-11-08 5:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-11-07 5:00 Microsecond clock on VAX Ricardo Constantino
1995-11-08 5:00 ` Roger Ivie
-- strict thread matches above, loose matches on Subject: below --
1995-11-05 5:00 MicroSecond Clock " Ricardo Constantino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox