I'm using a PIC18F2550 that drives an LCD, and also receives input on INT0 (RB0) via a infrared receiver. I chose the PIC18F2550 for it's USB capabilities.
Because I'm connecting to a PC via USB, I used a 20Mhz crystal, scaled to 48Mhz :
Code: Select all
__CONFIG(1, USBPLL & IESODIS & FCMDIS & HSPLL & CPUDIV1 & PLLDIV5);
Can anyone please help me to calculate the values I need to setup Timer0 and RC5_TIME_BOUNDARY, RC5_TIME_TOO_SHORT, and RC5_TIME_TOO_LONG?