No problem! I was able to get this workingI also use the MCP2551.
An example is planned but currently im drowning in work...
Search found 3 matches
- Fri Feb 03, 2017 2:35 pm
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 420885
Re: About the CAN controller.
- Mon Jan 23, 2017 4:12 am
- Forum: Hardware
- Topic: Calibrating ADC
- Replies: 5
- Views: 12670
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
- Sun Jan 22, 2017 3:12 am
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 420885
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 ...
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 ...