摄像头PIN脚简介与功能
已有 765 次阅读2016-9-19 13:50
|个人分类:技术文章
[align=left][size=2][backcolor=white][color=royalblue][font=宋体]从[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]Sensor[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]本身的引脚来看,它们一般有如下一些需要配置的引脚:[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]RESET[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]PWRDWN[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]VSYNC[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]HSYNC[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]PCLK[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]MCLK[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]SDA[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]SCL[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]AVDD[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]DVDD[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue]IOVDD[/color][/backcolor][/size][size=2][backcolor=yellow][color=royalblue][font=宋体],[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]还有就是数据引脚了。对于[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]30[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]万像素的[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]Sensor[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]有[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]8[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]个数据引脚:[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]D0——D7[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体],对于[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]200[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]万像素的[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]Sensor[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]有[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]10[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]个数据引脚:[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]D0——D9[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue] [/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]
[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]这些引脚的意义大致如下:[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#444444]
[/color][/backcolor][/size][b][size=2][backcolor=white][color=red]RESET[/color][/backcolor][/size][/b][size=2][backcolor=white][color=red][font=宋体]:[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]用来[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]reset sensor[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体];[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]RESET[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]一般是低有效,当脉冲为低时,[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]reset sensor[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体],而正常工作时,应该为高。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SSA5526[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]中,其为低有效。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#444444]
[/color][/backcolor][/size][b][size=2][backcolor=white][color=red]PWRDWN[/color][/backcolor][/size][/b][b][size=2][backcolor=white][color=red][font=宋体]:[/font][/color][/backcolor][/size][/b][size=2][backcolor=white][color=#333333]power down[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]引脚,切断供电。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=royalblue]PWRDWN[/color][/backcolor][/size][size=2][backcolor=white][color=royalblue][font=宋体]一般高有效,当脉冲为高时,进入省电模式,而正常工作时为低。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=red][font=宋体]但有些[/font][/color][/backcolor][/size][size=2][backcolor=white][color=red]sensor[/color][/backcolor][/size][size=2][backcolor=white][color=red][font=宋体]却是低有效[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体],比如[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SSB0520[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]。在使用不同[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]sensor[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]时,就需要注意这点。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SSA5526[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]中,其为高有效。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333] [/color][/backcolor][/size][size=2][backcolor=white][color=#444444]
[/color][/backcolor][/size][b][size=2][backcolor=white][color=red]HSYNC[/color][/backcolor][/size][/b][b][size=2][backcolor=white][color=red][font=宋体]:[/font][/color][/backcolor][/size][/b][size=2][backcolor=white][color=#333333][font=宋体]行同步,行锁存,换行信号,[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]sensor[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]在抓取一行数据开始的时刻,通过[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]HSYNC[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]引脚向[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]Camera interface[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]发出信号,告知其。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SSA5526[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]中,其为高有效。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333] [/color][/backcolor][/size][/align][align=left][size=2][backcolor=white][color=#333333][font=Arial, sans-serif]
[/font][/color][/backcolor][/size][b][size=2][backcolor=white][color=red]VSYNC[/color][/backcolor][/size][/b][b][size=2][backcolor=white][color=red][font=宋体]:[/font][/color][/backcolor][/size][/b][size=2][backcolor=white][color=#333333][font=宋体]帧同步,祯锁存,换页信号,这个与[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]HSYNC[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]对应,在[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]sensor[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]抓取一帧数据开始时,通过[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]VSYNC[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]引脚向[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]Camera interface[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]发出信号,告知其。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SSA5526[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]中,其为低有效。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333] [/color][/backcolor][/size][size=2][font=宋体][/font][/size][/align][align=left][size=2][color=#333333]320×240[/color][/size][size=2][color=#333333][font=宋体]的屏,每一行需要输入[/font][/color][/size][size=2][color=#333333]320[/color][/size][size=2][color=#333333][font=宋体]个脉冲来依次移位、锁存进一行的数据,然后来个[/font][/color][/size][size=2][color=#333333]HSYNC [/color][/size][size=2][color=#333333][font=宋体]脉冲换一行;这样依次输入[/font][/color][/size][size=2][color=#333333]240[/color][/size][size=2][color=#333333][font=宋体]行之后换行同时来个[/font][/color][/size][size=2][color=#333333]VSYNC[/color][/size][size=2][color=#333333][font=宋体]脉冲把行计数器清零,又重新从第一行开始刷新显示[/font][/color][/size][size=1][color=#444444][/color][/size][/align][align=left][b][size=2][color=red][font=Arial, sans-serif]PCLK[/font][/color][/size][/b][b][size=2][color=red][font=宋体]:[/font][/color][/size][/b][size=2][color=#333333][font=宋体]像素时钟,理解为[/font][/color][/size][size=2][color=#333333]sensor[/color][/size][size=2][color=#333333][font=宋体]抓取一个像素的脉冲高低。[/font][/color][/size][size=2][color=#333333]SSA5526[/color][/size][size=2][color=#333333][font=宋体]中,其为低有效。[/font][/color][/size][size=1][color=#444444][/color][/size][/align][align=left][size=1][color=#444444] [/color][/size][/align][align=left][b][size=2][color=red][font=Arial, sans-serif]MCLK[/font][/color][/size][/b][b][size=2][color=red][font=宋体]:[/font][/color][/size][/b][size=2][color=#333333]sensor[/color][/size][size=2][color=#333333][font=宋体]工作的时钟频率。由主控提供[/font][/color][/size][size=1][color=#444444][/color][/size][/align][align=left][size=1][color=#444444] [/color][/size][/align][align=left][b][size=2][backcolor=white][color=red]SCA[/color][/backcolor][/size][/b][b][size=2][backcolor=white][color=red][font=宋体]和[/font][/color][/backcolor][/size][/b][b][size=2][backcolor=white][color=red]SCL[/color][/backcolor][/size][/b][b][size=2][backcolor=white][color=red][font=宋体]:[/font][/color][/backcolor][/size][/b][size=2][backcolor=white][color=#333333][font=宋体]这是[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]I2C[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]的两条总线线路:[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SDA[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]为串行数据线,[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SCL[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]为串行时钟线。[/font][/color][/backcolor][/size][/align][align=left][size=1][backcolor=white][color=white]4X[/color][/backcolor][/size][size=2][backcolor=white][color=#444444]
[/color][/backcolor][/size][/align][size=2][backcolor=white][color=#333333][font=宋体]二、[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]I2C[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]总线在传送数据过程中共有[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]3[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]种特殊的电平变换情况,他们分别是:起始[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333](start)[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]、停止[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333](stop)[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]和响应[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333](aek)[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#444444]
[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体] 当[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SCL[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]为高电平时,[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SDA[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]由高电平向低电平跳变,这个表示起始条件;当[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SCL[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]是高电平时,[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SDA[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]线由低电平向高电平跳变表示停止条件。起始和停止条件一般由主机产生,总线在起始条件后被认为处于忙的状态,在停止条件的某段时间后总线被认为再次处于空闲状态。[/font][/color][/backcolor][/size][size=1][backcolor=white][color=white]/ ]9 ~$ `1 [. l* ^'Q j4 V[/color][/backcolor][/size][size=2][backcolor=white][color=#444444]
[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体] 响应信号是指从机在接收到[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]8b[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]数据后,向主机发出特定的低电平脉冲,表示已收到数据。在响应的时钟脉冲期间,从机必须将[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333]SDA[/color][/backcolor][/size][size=2][backcolor=white][color=#333333][font=宋体]线拉低使他在这个时钟脉冲的高电平期间保持稳定的低电平,主机收到应答信号后,根据实际情况做出是否继续传递信号的判断。若未收到应答信号,则判断为从机出现故障。[/font][/color][/backcolor][/size][size=2][backcolor=white][color=#333333] [/color][/backcolor][/size][size=2][backcolor=white][color=#444444]
[/color][/backcolor][/size]