Author |
Message |
Topic: Making string functions... |
SBS
Replies: 2
Views: 5473
|
Forum: General CCS C Discussion Posted: Wed Nov 16, 2005 12:49 pm Subject: Making string functions... |
I'm having trouble making string functions.
For example:
printf("hello world");
works just fine... But I want to make my own string functions...
void MyStringFunc ... |
Topic: Problems with samsung LCD |
SBS
Replies: 4
Views: 8685
|
Forum: General CCS C Discussion Posted: Tue Nov 15, 2005 9:27 pm Subject: Problems with samsung LCD |
AH HAH!!
I got it... I had read the datasheet for my LCD wrong. I was applying 4.6 volts to the Vo pin. I was supposed to be applying .4 volts. The datasheet says Vdd - Vo = 4.6... I basically h ... |
Topic: Problems with samsung LCD |
SBS
Replies: 4
Views: 8685
|
Forum: General CCS C Discussion Posted: Tue Nov 15, 2005 9:17 pm Subject: Problems with samsung LCD |
Hi,
Thanks for the help.
I tried like you said and used the regular LCD.C code with only changing the initial delay to 30ms. Same result... nothing.
About the Vo of the LCD. With nothing ... |
Topic: Problems with samsung LCD |
SBS
Replies: 4
Views: 8685
|
Forum: General CCS C Discussion Posted: Tue Nov 15, 2005 7:52 pm Subject: Problems with samsung LCD |
Hi,
I am using a Lumex LCD with the samsung driver. I have modified the CCS provided driver as follows:
void lcd_send_nibble( BYTE n ) {
lcd.data = n;
delay_cycle ... |
Topic: General Interrupt Questions... |
SBS
Replies: 2
Views: 5000
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2005 10:48 am Subject: General Interrupt Questions... |
Hi,
I have a few general questions about interrupts in PIC microcontrollers. I think I know the answers but I just want to make sure...
1) When I set up my interrupts for change on port B and t ... |
Topic: Interrupt routine can't call function?? |
SBS
Replies: 3
Views: 6148
|
Forum: General CCS C Discussion Posted: Thu Oct 27, 2005 9:39 pm Subject: Interrupt routine can't call function?? |
Hi,
Thanks for the comments. I realized the count = 2 problem. It was a typo.
Ah... I guess I shouldn't name my functions the same as CCS functions, huh?
Thanks! |
Topic: Interrupt routine can't call function?? |
SBS
Replies: 3
Views: 6148
|
Forum: General CCS C Discussion Posted: Thu Oct 27, 2005 8:50 pm Subject: Interrupt routine can't call function?? |
I've got a timer setup to interrupt. Then on every third interrupt I want to call my read_adc() function. My code executes, but it doesn't ever appear to actually go into the read_adc() function. N ... |
Topic: SPI Clock not working? |
SBS
Replies: 5
Views: 6923
|
Forum: General CCS C Discussion Posted: Sun Oct 23, 2005 4:24 pm Subject: SPI Clock not working? |
Hi,
Thanks for your help. I've almost got it working now. I can write to and read from my ADC. However, my ADC is not responding yet.
I've tried both SPI_L_TO_H and SPI_H_TO_L. Looking at th ... |
Topic: SPI Clock not working? |
SBS
Replies: 5
Views: 6923
|
Forum: General CCS C Discussion Posted: Sun Oct 23, 2005 11:10 am Subject: SPI Clock not working? |
Hi,
My ADC has its chip select tied low (active low).
I realized that I had my oscilloscope hooked up to the wrong signal. The ADC still isn't working yet, but now I have a better idea of what ... |
Topic: SPI Clock not working? |
SBS
Replies: 5
Views: 6923
|
Forum: General CCS C Discussion Posted: Sun Oct 23, 2005 10:22 am Subject: SPI Clock not working? |
Hi,
I'm trying to set up an SPI port to communicate with an ADC. It doesn't appear to be working.
I am putting an oscillscope on the DO pin from the microcontroller and I am seeing a digital ... |
Topic: Just getting started problems... |
SBS
Replies: 10
Views: 11572
|
Forum: General CCS C Discussion Posted: Tue Oct 04, 2005 10:47 pm Subject: Just getting started problems... |
Thanks for the help. I have been using it with the "powered from ICD 2" option. I have a Vdd of 4.82 volts.
Here is what the status window says:
Connecting to MPLAB ICD 2
...Connected
Settin ... |
Topic: Just getting started problems... |
SBS
Replies: 10
Views: 11572
|
Forum: General CCS C Discussion Posted: Tue Oct 04, 2005 9:54 pm Subject: Just getting started problems... |
I'm not using a prototyping board... just a breadboard.
I've bot the VSS and VDD from the ICD 2 going to the chip (both VDD and VSS inputs). I've got a 4 MHz crystal oscillator connected to OSC1 a ... |
Topic: Just getting started problems... |
SBS
Replies: 10
Views: 11572
|
Forum: General CCS C Discussion Posted: Tue Oct 04, 2005 9:19 pm Subject: Just getting started problems... |
Ok.. I have my new PIC18F4620, ICD 2, CCS compiler...
I'm powering the chip from the ICD 2 programmer. I'm running the following code:
#include <18F4620.h>
#fuses HS,NOWDT,NOPROTECT,NO ... |
Topic: General i2c question... |
SBS
Replies: 8
Views: 8007
|
Forum: General CCS C Discussion Posted: Tue Sep 27, 2005 9:57 pm Subject: General i2c question... |
DOH! I knew that!
Thank! |
Topic: General i2c question... |
SBS
Replies: 8
Views: 8007
|
Forum: General CCS C Discussion Posted: Tue Sep 27, 2005 9:43 pm Subject: General i2c question... |
From what I've read, you can have either a HW i2c or a SW i2c...
Can you have multiple i2c connections to other hardware with one PIC?
My application requires me to connect to an LCD display, AD ... |
|