Timer1 pin problem

General discussion on mikroC for dsPIC30/33 and PIC24.
Post Reply
Author
Message
eeeboy
Posts: 4
Joined: 05 Feb 2010 07:30

Timer1 pin problem

#1 Post by eeeboy » 05 Feb 2010 07:39

Hi,
I'm using dsPIC30f6010. I need to use timer1 to count the input pulses. The timer1 has been integrated with the SOSC1 pin in the development board. Every time I try to connect the input source into the timer1 pin (T1CK), my program was stopped. Any suggestion/
Thank you.

User avatar
anikolic
mikroElektronika team
Posts: 1775
Joined: 17 Aug 2009 16:51
Location: Belgrade
Contact:

Re: Timer1 pin problem

#2 Post by anikolic » 08 Feb 2010 11:58

Hi,
Please do not open more than one topic on the same issue. Thank you!
I have answered you here: http://www.mikroe.com/forum/viewtopic.p ... 24#p118824
Web Department Manager

eeeboy
Posts: 4
Joined: 05 Feb 2010 07:30

Re: Timer1 pin problem

#3 Post by eeeboy » 08 Feb 2010 16:05

Sorry, I posted in the wrong box. I think my problem should be posted here in mikroC.
My configuration for the oscillator:
#define SRC_OSC 7372800
#define PLL_MULTIPLIER 8
#define PROG_POSTSCALER 1
#define FCY ((SRC_OSC * PLL_MULTIPLIER) / (PROG_POSTSCALER * 4))

I need to use Timer1 to count the number of pulse from input signal. In the pic30f6010, I see the pin T1CK is the same pin with SOSC1. I'm using PICDEM MC1 motor control development board. I think that pin was integarted with SOSC in the board. Do you know how to disconnect it?
If cannot, is there anyway to count the number of pulses without using the timer?
Thank you.

Post Reply

Return to “mikroC for dsPIC30/33 and PIC24 General”