Search found 3 matches

by jaegertuning
Fri Feb 03, 2017 2:35 pm
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 345069

Re: About the CAN controller.

ThomasB wrote:I also use the MCP2551.
An example is planned but currently im drowning in work...
No problem! I was able to get this working :D The code provided was perfect - I just needed to wire up my MCP2551 correctly.
by jaegertuning
Mon Jan 23, 2017 4:12 am
Forum: Hardware
Topic: Calibrating ADC
Replies: 5
Views: 11852

Re: Calibrating ADC

I'm assuming the DAC is not linear either? I was testing it and a voltage sent to the ADC from an external sensor was a bit higher than if the same value is sent through the DAC
by jaegertuning
Sun Jan 22, 2017 3:12 am
Forum: Hardware
Topic: About the CAN controller.
Replies: 175
Views: 345069

Re: About the CAN controller.

Update. Now the driver calculates the baud rate prescaler based on the APB clock and I added a few more baud rates. (requires math.h) CAN_Init intCAN_init(){ //Time quantum double __tq = 0; //Bit timing float __bt = 1000/CAN_cfg.speed; //enable module SET_PERI_REG_MASK(DPORT_PERIP_CLK_EN_REG, DPORT...