Quote:
|
Originally Posted by Charley
I'm rather confused... ha ha ha, programming newbie...
Our Spike connected to the compressor is hooked up to realay port 8, and the code under ifi_aliases.h consists of:
#define relay8_fwd LATDbits.LATD7
#define relay8_rev LATJbits.LATJ0
All the other ports say LATEbits instead of J, and Would have progressed consecutively, so, I think the bottom line should say LATEbits.LATE8, but I'm not sure.
Our spike is now running on red, and it is shaking and as hot as the above have described. Should I change this bottom line to what I thought, or what should I change it to?
Thanks,
Charley.
|
Your best bet is to use the latest ifi_aliases.h file dated 2-18-2004. The code that you supplied is wrong, and will in fact supply reverse polarity power to your compressor. Your relay will light red and your comprossor will be hot due to the internal cooling malfunctioning. This is the correct code (but do get the new file):
Code:
#define relay8_fwd LATJbits.LATJ0
#define relay8_rev LATDbits.LATD7