Presentation is loading. Please wait.

Presentation is loading. Please wait.

MS_uC / dnd / V08 3- 1 RTC - Real Time Clock Programming Microcontroller CAN – Analog Digital Converter Autumn term 2008 32K Byte Burst Flash 64K or 96K.

Similar presentations


Presentation on theme: "MS_uC / dnd / V08 3- 1 RTC - Real Time Clock Programming Microcontroller CAN – Analog Digital Converter Autumn term 2008 32K Byte Burst Flash 64K or 96K."— Presentation transcript:

1 MS_uC / dnd / V RTC - Real Time Clock Programming Microcontroller CAN – Analog Digital Converter Autumn term K Byte Burst Flash 64K or 96K Byte SRAM 256K or 512K Byte Burst Flash OTP Mem UARTI2CSPI TIMRTC EXT. Bus GPIO USB 2.0FS CAN 2.0B Enet MAC PFQ BC DMA INTR Cntl ARM966 E CORE w/DSP 96 MHz CLK Cntl ADC LVD BOD PLL JTAGETM9 STR912FW44

2 MS_uC / dnd / V RTC - Real Time Clock CAN zIntroduction zCAN Pin assignments zCAN Properties zBus Properties zTransmission rates zSerial data format zBus access zCAN features zCAN diagram zCAN register map zCAN configuration zPin configuration

3 MS_uC / dnd / V RTC - Real Time Clock zCAN (Controller Area Network) has been developed in 1981 yRobert Bosch GmbH and Intel zCAN was originally planed for the car industry yCAN is also established in the automation and medicinal industry zThe CiA (CAN in Automation) has defined many industrial standards ywww.can ‑ cia.org Introduction

4 MS_uC / dnd / V RTC - Real Time Clock CAN pin assignments D-Sub male on PC Pin DB9 SymbolText 1-Reserved 2CAN_LCAN_L bus line dominant low 3CAN_GNDCAN Ground 4-Reserved 5(CAN_SHIELD)Optional CAN Shield 6(GND)Optional Ground 7CAN_HCAN_H bus line dominant high 8-Reserved 9(CAN_V+)Optional CAN external power supply Male -> Stecker Female -> Buchse

5 MS_uC / dnd / V RTC - Real Time Clock CAN Properties Nods number30 Bus length40 until 5000 m, in function of the transmission rate Bus managementSystem Multi-Master, but it can also be used with a Master/Slave architecture Access methodologyCarrier Sense Multiple Access/Collision Avoidance (CSMA/CA) ID priority StandardsCAN 2.0A (11 bit ID) CAN 2.0B (29 bit ID) Transmission ratesmax. 1 M bit/s Bytes transmitted per telegram max. 8 CableTwo cables for the data and identifiers

6 MS_uC / dnd / V RTC - Real Time Clock BUS properties zThe data are transmitted in a differential way yReduction of the ambiance noise zThe bus contains the following levels yDominant (logical low level) yRecessive (logical high level)

7 MS_uC / dnd / V RTC - Real Time Clock Transmission rate Transmission rate (Baud) [kBit/s] Maximum length of the network

8 MS_uC / dnd / V RTC - Real Time Clock Serial data format (logical representation) zSOF: Sart Of Frame zIdent: Identifier zIDE: Identifier Extension Bit zDLC: Data Length Code zData zCRC: Cyclic Redundancy Check zACK: Acknowledge Bit zEOF: End Of Frame zIFS: Inter Frame Space

9 MS_uC / dnd / V RTC - Real Time Clock CAN Bus Arbitration Method

10 MS_uC / dnd / V RTC - Real Time Clock CAN features zSupport CAN protocol version 2.0 part A and B zBit rates up to 1 MBits/s z32 Message Objects zEach Message Object has its own identifier mask zProgrammable FIFO zMask able interrupt zDisable Automatic Re-Transmission mode for Timer Triggered CAN applications zProgrammable loop-back mode for test operation zTwo 16-bit module interfaces to the APB bus

11 MS_uC / dnd / V RTC - Real Time Clock CAN diagram

12 MS_uC / dnd / V RTC - Real Time Clock CAN register map (1/2)

13 MS_uC / dnd / V RTC - Real Time Clock CAN register map (2/2)

14 MS_uC / dnd / V RTC - Real Time Clock CAN Control Register (CAN_CR)

15 MS_uC / dnd / V RTC - Real Time Clock CAN Status Register (CAN_SR)

16 MS_uC / dnd / V RTC - Real Time Clock CAN Bit Timing Register (CAN_BTR)

17 MS_uC / dnd / V RTC - Real Time Clock CAN Configuration (1/2) zConfigure the operating mode  Register: CAN_CR  The library function: CAN_Init  Structure variable member: CAN_ConfigParameters zConfigure the bit rate  Register: CAN_BTR  The library function: CAN_Init  Structure variable member: CAN_Bitrate zConfigure the transmit and receive messages yMessage interface register sets yThe bibliotheca functions  CAN_SetTxMsgObj and CAN_SetRxMsgObj

18 MS_uC / dnd / V RTC - Real Time Clock CAN Configuration (2/2)

19 MS_uC / dnd / V RTC - Real Time Clock Pin connections of CAN (1/2) STR91x ARM966 manual pdf, 4.1 pin functions page 36 P5.0 CAN_RX Alternate Input 1 P5.1 CAN_TX Alternate Output 2  Use CAN port of MCBSTR9. Which port?

20 MS_uC / dnd / V RTC - Real Time Clock Pin Connections of CAN (2/2)


Download ppt "MS_uC / dnd / V08 3- 1 RTC - Real Time Clock Programming Microcontroller CAN – Analog Digital Converter Autumn term 2008 32K Byte Burst Flash 64K or 96K."

Similar presentations


Ads by Google