to start with you have not fully defined how the main OSC is setup i would add
OSCCON1 = $62;
secondly you have not set a clock source for timer1, as it is it expects a clock signal on the t1clk...
a pic16f345 is not a valid pic type, perhaps a simple schematic of your actual setup is called for and
then why don't you post the code you have tried. if you don't want to post the complete project...
Is there DT_INTS-14 that works with PIC16F345 ? I have tried to modify DT_INTS-14...changed few obvious difference's in #defines for timers 0/1/2 and and few more but LED blinky does not work....
Yes indeed, this is how progress and evolution works.
For example, there were centuries, where salt was much expensive in certain areas than gold.
Now salt is generally accessible.
Or such a...
Published on - 31st May 2010 17:38
Number of Views: 10125
It's almost Olympics time... so here's a topical program using PBP exclusively (no embedded Assembler) to give you a Stop-Watch with 1/100th Second Timing (yes that's 0.01 of a Second) and gives you REAL-TIME display on your LCD. Now you can do your own timing and challenge the official time...
The program demonstrates using TMR1 in BACKGROUND (multi-tasking), uses PICBasic Interrupts, and accounts for the fact that PICBasic doesn't respond to those Interrupts immediately. There's also a set-Up CALIBRATION menu item, so you can adjust and calibrate your timer to an accuracy of 360mS per Hour.
How does it do all that? Better download the PDF and find out...
Melanie
PS. Questions and Comments post on this forum/thread. No off-list mail please.
Re: PIC16F15345 and DT_INTS-14
Works.
dran11 - 31st August 2025, 21:50Thank you teach...master .