Author |
Message |
Topic: TIMER1 too slow |
Flavio58
Replies: 4
Views: 17089
|
Forum: General CCS C Discussion Posted: Mon Sep 08, 2003 8:56 am Subject: TIMER1 too slow |
I have activated a timer1 connected at a 32Khz oscillator to manage the date/time in my project.
The function to manage the overflow is this
#int_timer1
void clock_isr()
{ ... |
Topic: Programm startup |
Flavio58
Replies: 1
Views: 12021
|
Forum: General CCS C Discussion Posted: Wed Aug 06, 2003 2:33 am Subject: Programm startup |
Excuse me for this stupid questions but I am a new pic user..... I created a project using PIC18 a microcontroller. To develop the software I used a ICD 2 and PICDEM 2 board. Using this board I wrote ... |
Topic: A small suggestion for CCS manual .... |
Flavio58
Replies: 5
Views: 19469
|
Forum: General CCS C Discussion Posted: Mon Aug 04, 2003 4:39 am Subject: A small suggestion for CCS manual .... |
Since in Micropchip PICxx datasheets all functions are explained using the registers...why in the CCS manual, near the compiler functions, you don't write the concerned register setting ? This is bec ... |
Topic: rtcc on timer 1 ... is possible ? |
Flavio58
Replies: 1
Views: 12567
|
Forum: General CCS C Discussion Posted: Mon Aug 04, 2003 3:39 am Subject: rtcc on timer 1 ... is possible ? |
In my project I use two crystal quartz. The first is a 4 MHZ quartz connected to OSC1 and OSC2 and is used as pic clock. The second quartz is a 32 KHZ quartz connected to RC0/T1OSO/T1CKL and RC1/T1OSI ... |
Topic: Timer1 using bit0 & bit1 on portc |
Flavio58
Replies: 2
Views: 14461
|
Forum: General CCS C Discussion Posted: Fri Aug 01, 2003 2:57 am Subject: Re: Timer1 using bit0 & bit1 on portc |
:=If your going to keep time using a crystle have a look at the thread on RTC. You will probably find some insight.
I known the rtcc method.... My problem is another. When you connect a crystal to a ... |
Topic: Timer1 using bit0 & bit1 on portc |
Flavio58
Replies: 2
Views: 14461
|
Forum: General CCS C Discussion Posted: Thu Jul 31, 2003 4:59 am Subject: Timer1 using bit0 & bit1 on portc |
To create an date/time system in my project I used a 32KHZ crystal connected at RC0/t1OSO/T1CKL and RC1/T1OSI/CCP2. To oscillate this crystal need that I set the T1CON register (T1OSCEN bit) with 1 (T ... |
Topic: Debug problem.... |
Flavio58
Replies: 1
Views: 12472
|
Forum: General CCS C Discussion Posted: Fri Jul 25, 2003 7:58 am Subject: Debug problem.... |
Using RTCC I created a clock that count the seconds number elapsed since 1-1-2001. In my software I wrote two functions.... The first receive as arguments the string address where store the date-time ... |
Topic: Rtcc |
Flavio58
Replies: 7
Views: 24690
|
Forum: General CCS C Discussion Posted: Wed Jul 16, 2003 1:05 am Subject: Re: Rtcc |
:=People use 32.768kHz crystals because they divide by an even power of 2 to get 1Hz. Also because they are so slow and low powered they can run for years off of a small battery. :=
This is the ans ... |
Topic: Rtcc |
Flavio58
Replies: 7
Views: 24690
|
Forum: General CCS C Discussion Posted: Tue Jul 15, 2003 8:31 am Subject: Re: Rtcc |
Page 181 ??? At page 181 of C Compiler Reference there is the Standard C definition .... (C Compiler Referrence Manual - MAY 2003) ___________________________ This message was ported from CCS's old fo ... |
Topic: Rtcc |
Flavio58
Replies: 7
Views: 24690
|
Forum: General CCS C Discussion Posted: Tue Jul 15, 2003 7:37 am Subject: Rtcc |
In my project I use a 32Khz quartz connected to pin rc0/t1oso/T1CKI (PIC18F452). In my software I use the rtcc interrupt to count the seconds number. In CCS example there is the definition :
#define ... |
Topic: RTCC ??? |
Flavio58
Replies: 1
Views: 12353
|
Forum: General CCS C Discussion Posted: Mon Jul 14, 2003 8:31 am Subject: RTCC ??? |
To create a system clock to memorize the date/time I used a method as this used in computer bios system. Into a setup variable I saved the second's number from a known date ... after I add the rtcc s ... |
Topic: Read_bank and write_bank |
Flavio58
Replies: 1
Views: 13014
|
Forum: General CCS C Discussion Posted: Mon Jul 07, 2003 6:35 am Subject: Read_bank and write_bank |
Excuse me but I am a novice of PIC programming....
In my project I must to comunicate with a FPGA using PSP.... In CCS example I saw the read_bank and write_bank functions... On CCS manual there is : ... |
Topic: ADC |
Flavio58
Replies: 4
Views: 20282
|
Forum: General CCS C Discussion Posted: Wed Jun 25, 2003 2:05 am Subject: Re: ADC |
:=c:\Program Files\Picc\Examples :=Look at the EX_ADMM.C file, for an example of using the :=read_adc() function with the PIC18. := :=Also look here for more examples: :=c:\Program Files\Picc\Drivers ... |
Topic: ADC |
Flavio58
Replies: 4
Views: 20282
|
Forum: General CCS C Discussion Posted: Tue Jun 24, 2003 9:14 am Subject: ADC |
Do you known where is possible to download some examples about the PIC18 ADC conversion ? I must to controll a 2.5v and a 3.3V on a board. Is possible execute this contrll using the ReadAdc() function ... |
Topic: Pointer in struct ..... |
Flavio58
Replies: 2
Views: 14706
|
Forum: General CCS C Discussion Posted: Tue Jun 24, 2003 8:35 am Subject: Pointer in struct ..... |
I tried to use some pointers into a structure but the compiler show me an error ...
My struct si :
struct errorMessage { char *language1; char *language2; } errs[] = { { "msg1", "msg2 ... |
|