This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CAN communication in Piccolo F28069

Other Parts Discussed in Thread: SN65HVD230, CONTROLSUITE

HI

I am new to the field of coomunication and using DSP.I have learnt the basics for F28069,Code Composer studio vS4.

I want to use the CAN communication between two F28069 control sticks.I have gone through eCANbacktoback mode in self test program.

Please suggest me the appropiate way to proceed ahead,considering am new to the field.

Thanking You in advance

Sneha

  • Hi Sneha,

    Please suggest me the appropiate way to proceed ahead,considering am new to the field.

    Yes, example codes are way to start but before that I hope you've already gone through SPRUH18D ie Technical Reference Manual for F28069 mcu.

    Go through its CAN section esp. Page number 1095, 1096 & 1097 which have the step by step implementations

    Regards,

    Gautam

  • HI

    thank you for the reply.

    it helped me alot. For the hardware interface, Can the two control sticks work simultaneously through CCS on a single PC or it requires to connect it to another PC.

    How the interface has to be done for hardware?

     

  • Can the two control sticks work simultaneously through CCS on a single PC or it requires to connect it to another PC. How the interface has to be done for hardware?

    Using individual PCs would be the easiest option for glitch free debugging. But you can run two instances of CCS (different version) say CCS v5.5 and CCS v6. Then refer this link:

    http://processors.wiki.ti.com/index.php/XDS100#Q:_Can_I_plug_more_than_one_XDS100_.28multiple_XDS100.29_into_a_PC.3F

    Regards,

    Gautam

  • Thank You gautam

    Using individual PCs seems a better option.

    Will get back to you,for further queries.

  • Sneha said:

    Using individual PCs seems a better option.

    Will get back to you,for further queries.

    Yup, do keep us informed.

    Regards,

    Gautam

  • Sneha,

    to connect two F28069 control sticks with CAN you will need two additional CAN-Transceivers, for example SN65HVD230. Transceivers are neccesary to generate the required CAN - voltage levels. For the CAN-arbitration phase it is required to read back the bus-status on a bit by bit base. This "readback" is also done by the transeiver.

      

  • Frank,

    I guess its possible without transeivers. What I intend to do is as follows:

    1. program F28069- 1 for transmission and using GPIO31 as CANTXA.

    2. Giving this signal from CANTXA to GPIO19 in SPISTEA mode.

    3.Using external wired connection from (GPIO19 in F28069 - 1) to (GPIO16 in SPISIMOA mode in F28069 - 2).

    4. From GPIO16 it is recieved by GPIO30 programmed as CANRXA in F28069.

    5. If possible i want to display something on the terminal.

    Please correct me if I am wrong.

    Your help would be appreciated ,I have five days in my hand to accomplish this.Kindly help me on urgent basis.

    Thanking you in advance

  • Sorry but I do not understand your draft.

    Why would you wire CANTXA (GPIO31) to GPIO19 in SPI-Mode? What has SPI to do with CAN? GPIO19 can be muxed as (SPISTE, SCIRXDB, ECAP1 or GPIO).

    Same for GPIO16 in SPI-Mode, what has it to do with CAN? I

    As I said before, CAN-transceivers are a must. I'd recommend to consult some basic textbooks about CAN to help you to understand the bus access methods.

  • I am not wiring GPIO31 to GPIO19......... But GPIO19 of F28069-1 t0 GPIO16 of F28069-2...

    I want to communicate between two control sticks using thier CAN interface ...but in the control stick we do not get the GPIO31 or GPIO30 on the header pins... The header pins have SPI.... 

    So how should the data transmission be done between two DSPs? Wont we have to transmit data from Gpio30/31 pins to one of the header pins available on control stick and then use wired connection between two DSps...

    Thanks for your replies..I look forward for more of your replies to correct me..

  • Sneha,

    ok, now I understand, what you'd like to do.

    Unfortunately you

    (1) cannot use GPIO19 as CANTX and GPIO16 as CANRX.  The GPIO - multiplexing is not a free switch bar, there are up to maximum 4 dedicated peripheral function per pin. For GPIO31 you can select between GPIO, CAN, QEP and PWM, for GPIO19 it is GPIO, SPISTE, ECAP1 and SCIRXDB - see F28069 datasheet.

    (2) On a F28069 - Stick pins GPIO31 and GPIO30 are not routed to the header-field - so you cannot access CANTx and CANRx.

    The only working solution would be to use F28069 ControlCards plus experimenter kits and solder CAN-Transceivers to GPIO31/30.

  • Frank

    Thank you.

    But for now I only have two F28069 control sticks with me and I need to establish communication between them.

    I think now i will have to use the SPI/SCI mode?? For that shouldi start with Spi backtoback ,loopback sample programs??

    I am short of time and this needs to be achieved in next three days...Please help me to proceed forward..

    And for CAN communication I will get the control cards and experimental kit..

    Looking forward to hear from you....

  • Sneha,

    you should open a new thread, because the new question is not related to CAN any more.

    Regarding SPI/SCI: If I remember correct, the signals both for SCI and SPI are accessible on the 28069 - Header Pins, so it is your choice to use SPI or SCI.  Usually SCI requires also a sort of transceiver (such as RS232), wheras for SPI you can directl wire the sticks. However, SPI is usually more sensible to EMI.

    And yes: start with the examples from ControlSuite.