Site Search

Site Info

Home » Forums » Forum Archives » Motherboards, Chipsets, Processors, & Memory » Topic # 308

diag testing of timers
pbarnett Mar-23-01 06:29 PM
I am tasked with writing diag code to test the timers in the CPU (IXP1200, in this case). The purposes of the test are to 1) ensure that the timers run. 2) ensure that the timers generate interrupts. 3) verify that the interrupts occured at the requested interval. My code will run as part of POST before any OS is loaded.

Does anyone have any suggestions on approaches, sample code, etc.? I think i know how to know if the timer decrements and if it actually generates interrupts, but i don't know how the verify the time interval. The granularity of the RTC is huge (1 sec) so it seems problematic to use that to time the interrupt interval.

Similarly, i am supposed to test the RTC operation. I guess, if i get the timers verified, i could use them to verify the RTC.


1. RE: diag testing of timers
lbyard Mar-23-01 07:05 PM
In response to message 0
Pat, There might be something in the Developers' Kit http://developer.intel.com/design/network/products/software/sdk.htm. Suggest calling them. Larry

2. RE: diag testing of timers
pbarnett Mar-26-01 02:14 PM
In response to message 1
Thank you, Larry, but i have looked there (in documentation, toolkit help, and in vxWorks code) and not found what i need. Of course i have the VxWorks/Intel skeleton code to bring up the hardware, including the clock and PCI unit, but nothing about testing and verifying the operation of them. I'll probably muddle through. I was hoping for some ideas for more elegant techniques than my own brute force approach. -pat

3. RE: diag testing of timers
lbyard Mar-26-01 04:27 PM
In response to message 2
Looks like some assembly code anguish to me. Don’t feel bad… At one time I was stuck to program an 8086 with hex using a keypad and logic analyzer because the assembler was not available from Intel yet. Larry

| Home | Guides | How to | Reviews | Online Store | FAQ | Forums | Forum Archives |
| Links | News | Newsletter | About Dux | Advertising | Contact Info | Privacy |