AVR AT90CAN128 with MCP2551 and Internal CAN

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 6.

Moderator: Benj

Post Reply
PanTau
Posts: 3
Joined: Fri Apr 19, 2013 3:30 pm

AVR AT90CAN128 with MCP2551 and Internal CAN

Post by PanTau »

Hi there,

My development environment consists of a AT90CAN128 and the driver MCP2551 with 16MHz.
In Flowcode V6 (6.0.10) Professionally, I have the CAN bus is set to Internal 1 and 125kbit. The port for CANTx and CANRx are set correctly.

My program is as follows:
- begin
- CAN Initialize
- Loop start
- SetTxData (0, 8, 11, 22, 33, 44, 55, 66, 77, 88)
- SendBuffer(0)
- Wait 1s
- End of loop
- end

However, no data are available on my terminal on the PC.
If I program the whole thing with Atmel Studio 6.1 or Bascom, I receive the data sent on my PC.

What am I doing wrong? How can I bring my board to be placed under Flowcode 6 to send data via the CAN bus?

Thanks for the help.

------

Hallo,

meine Entwicklungsumgebung besteht aus einem AT90CAN128 und dem Treiber MCP2551 mit 16MHz.
In Flowcode V6 (6.0.10) Professionell, habe ich den CAN-Bus auf Internal 1 und 125KBIT eingestellt. Der Port für CANTx und CANRx sind richtig festgelegt.

Mein Programm besteht folgendermaßen:
- Start
- CAN Initialize
- Schleife Anfang
- SetTxData (0, 8, 11, 22, 33, 44, 55, 66, 77, 88)
- SendBuffer(0)
- Wait 1s
- Schleife Ende

Auf meinem Terminal am PC kommen jedoch keine Daten an.
Wenn ich das ganze mit Atmel Studio 6.1 oder Bascom programmiere, empfange ich die gesendeten Daten auf meinem PC.

Was mache ich falsch? Wie kann ich mein Board dazu bringen, unter Flowcode 6, Daten über den CAN bus zu senden?


Vielen Dank für die Hilfe.

Post Reply