Difference between revisions of "CAN"

From ElectroDragon
Jump to navigation Jump to search
(Documents)
(Schematic)
Line 28: Line 28:
 
File:Can_uccb_sch_(2).jpg | CAN USB Reference SCH 01
 
File:Can_uccb_sch_(2).jpg | CAN USB Reference SCH 01
 
File:Can-usb_sch.png | CAN USB SCH 02
 
File:Can-usb_sch.png | CAN USB SCH 02
 +
File:CAN_USB_pin_definition_01.png | CAN USB pin definiton
 
</gallery>
 
</gallery>
  

Revision as of 00:50, 15 November 2019

ICs

Tutorial

Pin definition

  • VCC - 5V power input pin
  • GND - power ground pin
  • CS - SPI SLAVE select pin (Active low)
  • SO - SPI master input slave output pin
  • SI - SPI master output slave input pin
  • SCLK - SPI clock pin
  • INT - MCP2515 interrupt pin

Interface

  • J1 120R resistor terminal selection
  • J2 CANH, CANL KF301-2P Block Output
  • J3 CANH, CANL pin output

Schematic

CAN USB

CAN UCCB Commands

UCCB firmware

000005: C  (send close command) 
000006: v  (ask for firmware version)
000007: v0102 (get version number from device)
000008: V   (ask for hardware version)
000009: V0101
000010: N   
000011: N16000000
000012: W2D00
000013:
000014: S8  (set speed to 1000000 b/s)
000015: 
000016: O   (open CAN for frame transmission and reception)
000017: 
000018: t00181122334455667788 (transmit frame type standard id = 1 length 8 bytes)
000019: z
000020: t0890
000021: M00007000000010000000010    (set id filter for ID=1 and ID=1)

Documents