Author |
Message |
Topic: PIC18F4580 CANBus TX/RX issue - Loopback works... |
LMS_EE
Replies: 22
Views: 35973
|
Forum: General CCS C Discussion Posted: Mon Nov 01, 2010 9:27 am Subject: PIC18F4580 CANBus TX/RX issue - Loopback works... |
Hey PCM
Thanks for the step in the right direction. Can you do me a favor when you get a chance and see if you can see canbus output messages on the TX pin of the first MCU when you send it an RS23 ... |
Topic: PIC18F4580 CANBus TX/RX issue - Loopback works... |
LMS_EE
Replies: 22
Views: 35973
|
Forum: General CCS C Discussion Posted: Fri Oct 29, 2010 7:08 am Subject: PIC18F4580 CANBus TX/RX issue - Loopback works... |
1. Here is the canbus related part of the circuit:
http://img576.imageshack.us/i/shadowcanbus.png/
2. My company recently purchased the ccs compiler so i hope its up to date. version 4.112
I r ... |
Topic: PIC18F4580 CANBus TX/RX issue - Loopback works... |
LMS_EE
Replies: 22
Views: 35973
|
Forum: General CCS C Discussion Posted: Thu Oct 28, 2010 1:22 pm Subject: PIC18F4580 CANBus TX/RX issue - Loopback works... |
So it turns out the output signal tx, from the mcu, I was seeing was nothing but the mcu resetting itself many times over again.
Heres a picture of what I was seeing when I used the below code
htt ... |
Topic: PIC18F4580 CANBus TX/RX issue - Loopback works... |
LMS_EE
Replies: 22
Views: 35973
|
Forum: General CCS C Discussion Posted: Thu Oct 28, 2010 11:11 am Subject: PIC18F4580 CANBus TX/RX issue - Loopback works... |
Update: So with the RX and TX pins detached I managed to get the mcu to output a signal but only briefly. The signal seems to always be the same no matter what I set the ID and data to be. Its a low t ... |
Topic: PIC18F4580 CANBus TX/RX issue - Loopback works... |
LMS_EE
Replies: 22
Views: 35973
|
Forum: General CCS C Discussion Posted: Thu Oct 28, 2010 9:41 am Subject: PIC18F4580 CANBus TX/RX issue - Loopback works... |
The CANH line does have an inverted signal on it. I checked with the scope and its there its just too small of a swing to be picked up by the logic analyzer. Also there seems to be no propagation to t ... |
Topic: PIC18F4580 CANBus TX/RX issue - Loopback works... |
LMS_EE
Replies: 22
Views: 35973
|
Forum: General CCS C Discussion Posted: Thu Oct 28, 2010 9:07 am Subject: PIC18F4580 CANBus TX/RX issue - Loopback works... |
I disconnected the transceiver TX and RX lines from the pic. when i run my program, i get RS232 outputs every time i call the can_putd function. however, there is still no output on the can TX line of ... |
Topic: PIC18F4580 CANBus TX/RX issue - Loopback works... |
LMS_EE
Replies: 22
Views: 35973
|
Forum: General CCS C Discussion Posted: Thu Oct 28, 2010 6:17 am Subject: PIC18F4580 CANBus TX/RX issue - Loopback works... |
I didn't look at your program too much. But check the hardware on your
board. The TJA1040 CAN bus transceiver chip has a Standby input which
has an internal pull-up on it. If this pin is left floa ... |
Topic: PIC18F4580 CANBus TX/RX issue - Loopback works... |
LMS_EE
Replies: 22
Views: 35973
|
Forum: General CCS C Discussion Posted: Wed Oct 27, 2010 2:39 pm Subject: PIC18F4580 CANBus TX/RX issue - Loopback works... |
Oh yea and I had to change can_set_mode so that I wouldn't get stuck in the while loop when I told it to go into loopback mode:
void can_set_mode(CAN_OP_MODE mode) {
set_tris_b ... |
Topic: PIC18F4580 CANBus TX/RX issue - Loopback works... |
LMS_EE
Replies: 22
Views: 35973
|
Forum: General CCS C Discussion Posted: Wed Oct 27, 2010 2:30 pm Subject: PIC18F4580 CANBus TX/RX issue - Loopback works... |
Hello fellow thinkers...
I'm currently working on a project to which uses a pre-built board we designed in house. The board has a PIC184580 mcu connected to a TJa1040 canbus transceiver chip. I kno ... |
|