PWM transmit problem via CAN

View: New views
1 Messages — Rating Filter:   Alert me  

PWM transmit problem via CAN

by ismail Bayezit :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hallo Dear Friends

I am a new member of this group so i greet every members and also i am the executer of MPC555. I would like consult two of my problems about this board.

1) I prepared a program in Simulink which reads the pulse period (2ms (duty cycle=0.1)) and pulse width (20ms) of the PWM signal via MDASM and send it to my Kvaser card with the TouCAN Transmit  (TouCAN) icon. But  when i  follow the data flow, i see the records was changed as two different value . But it has to be same. Because i know that the generated signals' pulse width and pulse period did not change. What will be reason or source of this problem? maybe the sampling time. So i changed it many times , although i did not solve the problem

2) in the second problem i try to use CANdb packing icon to determine the byte wideness of the datas , to collect three different  kinds of information in one packet and to send it via CAN transmit. But when i sent them, i red zeros. When i used standart packing packet i can read the datas but CANdb Packing did not work. I could not read anything. What will be the source of my second problem.

Thank you very much in Advance

Best regards

Msc. Eng. Ismail Bayezit
Research Asistant
Istanbul Technical University
   
       
---------------------------------
Luggage? GPS? Comic books?
Check out fitting  gifts for grads at Yahoo! Search.

[Non-text portions of this message have been removed]