智能车调试助手示波器数据与使用指南.pdfVIP

  • 2
  • 0
  • 约6.63千字
  • 约 10页
  • 2025-10-20 发布于北京
  • 举报

智能车调试助手示波器数据与使用指南.pdf

红树伟业智能车调试助手

帮助手册

一、示波器

1、通道的选中,x轴和y轴的缩放操作和显示方式与我们平常使用的示波器大同小异,这

里就不说了。需要特别注意的是本示波器的y轴一直在中间位置。

2、串口数据格式

每一帧为10个字节,每帧数据都以0xff作为帧头,后面8个字节分别为示波器4个

通道的原始数值,每个通道2个字节,高字节,低字节在后。一个完整的数据帧如下:

ffff8000700060005000

示波器四个通道得到的原始数据将分别是0x8000、0x7000、0x6000、0x5000,对应的

十进制为32768、28672、24576、20480。示波器最终值的计算如下:

最终值=原始值*(最大值-最小值)/65536+最小值

每个通道的最大值和最小值可以在示波器右下方进行设置,从而满足个性化需求。

比如,最大最小值可以根据你的AD位数和AD参考电压进行设置。16位AD参考电压为

5伏时,最大值设为5,最小值设为0,最终值将是实际电压值。8位AD参考电压为5伏时,

发送数据把8位AD值作为高字节,低字节为0x00,最大值设为5,最小值设为0,最终值

将是也实际电压值。

MangroveWeiyeIntelligent

VehicleDebuggingAssistant

帮助手册

1.Oscilloscope

1.Theselectionofchannels,thescalingoperationanddisymethodofx-axisandy-axisaresimilartot

hoseoftheoscilloscopesweusuallyuse,sowewon’tgointodetailshere.Itisimportanttonotethatthe

y-axisofthisoscilloscopeisalwaysinthemiddleposition.

2.Serialportdataformat

Eachframeis10bytes,andeachframeofdatauses0xffastheframeheader.Thenext8bytesarethe

originalvaluesofthe4channelsoftheoscilloscope.Eachchannelis2bytes,withthehighbyteinfrontandt

helowbyteintheback.Acompletedataframeisasfollows:

i8000700060005000

Theoriginaldataobtainedbythefourchannelsoftheoscilloscopewillbe0x8000,0x7000,0x6000,and

0x5000respectively,andthecorrespondingdecimalnumbersare32768,28672,24576,and20480.Thefinal

valueoftheoscilloscopeiscalculatedasfollows:

Finalvalue=originalvalue*(umvalue-minimumvalue)/65536+

minimumvalue

Theumandminimumvaluesofeachch

文档评论(0)

1亿VIP精品文档

相关文档