CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 35 matches
CCS Forum Index
Author Message
  Topic: PIC and Thermocouples Polynomials
Bill Boucher

Replies: 1
Views: 4087

PostForum: General CCS C Discussion   Posted: Fri Jul 20, 2007 12:56 pm   Subject: PIC and Thermocouples Polynomials
I have found through experience that to achieve any decent accuracy over a relatively wide temperature range that you need at least 5 terms in your polynomial. That's a hell of an equation to crunch ...
  Topic: Sleep and Interrupts
Bill Boucher

Replies: 12
Views: 13100

PostForum: General CCS C Discussion   Posted: Fri Jul 20, 2007 12:46 pm   Subject: Sleep and Interrupts
Try copying the ISR controlled flags variable into a local variable in your main(). The value of this local copy will not be changed if an interrupt happens. Check the value of the copy and do your ...
  Topic: how to get 2 PIC 18F4431 to talk
Bill Boucher

Replies: 2
Views: 5658

PostForum: General CCS C Discussion   Posted: Fri Jul 20, 2007 12:19 pm   Subject: how to get 2 PIC 18F4431 to talk
By "Talk", you could use
-parallel data bytes passed between ports
-asynchronous serial rs232-style bytes between I/O pins, either on 1 wire, 2 or even more
-SPI synchronous transfers
- ...
  Topic: MPLAB 7.5
Bill Boucher

Replies: 9
Views: 23199

PostForum: General CCS C Discussion   Posted: Thu Jul 19, 2007 5:46 pm   Subject: MPLAB 7.5
see your private messages.

I wouldn't mind seeing that private message myself. I'm in the same boat along with several others both at home and at the automotive company where I work. We are all u ...
  Topic: I need help on pic18f2550
Bill Boucher

Replies: 5
Views: 6989

PostForum: General CCS C Discussion   Posted: Thu Jul 19, 2007 8:39 am   Subject: I need help on pic18f2550
Your PIC is at the end of a USB cable so you need to add decoupling caps such as 100nF to 1uF across the PIC power supply pins. Also, it might help to install 20 ohm resistors in the D+ line and the D ...
  Topic: D0-D3 in an LCD
Bill Boucher

Replies: 5
Views: 8538

PostForum: General CCS C Discussion   Posted: Thu Jul 19, 2007 8:27 am   Subject: D0-D3 in an LCD
when using 16f876a, i have to use port B for LCD.
and PICs "RB0/INT" is connected to LCD- Enable pin.

can we connect the LCD/Enable to the VCC?

No. The Enable pin is required to be ...
  Topic: [Solved!] LCD Garbage Problem (Picture & Video ;) )
Bill Boucher

Replies: 6
Views: 15936

PostForum: General CCS C Discussion   Posted: Thu Jul 19, 2007 7:30 am   Subject: [Solved!] LCD Garbage Problem (Picture & Video ;) )
Problem Solved!

Try delay_ms(100) before the LCD_init().

i tryed with 1000 ms just to be sure lol ... work like a charm YES ! Smile

PS:i don't understand why 99% in the ppl in this forum never h ...
  Topic: eeprom on 18f258
Bill Boucher

Replies: 8
Views: 13805

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2007 7:13 pm   Subject: Re: eeprom on 18f258
How do I program the eeprom on a 18f258?? On the 16f series, it was
#pragma rom 0x2100 = {0,1,0,0 } etc

to write to it when flash programing,

How do I do this on the 18fxx2 ??

Thanks in adva ...
  Topic: Default value of eeprom memory
Bill Boucher

Replies: 7
Views: 12300

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2007 7:11 pm   Subject: Default value of eeprom memory
thanks, this probably will work. Now, does this load the eprom every time I boot the Pic? I hope not...

No, the programmer will program the eeprom when you first program your chip. After that, the ...
  Topic: Help: How to receive serial data without losses
Bill Boucher

Replies: 9
Views: 11736

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2007 7:04 pm   Subject: Help: How to receive serial data without losses
I was reading somewhere that the compiler will automatically disable interrupts while doing certain functions that are timing sensitive such as putc(). That said, when the program tries to transmit 4 ...
  Topic: 8-bit microprocessor interface
Bill Boucher

Replies: 10
Views: 10715

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2007 5:01 pm   Subject: 8-bit microprocessor interface
data lines are split between different ports...
like:
D4-D0 RA4-RA0(PortA)
D7-D5 RB3-RB1(PortB)

i tried to use union and #define

but still it not working

cheers,
tom


#define DATA ...
  Topic: 8-bit microprocessor interface
Bill Boucher

Replies: 10
Views: 10715

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2007 9:15 am   Subject: 8-bit microprocessor interface
Why use a loop like that? Why not this...


output_D(data_byte);
  Topic: Default value of eeprom memory
Bill Boucher

Replies: 7
Views: 12300

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2007 9:09 am   Subject: Default value of eeprom memory
Dude, you can put the default eeprom values into your C source using the #ROM directive. You do not have to use up your valuable program memory to run code upon powerup to test for and install defaul ...
  Topic: One ADC channel affecting reading of another
Bill Boucher

Replies: 7
Views: 12063

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2007 9:01 am   Subject: One ADC channel affecting reading of another
Typical PIC ADC input impedence is such that your signal source should have an impedence less than 10 kohm. It can be higher (i.e. 47k) if you put a capacitor on the signal near the PIC (i.e. 1nF to ...
  Topic: [Solved!] LCD Garbage Problem (Picture & Video ;) )
Bill Boucher

Replies: 6
Views: 15936

PostForum: General CCS C Discussion   Posted: Wed Jul 18, 2007 8:50 am   Subject: [Solved!] LCD Garbage Problem (Picture & Video ;) )
A standard LCD has a built-in minimum internal setup time after powerup before it will properly accept commands. I suggest putting a short delay in your program that runs before the first attempt to ...
 
Page 1 of 3 Goto page 1, 2, 3  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group