Author |
Message |
Topic: Any routine that Converts a Packed BCD reading to a String? |
BlueTower
Replies: 0
Views: 2392
|
Forum: General CCS C Discussion Posted: Mon Dec 22, 2008 9:35 am Subject: Any routine that Converts a Packed BCD reading to a String? |
Hi. I have a Packed BCD buffer of 6 bytes and want to convert to a 3 byte.
Note that bytes 5 & 6 of convPBCD represent values <1 and are ignored.
Any available routine? |
Topic: Any function for converting a string to unsigned int32? |
BlueTower
Replies: 1
Views: 2783
|
Forum: General CCS C Discussion Posted: Mon Dec 22, 2008 7:47 am Subject: Any function for converting a string to unsigned int32? |
Hi. I have a 20 byte string buffer and I want to convert to an unsigned int32. Of course the string buffer is filled with only 8 first bytes and rest are null. Any ideas?
Regards |
Topic: Can I have the same ISR for Timer3 & INT0? |
BlueTower
Replies: 3
Views: 3568
|
Forum: General CCS C Discussion Posted: Thu Dec 18, 2008 10:31 am Subject: Can I have the same ISR for Timer3 & INT0? |
Hi. How can I make the pc to jump to one ISR for #INT_TIMER3 & #INT_EXT. Can I do that? Can I have the same ISR for Timer3 & INT0?
Regards |
Topic: Interrupt Set-up |
BlueTower
Replies: 14
Views: 10968
|
Forum: General CCS C Discussion Posted: Wed Dec 10, 2008 9:40 am Subject: Interrupt Set-up |
I am doing the changes. Could you please check the following:
RCON = 0x93; // Reset control register, enable interrupt priority functions
// What should I use?
//TRISA = 0x0D;
SET_TRIS_A(0 ... |
Topic: Interrupt Set-up |
BlueTower
Replies: 14
Views: 10968
|
Forum: General CCS C Discussion Posted: Tue Dec 09, 2008 11:39 am Subject: Interrupt Set-up |
thanks I'll try that |
Topic: Interrupt Set-up |
BlueTower
Replies: 14
Views: 10968
|
Forum: General CCS C Discussion Posted: Tue Dec 09, 2008 11:19 am Subject: Interrupt Set-up |
I am really confused now.
My code:
set_timer1(0); // Used for 2 seond clock for RTC
// External 32.768KHz crystal
T1CON = 0x4F;
while(get_timer1() < 4096); ... |
Topic: Interrupt Set-up |
BlueTower
Replies: 14
Views: 10968
|
Forum: General CCS C Discussion Posted: Tue Dec 09, 2008 10:39 am Subject: Interrupt Set-up |
I have corrected this timer1 funny error by using the set_timer1(0) instead of writing individual registers before seting up T1CON register and 'while(get_timer1() < 4096)'.
My register.c file:
... |
Topic: Interrupt Set-up |
BlueTower
Replies: 14
Views: 10968
|
Forum: General CCS C Discussion Posted: Tue Dec 09, 2008 5:47 am Subject: Interrupt Set-up |
Hi I have found the cause of these errors. I had definitions of PORTAbits and PORTEbits elsewhere aswell. I have shorted that out. Now the normal 'typical' layout is been accepted.
Back to main pr ... |
Topic: Interrupt Set-up |
BlueTower
Replies: 14
Views: 10968
|
Forum: General CCS C Discussion Posted: Mon Dec 08, 2008 7:56 am Subject: Interrupt Set-up |
Quite true. It is found in C:\Program Files\PICC\Devices called 18F65J90.h
I have put that at the very beginning and place my 18f65J90_SFR.h files along with my includes.
Now I've got a list of ... |
Topic: Interrupt Set-up |
BlueTower
Replies: 14
Views: 10968
|
Forum: General CCS C Discussion Posted: Mon Dec 08, 2008 5:54 am Subject: Interrupt Set-up |
Good comments. I have changed to the normal 'typical' layout.
When I removed my #DEVICE statement from 18F65J90_SFR.h file and place it on next line I got the following error:
*** Error 128 &quo ... |
Topic: Interrupt Set-up |
BlueTower
Replies: 14
Views: 10968
|
Forum: General CCS C Discussion Posted: Mon Dec 08, 2008 5:12 am Subject: Interrupt Set-up |
Hi. I have changed to the following:
#INT_TIMER1 HIGH //line 120
void high_isr (void)...
could you be more specific on where should I add the phrase #device HIGH_INTS=TRUE ? I have adde ... |
Topic: Interrupt Set-up |
BlueTower
Replies: 14
Views: 10968
|
Forum: General CCS C Discussion Posted: Mon Dec 01, 2008 8:45 am Subject: Interrupt Set-up |
Hi all. My register.c file:
//Comments - File description
#include .... //included files
#Fuses .... //Configuration bits set-up
//declaration of local function & variables
#INT_TIMER ... |
Topic: TMR1H doesn't increment! |
BlueTower
Replies: 3
Views: 3960
|
Forum: General CCS C Discussion Posted: Mon Dec 01, 2008 6:08 am Subject: TMR1H doesn't increment! |
Thanks my friend. The best way to do it in order debugging to work as well for Timer1 & Timer3 is enable 8 bit read/write and use the get_timer1(), get_timer3() function. This way all 16 bits will ... |
Topic: TMR1H doesn't increment! |
BlueTower
Replies: 3
Views: 3960
|
Forum: General CCS C Discussion Posted: Sun Nov 30, 2008 3:01 pm Subject: TMR1H doesn't increment! |
I am using PIC18F65J90 and in my code I have:
TMR1L = 0x00; // Used for 2 seond clock for RTC
TMR1H = 0x00; // External 32.768KHz crystal
T1CON = 0x4F;
while(!(TMR1H ... |
Topic: Configuration bits setup |
BlueTower
Replies: 7
Views: 10503
|
Forum: General CCS C Discussion Posted: Sun Nov 30, 2008 2:47 pm Subject: Configuration bits setup |
I found correct configuration:
// PIC config register setup
//#pragma config DEBUG = ON, XINST = OFF, STVREN = ON, WDTEN = OFF
#FUSES DEBUG //Debug mode for use with ICD
#FUSES NOXINST ... |
|