Author |
Message |
Topic: Global variable is passed incorrectly |
Sophi
Replies: 3
Views: 5567
|
Forum: General CCS C Discussion Posted: Tue Apr 25, 2006 9:45 pm Subject: Global variable is passed incorrectly |
Hi-
I want to pass ad12temp between main and an interrupt. When I interrupt, the value passed is incorrect. I know this because the wrong condition is returned. I thought it was because I am compari ... |
Topic: 24LC256 Read from specific address |
Sophi
Replies: 4
Views: 8522
|
Forum: General CCS C Discussion Posted: Sun Apr 09, 2006 6:50 pm Subject: 24LC256 Read from specific address |
Thanks for the link and suggestions PCM.
I have read all functions.
I thought I would not need the driver since all I am doing is reading.
The data sheet seems fairly straighforward on the steps t ... |
Topic: 24LC256 Read from specific address |
Sophi
Replies: 4
Views: 8522
|
Forum: General CCS C Discussion Posted: Sun Apr 09, 2006 7:18 am Subject: 24LC256 Read from specific address |
Hi- I am trying to read from a specific address inside an i2C 24LC256 eeprom.
1. My code works fine if I start at internal address '0000' altho I think I might just be lucky and am missing some basi ... |
Topic: "Counting loop" in Interrupt subroutine doesn't wo |
Sophi
Replies: 2
Views: 5411
|
Forum: General CCS C Discussion Posted: Wed Mar 22, 2006 11:36 am Subject: "Counting loop" in Interrupt subroutine doesn't wo |
|
Topic: Problem with ltc1298 and comparator interupt |
Sophi
Replies: 1
Views: 4639
|
Forum: General CCS C Discussion Posted: Tue Mar 21, 2006 8:09 pm Subject: Problem with ltc1298 and comparator interupt |
Hi- I started with the following code- it is a comparator interrupt on PortA . Pins A0, A1 wired together to a pushbutton switch. It works reliably.
#include <16F877A.H>
#fuses HS,NOWDT,NOPR ... |
Topic: Image to raw data conversion <OT> |
Sophi
Replies: 3
Views: 5350
|
Forum: General CCS C Discussion Posted: Sat Mar 18, 2006 6:56 pm Subject: Image to raw data conversion <OT> |
Try WinHex. You can google it and get a free trial. I just loaded a jpg into it and converted the binary file to Intel-Hex. Trial will only take files up to 200kB so bmp was too big.
WinHex conversi ... |
Topic: setup_comparator(A0_VR_A1_VR); ? |
Sophi
Replies: 1
Views: 6316
|
Forum: General CCS C Discussion Posted: Sat Mar 18, 2006 6:42 pm Subject: setup_comparator(A0_VR_A1_VR); ? |
Hi-
What do the modes of setup_comparator mean ? I see what setups I am allowed by the .h file but don't understand how the modes are defined (and where).
I have already searched this forum and the ... |
Topic: Is PortB the only place for a hardware interrupt? |
Sophi
Replies: 6
Views: 15480
|
Forum: General CCS C Discussion Posted: Sun Mar 12, 2006 7:02 am Subject: Is PortB the only place for a hardware interrupt? |
Thanks JohnP and PCM!
SophE |
Topic: Is PortB the only place for a hardware interrupt? |
Sophi
Replies: 6
Views: 15480
|
Forum: General CCS C Discussion Posted: Sat Mar 11, 2006 8:15 pm Subject: Is PortB the only place for a hardware interrupt? |
After reading the interrupt section things are still not that clear. In the PIC877A.h file it has a list of interrupts that I can use. I am still looking for a more complete description of how they wo ... |
Topic: Is PortB the only place for a hardware interrupt? |
Sophi
Replies: 6
Views: 15480
|
Forum: General CCS C Discussion Posted: Sat Mar 11, 2006 5:44 pm Subject: Is PortB the only place for a hardware interrupt? |
Thanks! Exactly what I needed.
*edit: and yes the title is very interesting
S |
Topic: Is PortB the only place for a hardware interrupt? |
Sophi
Replies: 6
Views: 15480
|
Forum: General CCS C Discussion Posted: Sat Mar 11, 2006 4:43 pm Subject: Is PortB the only place for a hardware interrupt? |
Hi-
I'm using PICF877A and want to use 2 interrupts. Is Port B the only Port that supports hardware-based interrupts...as in if I push a switch, the software will interrupt.
My Port B is all used u ... |
Topic: 24LC128 addressing |
Sophi
Replies: 4
Views: 11152
|
Forum: General CCS C Discussion Posted: Sat Feb 25, 2006 9:59 am Subject: 24LC128 addressing |
Thanks Ttelmah-
Yes I mean for it to loop forever. Its a test sound file. By file I mean the binary file that I am loading into the 24LC128, I only need to read from the eeprom so I load my file in ... |
Topic: 24LC128 addressing |
Sophi
Replies: 4
Views: 11152
|
Forum: General CCS C Discussion Posted: Sat Feb 25, 2006 8:06 am Subject: 24LC128 addressing |
Hi- a couple of questions about this eeprom and the i2c protocol:
I don't understand the data sheet for the 24LC128.
#include <16f877.H>
#use delay(clock=20000000)
#use i2c(Maste ... |
Topic: Recommend me DAC... |
Sophi
Replies: 16
Views: 26431
|
Forum: General CCS C Discussion Posted: Sun Feb 19, 2006 5:24 pm Subject: Recommend me DAC... |
If you really don't want to use i2C, try DAC0808. Very easy to use and cheap under $2 USD not surface mount.
*edit just saw u want 2 outputs. Sorry but DAC8080 only has one. But maybe something i ... |
Topic: Program seems to "fly" off the chip |
Sophi
Replies: 1
Views: 3992
|
Forum: General CCS C Discussion Posted: Sat Feb 18, 2006 9:24 am Subject: Program seems to "fly" off the chip |
This has been an intermittant problem that I've seen now with two unrelated projects (different boards, PICs and software).
I program the chip- 16F877A with ICProg, the chip works for a long while. T ... |
|