S08P-Lite出厂自带例程,也可以在官方主页上下载例程并自行烧录。 该例程可以体验板卡的各个模块,如热敏电阻,DAC,SPI Flash,按键,红外等。 板子上电后,就会通过串口(波特率115200)打印以下内容,然后我们根据提示,逐步测试各个模块 - --System Log BEGINS--
- SRS=0x40
- Pin Reset
- --System Log ENDS--
- -- S08-LITE FAT BEGINS --
- Thermistor test: BEGINS
- Thermistor test: heat the Thermistor RT1 on board now
- Thermistor test: pass test until the Thermistor is heated over the given value
复制代码我们需要根据提示逐步测试板卡功能,此时是提示测试热敏电阻,我们把手放在热敏电阻上面,即可完成测试。 - Thermistor test: PASSED
- Potentiometer test: BEGINS
- Potentiometer test: turn the Potentiometer R54 on board now
- Potentiometer test: pass test until the Potentiometer is turned to the max value
- Potentiometer test: PASSED
- DAC5571 test: BEGINS
- DAC5571 test: connect jumper J15 2-3 and J6 2-3
- DAC5571 test: the DAC5571 output from 0 to 255 automatically now
- DAC5571 test: pass test until the DAC5571 output the max value
- DAC5571 test: PASSED
- FlashW25Q32 test: BEGINS
- FlashW25Q32 test: read device ID is 0x15
- FlashW25Q32 test: erase flash sector 0
- FlashW25Q32 test: after erase, contents in sector 0 should be all 0xFF
- FlashW25Q32 test: read flash sector 0:
- 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF
- FlashW25Q32 test: write flash sector 0:
- FlashW25Q32 test: after write, contents in sector 0 should equal to what's written
- 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF
- FlashW25Q32 test: read flash sector 0:
- 0x0 0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF
- FlashW25Q32 test: PASSED
- Button test: BEGINS
- Button test: press button 2 or 3 on board now
- Button test: pass test until button 2, 3 are pressed
复制代码我们会看到热敏电阻测试通过,接下来是板载电位器测试,DAC测试,SPI Flash测试,然后是按键测试,按下按键2,3后即可开始下一步。 - Button test: PASSED
- TSI test: BEGINS
- TSI test: touch pad 1 or 2 on board now
- TSI test: pass test until pad 1, 2 are touched
复制代码接下来是电容触摸按键测试 - TSI test: PASSED
- IRDA test: BEGINS
- IRDA test: connect jumper J5 2-3
- IRDA test: power on another IRDA transceiver board, and place the two boards close
- IRDA test: pass test until the IRDA send and receive all data
- Transmit Receive
- 0x0 0x0
- 0x1 0x1
- 0x2 0x2
- 0x3 0x3
- 0x4 0x4
- 0x5 0x5
- 0x6 0x6
- 0x7 0x7
- IRDA test: PASSED
- -- S08-LITE FAT ENDS --
复制代码至此板卡功能测试程序到此结束。
|