Hello I'm new here and I hope someone can help me. :)
First of all I have to say that I'm also relatively new to electronics (e.g. today I used an oscilloscope for the first time ;) ) - so please don't bash me, if I'm asking stupid questions. :P
I have the following problem:
I'm trying to use an ATmega32U4 in combination with a MCP2515.
I have burned the Arduino Leonardo bootloader onto it and set the fuses to LFuse: 0xBF, HFuse: 0xD0 EFuse: 0xCB. So the clock should be outputted at pin PC7. I've connected PC7 to pin 'OSC1' (pin 8) at the MCP2515.
The SPI bus is also connected properly.
I have changed the SPI lines at the library to:
#define P_MOSI B,2
#define P_MISO B,3
#define P_SCK B,1
//#define MCP2515_CS D,3 // Rev A
#define MCP2515_CS B,0 // Rev B
#define MCP2515_INT E,6
#define LED2_HIGH B,5
#define LED2_LOW B,5
If I try to initialize the CAN Bus, I get an error "CAN Init error".
So I guessed that the Clock Output is faulty.
I have connected an oscilloscope to the OSC1 pin and got the following graph.
Is it normal, that the clock output looks like this?
To make comparisons I've also checked the 16MHz Crystal. This wave looks better for me.
So am I right, that there is a problem with the CKOUT and if so, what can I do? ;)
I thank you very much for your help and hope you can understand me because English isn't my native language.