EmbeddedRelated.com
Forums

UART I2C and SPI Tests

Started by IJALAB February 25, 2008
Hello All,

I have drafted test plan for verifying peripheral behavior but Does
anyone have system level tests for testing i2c, uart and spi
peripherals from a software perspective? pls share the tests that one
should carry out for thoroughly verifying a driver from:
1. i2c multimaster
2. i2c slave mode
TX and Rx functions.

regards
bala
On Feb 25, 11:25=A0pm, IJALAB <balaji.d...@gmail.com> wrote:
> Hello All, > > I have drafted test plan for verifying peripheral behavior but Does > anyone have system level tests for testing i2c, uart and spi > peripherals from a software perspective? pls share the tests that one > should carry out for thoroughly verifying a driver from: > 1. i2c multimaster > 2. i2c slave mode > TX and Rx functions. >
Many kinds of tests can be done. You may need to do the following 1) Read data from a Control Register of a particular slave device 2) Write data to a Control Register of a particular slave device 3) In the case of UART try configuring for different baudrate settings. Have a loopback test also. 4) Normally you may need to check if all the status registers and control registers can be 'read from'/'written to' properly. 5) In the case of SPI, check the different Chip Selects. Karthik Balaguru