Author |
Message |
Topic: MAX6675 and 18F2580, temp always zero. Why? |
halibatsuiba
Replies: 19
Views: 34176
|
Forum: General CCS C Discussion Posted: Sat Aug 14, 2010 4:35 pm Subject: MAX6675 and 18F2580, temp always zero. Why? |
Howdy again.
I just got new MAX6675 from Sparkfun.com.
Replaced old one in breadboard and whadda'y'know... now it works.
Then I did put the old one back and it works too!
Code is still the same. ... |
Topic: MAX6675 and 18F2580, temp always zero. Why? |
halibatsuiba
Replies: 19
Views: 34176
|
Forum: General CCS C Discussion Posted: Tue Aug 10, 2010 9:26 pm Subject: MAX6675 and 18F2580, temp always zero. Why? |
Checked with scope: CS and clock lines are ok but there is nothing going on in data line.
No shorts in circuit either.
I find it hard to believe both chips I have would be dead.
Oh well, perhap ... |
Topic: MAX6675 and 18F2580, temp always zero. Why? |
halibatsuiba
Replies: 19
Views: 34176
|
Forum: General CCS C Discussion Posted: Sun Aug 08, 2010 4:25 pm Subject: MAX6675 and 18F2580, temp always zero. Why? |
void main()
{
int16 temp;
.
.
.
printf(lcd_putc,"TEMP: %x ", temp);
I noticed another problem in your program. You're trying to display
an 'int16' with "%x". That' ... |
Topic: MAX6675 and 18F2580, temp always zero. Why? |
halibatsuiba
Replies: 19
Views: 34176
|
Forum: General CCS C Discussion Posted: Sun Aug 08, 2010 3:56 pm Subject: MAX6675 and 18F2580, temp always zero. Why? |
I think they are very unclear about what mode to use. The sheet lists as one of the timing parameters 'serial clock fall to output data valid', which would make no sense at all if you are samplng on t ... |
Topic: MAX6675 and 18F2580, temp always zero. Why? |
halibatsuiba
Replies: 19
Views: 34176
|
Forum: General CCS C Discussion Posted: Sun Aug 08, 2010 3:47 pm Subject: MAX6675 and 18F2580, temp always zero. Why? |
Thermocouple negative is connected to MAX6675s GND and there are filter capacitors in power pins as specified in datasheets.
Uhhh, it's supposed to be connected to 'T-' as well.
(pin 2)
P ... |
Topic: MAX6675 and 18F2580, temp always zero. Why? |
halibatsuiba
Replies: 19
Views: 34176
|
Forum: General CCS C Discussion Posted: Sun Aug 08, 2010 3:20 pm Subject: MAX6675 and 18F2580, temp always zero. Why? |
That's true, but to me, the timing diagram shows mode 0.
Now I'm not sure what mode they really use. Maybe keep it
at Mode 1 for a while.
1. What is the Vdd voltage of the PIC, and the Max6675 ... |
Topic: MAX6675 and 18F2580, temp always zero. Why? |
halibatsuiba
Replies: 19
Views: 34176
|
Forum: General CCS C Discussion Posted: Sun Aug 08, 2010 2:35 pm Subject: MAX6675 and 18F2580, temp always zero. Why? |
See Figure 1b in the Max6675 data sheet. It shows the data changes
on the falling edge of SCLK. Therefore, it's sampled on the rising edge.
Also, it shows SCLK idles at a low level. Figure 1b i ... |
Topic: MAX6675 and 18F2580, temp always zero. Why? |
halibatsuiba
Replies: 19
Views: 34176
|
Forum: General CCS C Discussion Posted: Sun Aug 08, 2010 12:40 pm Subject: MAX6675 and 18F2580, temp always zero. Why? |
I took MAX6675 codes from this thread
#include <18F2580.h>
#fuses INTRC, NOPROTECT, PUT, BROWNOUT, NOWDT, NOLVP
#use delay(clock=4000000)
#include<flex_lcd.c>
#include< ... |
Topic: fat.c / ex_fat.c: SD card, contents messed up. |
halibatsuiba
Replies: 7
Views: 9041
|
Forum: General CCS C Discussion Posted: Wed Jun 02, 2010 7:32 am Subject: fat.c / ex_fat.c: SD card, contents messed up. |
Can you give a list of PIC cpus and SD-cards you have tested your software with?
Also it would be nice to get general hw and sw requirements, like how much RAM and EEPROM it uses, which CCS compile ... |
Topic: fat.c / ex_fat.c: SD card, contents messed up. |
halibatsuiba
Replies: 7
Views: 9041
|
Forum: General CCS C Discussion Posted: Thu May 27, 2010 8:57 am Subject: fat.c / ex_fat.c: SD card, contents messed up. |
Guaranteed to work? Money back if not working as expected?
What is the writing speed to SD card with your drivers in kilobytes per second? |
Topic: fat.c / ex_fat.c: SD card, contents messed up. |
halibatsuiba
Replies: 7
Views: 9041
|
Forum: General CCS C Discussion Posted: Wed May 26, 2010 8:28 pm Subject: fat.c / ex_fat.c: SD card, contents messed up. |
Yet another datalogger-project where data is supposed to be stored in SD-card so it could be analysed in PC.
I format SD card with PC, create some directories and files.
Then I move card to my tes ... |
Topic: Can-bus, 18F2580+MCP2551. Loopback ok, real can not working. |
halibatsuiba
Replies: 35
Views: 76778
|
Forum: General CCS C Discussion Posted: Sun Sep 27, 2009 10:10 pm Subject: Can-bus, 18F2580+MCP2551. Loopback ok, real can not working. |
Debugging continues...
Whadda'y'know...
I could not think of anything else to try so I built another board #2 to a brand new breadboard and...
It works!
I can send characters from t ... |
Topic: Can-bus, 18F2580+MCP2551. Loopback ok, real can not working. |
halibatsuiba
Replies: 35
Views: 76778
|
Forum: General CCS C Discussion Posted: Sun Sep 27, 2009 8:59 pm Subject: Can-bus, 18F2580+MCP2551. Loopback ok, real can not working. |
Post your complete test program, which has the code shown above in it.
Post the compiler version that you are using.
Post a description of your RS232 hardware on your board.
i.e., Are you usi ... |
Topic: Can-bus, 18F2580+MCP2551. Loopback ok, real can not working. |
halibatsuiba
Replies: 35
Views: 76778
|
Forum: General CCS C Discussion Posted: Thu Sep 24, 2009 10:12 pm Subject: Can-bus, 18F2580+MCP2551. Loopback ok, real can not working. |
It's the same as your schematic, except that I don't use a resistor on
the Rs pins. They are connected to ground.
So now our circuits are identical.
There must be something wrong in board#1 ... |
Topic: Can-bus, 18F2580+MCP2551. Loopback ok, real can not working. |
halibatsuiba
Replies: 35
Views: 76778
|
Forum: General CCS C Discussion Posted: Thu Sep 24, 2009 8:43 am Subject: Can-bus, 18F2580+MCP2551. Loopback ok, real can not working. |
Get a USB to RS232 adapter for your laptop. Example:
http://siig.com/ViewProduct.aspx?pn=JU-CB1S12-S3
I tested this with USB-serial-adapter I found behind my mythtv-box.
If I test with ... |
|