Sleep

Waking PIC's Up From Sleep PIC18 PORTB This is often just an IRQ for pins RB7:4 not the whole port UART RX No this won't work!!!! The UART needs the osc to create its internal baud timer.  If you need to wake up on RX connect to the pin to an INT pin also, or […]

Read More

Defines

Microchip define examples #ifdef __DEBUG //Debug mode selected in MPLAB #if defined(__18CXX) #elif defined(__C30__) #elif defined (__PIC32MX__) #else #endif #ifndef __DEBUG #if (defined(__18CXX) & !defined(PIC18F87J50_PIM)) #endif #if defined(PIC18F87J50_PIM) || defined(PIC18F46J50_PIM) #if defined(__PIC24FJ256GB110__) #if defined(__18F46J50)   Is This Microcontoller In Use #if defined( __PIC24FJ256GB106__ ) #if defined(__PIC24FJ256GB110__) || defined(__PIC24FJ256GB106__) || defined(__PIC24FJ256GA110__) || defined(__PIC24FJ256GB210__)   Handy UART Setup Example #define […]

Read More