TMR (using MCC)

TMR0 – IRQ This example modifies TMR0 in the IRQ to obtain a roll over every 1mS. You could use a timer with a prescaller for this, but in this example we show how it’s possible on TMR0 with no prescaller (leaving your prescaller timers available for other uses) Using your own irq function

Read More

I2C (using MCC)

I2C Address Set as right shifted byte address (excluding RW at bit 0).So 0b01101000 is set as (0x68 >> 1), not 0x68. We always specify I2C addresses as the normal byte address, so we would use (0x68 >> 1) when setting the address to be used. Example usage (without interrupts) How we use in our […]

Read More

ADC (using MCC)

ADC Settings FRC Does your uC have a FRC to use as the clock source? Nice and simple if it does. FVR Does your uC have a FVR to use as the reference voltage? Useful if you want an accurate reference, but not useful it you want your analog readings referenced to the uC power […]

Read More