A computer components & hardware forum. HardwareBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » HardwareBanter forum » Processors » Intel
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

8051 BIT



 
 
Thread Tools Display Modes
  #1  
Old May 18th 04, 05:42 AM
Stu Cazzo
external usenet poster
 
Posts: n/a
Default 8051 BIT

Hi,
Looking for what's out there in terms of built-in self-test
C language code for an 8051 product. Code snippet pointers
or even ideas on what would constitute a good BIT test
for an 8051 product. Already have in mind, a RAM test.
Any ideas on what else we can test for boot?
  #2  
Old May 18th 04, 06:26 AM
Jack Klein
external usenet poster
 
Posts: n/a
Default

On 17 May 2004 21:42:41 -0700, (Stu Cazzo) wrote in
comp.arch.embedded:

Hi,
Looking for what's out there in terms of built-in self-test
C language code for an 8051 product. Code snippet pointers
or even ideas on what would constitute a good BIT test
for an 8051 product. Already have in mind, a RAM test.
Any ideas on what else we can test for boot?


Are you talking about internal or external RAM? You can write a test
for the internal RAM, but the chances of a processor being damaged in
just such a way that some of the internal RAM is damaged but the core
still operates well enough to execute the test code and detect the
error is probably vanishingly small.

In any case, my basic sequence for POST in embedded systems has been
something like this for more than twenty years:

1. Disable all interrupts, so the rest of the POST runs continuously.

2. Set all outputs to their default, fail-safe condition. If your
product controls motors, lasers, high voltages, etc., and the reset
was caused by a power glitch or watchdog, the first thing you need to
do is make sure all outputs are safely in an off condition.

3. Validate the firmware image, either the entire thing or, if there
is some boot down loader and application, then at least the boot
loader. Some form of checksum or CRC algorithm should match a
precomputed value stored at a specific place in the image.

4. Test RAM (internal and/or external).

5. Initialize important peripherals, on-chip and off, and test them
as far as is possible. This would include initializing the timer you
will use for periodic interrupts and verify that it and the interrupt
controller deliver interrupts properly. Other peripherals, for
example external UARTs, often provide loop-back or other test modes
that you can exercise.

If any critical test fails, your processor should fall back to a
fail-safe mode with interrupts disabled and use whatever means are
available to signal the user and/or service technician what the
problem is.

--
Jack Klein
Home:
http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
  #3  
Old May 18th 04, 04:44 PM
Captain Bly
external usenet poster
 
Posts: n/a
Default

ideas:
timer test
watchdog test
i/o test
speed test
computation test
data validity tests
i/o wrap around tests
.....

Hi, Looking for what's out there in terms of built-in self-test
C language code for an 8051 product. Code snippet pointers
or even ideas on what would constitute a good BIT test
for an 8051 product. Already have in mind, a RAM test.
Any ideas on what else we can test for boot?



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
IDE problem interfacing with 8051 bob General Hardware 0 April 29th 04 07:03 PM
8051 - IDE hard drive interface problem bob General Hardware 1 April 26th 04 02:36 AM
FA: Cactus Logic IDS 8031 8051 embedded Dev Sys Jack J. Woehr Intel 1 February 27th 04 02:07 AM
Intel 8044, 8344, 8051 programmer schematics [email protected] Intel 0 October 27th 03 09:23 AM
Suggestions to tighten novice 8051 code Jacob Burnetski Intel 5 October 26th 03 03:54 PM


All times are GMT +1. The time now is 06:44 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 HardwareBanter.
The comments are property of their posters.