Based on jallib sample, with the previous compiler the led blinks
correctly.  With the new compiler the timer apparently never starts.

Sunish

-----Compile Results

;Compilation started at :1/7/2014 4:00:21 PM

;jal jalv24q (compiled Nov 13 2013)

;Compiler CommandLine:  J:\PROGRA~1\JALPack\compiler\jalv2.exe
"D:\Dropbox\Timers_N_Savers\Projects\HW\PIC\JAL\DTMFDecoderPhoneRecorder\src
\8ChannelDTMFController\DTMF_Controller_767_Timer0_test.jal" -s "J:\Program
Files\JALPack\lib;D:\Dropbox\Timers_N_Savers\Projects\HW\lib\sunjallib;D:\OS
S\jallib\include\jal"

include 16f767                   -- target PICmicro

pragma target OSC HS                -- HS crystal or resonator
pragma target clock 20_000_000     -- oscillator frequency
pragma target WDT  disabled
pragma target MCLR internal
pragma target BROWNOUT enabled

pragma target VOLTAGE V45
pragma target FCMEN DISABLED
pragma target IESO  DISABLED
pragma target  WDT DISABLED
pragma target  PWRTE ENABLED
pragma target  DEBUG DISABLED

enable_digital_io()

include delay

alias LED is pin_c1

pin_c1_direction = output

for 3 loop

LED = high

delay_100ms(6)

LED = low

delay_100ms(6)

end loop

delay_1s(2)

T0CON_T0CS = 0          -- internal instruction cycle

T0CON_PSA = 1   -- prescaler assigned to Timer0

T0CON_T0PS = 0                               -- no prescaling

include rtc_isr_tmr0

seconds = 0

INTCON_GIE = on

INTCON_TMR0IE = on

var byte prevsec = 0

forever loop

if seconds != prevsec then

prevsec = seconds

led = !led

end if

end loop

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/jallib.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to