基于单片机CAN总线AO智能节点设计讲解

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

基于单片机的CAN总线AO节点设计指导老师:罗雪莲学生姓名:汤果军1.任务书•1、利用单片机89C51、CAN总线控制器、CAN总线驱动器构成CAN通信单元;•2、利用TLC5620数模转换器构成CAN总线AO节点单元;•3、使用汇编语言或C语言编制程序。2.方案选择(1)基于51单片机和SJA1000CAN控制器的CAN节点实现低成本,可移性强,编程方便,系统设计方案多(2)基于DSP芯片的嵌入式控制器CAN节点实现具有很强的数字信号处理能力,适合大量数据的场合,成本较高3.硬件模块介绍主控制器CAN总线驱动器AO智能节点设计CAN协议控制器3.1主控制器单元整个节点的中心,通过访问CAN协议控制器来实现对CAN总线的访问;同时,控制AO节点单元实现数模转换(1)主控制器电路芯片:AT89C51(2)看门狗电路芯片:MAX805L1234ABCD4321DCBATitleNumberRevisionSizeA4Date:24-May-2012SheetofFile:D:\基于CAN总线的AO设计\汤果军.ddbDrawnBy:C230PFC130PFX111.0592MHZ+5VR2120X1X2X1X2RSTMALEEA/VP31X119X218RESET9RD17WR16INT012INT113T014T115P101P112P123P134P145P156P167P178P0039P0138P0237P0336P0435P0534P0633P0732P2021P2122P2223P2324P2425P2526P2627P2728PSEN29ALE/P30TXD11RXD10U189C51AT89S51D0D1D2D3D4D5D6D7CS0P10P11P12P13P14P15P16P17CANINTWRRDWDI12345678J1CON8P10P11P12P13P14P15P16P17P21AD61AD72ALE3/CS4/RD5/WR6CLKOUT7VSS18XTAL19XTAL210MODE11VDD312VDD218VDD122VSS315VSS221TX013TX114RX019RX120/RST17/INT16AD023AD124AD225AD326AD427AD528SJA1000U4RSTSCANINTWRRDALECS0D0D1D2D3D4D5D6D7+5VTXD1GND2VCC3RXD4VREF5CANL6CANH7RS882C250U5CANRXDCANTXD+5VX212MHZC915PFC1015PFD1IN4148D2IN4148C730PFC830PFR447KCANHCANLVBAT8RST7WDI6PFO5VOUT1CVV2GND3PFI4U3MAX805LU10B74LS02U10A74LS02U10C74LS02RSTSRSTM+5V+5VWDIB1RST4C10uFR18.2KD3IN4148R510K+5VADJ1Vout2Vin3U9LM317LZGND1REFA2REFB3REFC4REFD5DATA6CLK7LOAD8DACD9DACC10DACB11DACA12LDAC13VCC14U6TLC56201OUT11IN-21IN+3VCC42IN+52IN-62OUT73OUT83IN-93IN+10GND114IN+124IN-134OUT14U8LM324R231KR2410K+12VDCR610K+5VP22DACADACBDACCDACDP21P23P24R114KR124KR134KR144KR71KR81KR151KR161KR171KR181KR194KR214KR204KR224KR101KR91KDACADACBDACCDACDAO0AO1AO2AO3+24VP22P23P24主控制器AT89C51电路原理图1234ABCD4321DCBATitleNumberRevisionSizeA4Date:24-May-2012SheetofFile:D:\基于CAN总线的AO设计\汤果军.ddbDrawnBy:C230PFC130PFX111.0592MHZ+5VR2120X1X2X1X2RSTMALEEA/VP31X119X218RESET9RD17WR16INT012INT113T014T115P101P112P123P134P145P156P167P178P0039P0138P0237P0336P0435P0534P0633P0732P2021P2122P2223P2324P2425P2526P2627P2728PSEN29ALE/P30TXD11RXD10U189C51AT89S51D0D1D2D3D4D5D6D7CS0P10P11P12P13P14P15P16P17CANINTWRRDWDI12345678J1CON8P10P11P12P13P14P15P16P17P21AD61AD72ALE3/CS4/RD5/WR6CLKOUT7VSS18XTAL19XTAL210MODE11VDD312VDD218VDD122VSS315VSS221TX013TX114RX019RX120/RST17/INT16AD023AD124AD225AD326AD427AD528SJA1000U4RSTSCANINTWRRDALECS0D0D1D2D3D4D5D6D7+5VTXD1GND2VCC3RXD4VREF5CANL6CANH7RS882C250U5CANRXDCANTXD+5VX212MHZC915PFC1015PFD1IN4148D2IN4148C730PFC830PFR447KCANHCANLVBAT8RST7WDI6PFO5VOUT1CVV2GND3PFI4U3MAX805LU10B74LS02U10A74LS02U10C74LS02RSTSRSTM+5V+5VWDIB1RST4C10uFR18.2KD3IN4148R510K+5VADJ1Vout2Vin3U9LM317LZGND1REFA2REFB3REFC4REFD5DATA6CLK7LOAD8DACD9DACC10DACB11DACA12LDAC13VCC14U6TLC56201OUT11IN-21IN+3VCC42IN+52IN-62OUT73OUT83IN-93IN+10GND114IN+124IN-134OUT14U8LM324R231KR2410K+12VDCR610K+5VP22DACADACBDACCDACDP21P23P24R114KR124KR134KR144KR71KR81KR151KR161KR171KR181KR194KR214KR204KR224KR101KR91KDACADACBDACCDACDAO0AO1AO2AO3+24VP22P23P24看门狗电路原理图3.2CAN通信单元CAN通信单元是核心模块之一,智能节点相互沟通的基础。•CAN协议控制器:SJA1000•CAN总线驱动器:82C2501234ABCD4321DCBATitleNumberRevisionSizeA4Date:24-May-2012SheetofFile:D:\基于CAN总线的AO设计\汤果军.ddbDrawnBy:C230PFC130PFX111.0592MHZ+5VR2120X1X2X1X2RSTMALEEA/VP31X119X218RESET9RD17WR16INT012INT113T014T115P101P112P123P134P145P156P167P178P0039P0138P0237P0336P0435P0534P0633P0732P2021P2122P2223P2324P2425P2526P2627P2728PSEN29ALE/P30TXD11RXD10U189C51AT89S51D0D1D2D3D4D5D6D7CS0P10P11P12P13P14P15P16P17CANINTWRRDWDI12345678J1CON8P10P11P12P13P14P15P16P17P21AD61AD72ALE3/CS4/RD5/WR6CLKOUT7VSS18XTAL19XTAL210MODE11VDD312VDD218VDD122VSS315VSS221TX013TX114RX019RX120/RST17/INT16AD023AD124AD225AD326AD427AD528SJA1000U4RSTSCANINTWRRDALECS0D0D1D2D3D4D5D6D7+5VTXD1GND2VCC3RXD4VREF5CANL6CANH7RS882C250U5CANRXDCANTXD+5VX212MHZC915PFC1015PFD1IN4148D2IN4148C730PFC830PFR447KCANHCANLVBAT8RST7WDI6PFO5VOUT1CVV2GND3PFI4U3MAX805LU10B74LS02U10A74LS02U10C74LS02RSTSRSTM+5V+5VWDIB1RST4C10uFR18.2KD3IN4148R510K+5VADJ1Vout2Vin3U9LM317LZGND1REFA2REFB3REFC4REFD5DATA6CLK7LOAD8DACD9DACC10DACB11DACA12LDAC13VCC14U6TLC56201OUT11IN-21IN+3VCC42IN+52IN-62OUT73OUT83IN-93IN+10GND114IN+124IN-134OUT14U8LM324R231KR2410K+12VDCR610K+5VP22DACADACBDACCDACDP21P23P24R114KR124KR134KR144KR71KR81KR151KR161KR171KR181KR194KR214KR204KR224KR101KR91KDACADACBDACCDACDAO0AO1AO2AO3+24VP22P23P24CAN通信单元电路原理图2.3AO节点功能单元数模转换器:TLC5620,放大电路1234ABCD4321DCBATitleNumberRevisionSizeA4Date:24-May-2012SheetofFile:D:\基于CAN总线的AO设计\汤果军.ddbDrawnBy:C230PFC130PFX111.0592MHZ+5VR2120X1X2X1X2RSTMALEEA/VP31X119X218RESET9RD17WR16INT012INT113T014T115P101P112P123P134P145P156P167P178P0039P0138P0237P0336P0435P0534P0633P0732P2021P2122P2223P2324P2425P2526P2627P2728PSEN29ALE/P30TXD11RXD10U189C51AT89S51D0D1D2D3D4D5D6D7CS0P10P11P12P13P14P15P16P17CANINTWRRDWDI12345678J1CON8P10P11P12P13P14P15P16P17P21AD61AD72ALE3/CS4/RD5/WR6CLKOUT7VSS18XTAL19XTAL210MODE11VDD312VDD218VDD122VSS315VSS221TX013TX114RX019RX120/RST17/INT16AD023AD124AD225AD326AD427AD528SJA1000U4RSTSCANINTWRRDALECS0D0D1D2D3D4D5D6D7+5VTXD1GND2VCC3RXD4VREF5CANL6CANH7RS882C250U5CANRXDCANTXD+5VX212MHZC915PFC1015PFD1IN4148D2IN4148C730PFC830PFR447KCANHCANLVBAT8RST7WDI6PFO5VOUT1CVV2GND3PFI4U3MAX805L

1 / 17
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功