Hi all, Tinkering with C18 (finally!). FYI I'm still new to C with micros. Confused why this is happening... I've setup a quick timer-0 interrupt to multiplex some characters on =20 an LED display, but the values I'm assigning the characters to (in the =20 main code) are not being set. The disassembly listing shows that the =20 4 code lines starting with "muxcol =3D 2" are being ignored. (Partial) code... .... #pragma data unsigned char CharPattern0, CharPattern1=3D0b01011011, CharPattern2; unsigned char muxcol=3D0; .... #pragma code void main (void) { OSCCON =3D 0b01110111; // 16Mhz TRISA =3D 0b00010011; // AN0 is analog input, RA4 is switch input. TRISB =3D 0; TRISC =3D 0; // TODO -- testing... PORTB =3D 0b01010101; PORTC =3D 0b01010101; muxcol =3D 2; // TODO -- testing... CharPattern0 =3D 0b00000110; CharPattern1 =3D 0b01011011; CharPattern2 =3D 0b01001111; RCONbits.IPEN =3D 0; //disable priority levels T0CON =3D 0b11000100; INTCONbits.TMR0IE =3D 1; INTCONbits.GIE =3D 1; while (1) ; } (Partial) disassembly listing... .... 51: PORTC =3D 0b01010101; 002C 6E82 MOVWF 0xf82, ACCESS 52: 53: muxcol =3D 2; 54: 55: // TODO -- testing... 56: CharPattern0 =3D 0b00000110; 57: CharPattern1 =3D 0b01011011; 58: CharPattern2 =3D 0b01001111; 59: 60: RCONbits.IPEN =3D 0; //disable priority leve= ls 002E 9ED0 BCF 0xfd0, 0x7, ACCESS 61: T0CON =3D 0b11000100; 0030 0EC4 MOVLW 0xc4 0032 6ED5 MOVWF 0xfd5, ACCESS 62: INTCONbits.TMR0IE =3D 1; 0034 8AF2 BSF 0xff2, 0x5, ACCESS .... Any clue why this is happening? Thanks, -Neil. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .