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 14 matches
CCS Forum Index
Author Message
  Topic: USB communication between PC and pic18f4550?
madeiras

Replies: 0
Views: 2418

PostForum: General CCS C Discussion   Posted: Mon Sep 22, 2008 1:17 pm   Subject: USB communication between PC and pic18f4550?
Hello! I need communication between a pic18F4550 and PC to download values from an adc and store in an eeprom! I need some code to make this work, because the code that I do, not work! Please, if som ...
  Topic: 18f4550 AND TIMERS
madeiras

Replies: 2
Views: 4634

PostForum: General CCS C Discussion   Posted: Tue Sep 16, 2008 7:14 am   Subject: 18f4550 AND TIMERS
Wake every minute and do the code in interrupt.
Do you have a signal on the INT2 pin of the 18F4550 that has a
rising edge once per minute ? Describe the signal on the INT2 pin.
What is the fre ...
  Topic: 18f4550 AND TIMERS
madeiras

Replies: 2
Views: 4634

PostForum: General CCS C Discussion   Posted: Mon Sep 15, 2008 10:08 am   Subject: 18f4550 AND TIMERS
Hello everybody!

I need help once more, I have a external interrupt, (INT_EXT2). I want to do the following: The PIC must wake from minute to minute and do the interrupt code, but I don´t know how ...
  Topic: usb on pic18f4550
madeiras

Replies: 1
Views: 3243

PostForum: General CCS C Discussion   Posted: Wed Sep 03, 2008 3:59 pm   Subject: usb on pic18f4550
I need to use usb with pic, i use this code:
#include <usb_cdc.h>
...
void usb_string(void){
int i;
for(i=0;;i++){
if(string[i]!='\0' ...
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Wed Sep 03, 2008 3:54 pm   Subject: External adc 1110 with pic18f4550
Thanks to all, I finally put this to work! Thanks for the help!
It was the time of the adc, that wasn't enough to convert. Problem solved.
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Wed Sep 03, 2008 4:04 am   Subject: External adc 1110 with pic18f4550

spi_write(controlo);
//delay_ms(50); <<-- you need some delay here to let ADC convert!
RB2=spi_read(0); /*guarda os 1ºs 8 bits*/
delay_ms(25);
RB3=spi_ ...
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Tue Sep 02, 2008 6:52 am   Subject: External adc 1110 with pic18f4550
Here is the code:


#include <18F4550.h>
#DEVICE ADC=8 // resolução ADC
#fuses HSPLL,NOWDT,NOPROTECT,NOLVP,NODEBUG,USBDIV,PLL5,CPUDIV1,VREGEN
#use delay(clock=48000000)
...
...
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Mon Sep 01, 2008 11:31 am   Subject: External adc 1110 with pic18f4550
I've done everything. I don't understand the problem. If somebody have a code with max1110 for pic18f4550, please post here! Thanks!

PS: I´m using internal clock MAX1110, so i don´t know if the ...
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Mon Sep 01, 2008 7:55 am   Subject: External adc 1110 with pic18f4550
The external adc max1110 is working, but the values are not what I expect! I'm testing for 0v, he give me value 96, and for 5v he give me 225! For lcd I'm using printf("value %c",valorADC) ...
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Sun Aug 31, 2008 5:20 pm   Subject: External adc 1110 with pic18f4550
One more thing, if you can say: The max1110 ADC has 8 bits, so to a input 0-5 volt, i want to show in LCD the result of the convertion from 0 to 256(number of state exits in a 8 bit ADC), being 0v - 0 ...
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Sun Aug 31, 2008 4:58 pm   Subject: External adc 1110 with pic18f4550
the crystal on the pic is 20MHz, and it`s really slave or master for the external adc?since i have one external rtc also master!
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Sun Aug 31, 2008 4:24 pm   Subject: External adc 1110 with pic18f4550
If you want help, you need to post a link to the ADC data sheet.

http://pdfserv.maxim-ic.com/en/ds/1676.pdf

here it is, max1110, 8 channel Analog inputs! Tk´s
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Sun Aug 31, 2008 4:04 pm   Subject: Re: External adc 1110 with pic18f4550
Tk´s for the help, but the problem still remains,
i don´t know to solve it, i´ve tried many different things but the LCD only display 1 ADC channel, the other channels values are zero always. and ...
  Topic: External adc 1110 with pic18f4550
madeiras

Replies: 19
Views: 19244

PostForum: General CCS C Discussion   Posted: Sun Aug 31, 2008 12:45 pm   Subject: External adc 1110 with pic18f4550
I have a problem. The external adc only reads the first value and shows in lcd, and the next ones are zero. I'm using spi. The code is below:

unsigned char valorADC;
unsigned char RB2;
unsigned ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group