Search found 4 matches
- 20 Jun 2012 10:30
- Forum: mikroC PRO for PIC General
- Topic: CANSPIWrite always return non zero result
- Replies: 4
- Views: 1559
Re: CANSPIWrite always return non zero result
Hello, CANSPIWrite function will check if there is a empty transmitter. If it is found, function will write a message and it will be queued for sending. In this case FF will be returned. If there is no empty transmitter buffer, function will return 0. So it mean that I have a problem in hardware, r...
- 19 Jun 2012 19:51
- Forum: mikroC PRO for PIC General
- Topic: CANSPIWrite always return non zero result
- Replies: 4
- Views: 1559
Re: CANSPIWrite always return non zero result
Hello, Our CAN SPI modules have MCP2515 chip implemented. This chip has INT pin which can be connected to External Interrupt pin of the microcontroller. For example you can set this chip to generate interrupt when message is sent or received successfully. When appropriate interrupt is triggered you...
- 18 Jun 2012 06:21
- Forum: mikroC PRO for PIC General
- Topic: CANSPIWrite always return non zero result
- Replies: 4
- Views: 1559
CANSPIWrite always return non zero result
Hello, I use scheme similar to CAN/CANSPI example from uC manual. After some debugging all works fine except that I never see zero result (all transmit buffers full) for code below. I don't see zero result even if I send messages like mad. And some messages are corrupted/lost as result of intensive ...
- 19 Apr 2012 14:33
- Forum: mikroC General
- Topic: CAN problem, beginner
- Replies: 10
- Views: 4624
Re: CAN problem, beginner
Ok, I spend some time to understand how to setup CAN speed properly. So I would like to share this info with community :) I used this cool calculator: http://www.port.de/pages/misc/bittimings.php?lang=en Please bear in mind that you should divide real oscillator speed by 2 (as described in calculato...