Author |
Message |
Topic: SDCARD -- interfacing with PIC |
nidhimittalhada
Replies: 1
Views: 3577
|
Forum: General CCS C Discussion Posted: Thu Dec 09, 2010 3:51 am Subject: SDCARD -- interfacing with PIC |
Hi all
I have to write some information on sdcard ...for persistent storage to be reffered and interpreted later.
Now I read that .SDCARD works in 2 modes sd mode and spi mode ...
which have dif ... |
Topic: Bluetooth programming -- through uart |
nidhimittalhada
Replies: 2
Views: 5941
|
Forum: General CCS C Discussion Posted: Mon Nov 29, 2010 10:00 am Subject: Bluetooth programming -- through uart |
Hi all
I have pic18F4550 development board on which on uart port I have plugged in a bluetooth hardware.
http://www.rhydolabz.com/index.php?main_page=product_info&products_id=479
I want to ... |
Topic: usb interfacing from pic to PC |
nidhimittalhada
Replies: 15
Views: 42290
|
Forum: General CCS C Discussion Posted: Tue Oct 12, 2010 10:41 am Subject: errors in given program |
Source Files
try_usb.c -----------> this program given by you
Header Files
usb_cdc.h
Now
i do project build all in MP LAB
and error comes is
*** Error 23 "C:\Prog ... |
Topic: usb interfacing from pic to PC |
nidhimittalhada
Replies: 15
Views: 42290
|
Forum: General CCS C Discussion Posted: Fri Oct 08, 2010 3:02 am Subject: usb interfacing from pic to PC |
we copied pasted your code and in header files included
18F4550.h
usb_cdc.h
nothing else
Now it gives familiar error
Cannot define Device so far in the code --- error points to 18f4550 line #DE ... |
Topic: usb interfacing from pic to PC |
nidhimittalhada
Replies: 15
Views: 42290
|
Forum: General CCS C Discussion Posted: Tue Oct 05, 2010 11:13 am Subject: Undefined identifier-usb_enumerated even when usb.c included |
Hi
I have resolved that problem of header file inclusion in proper sequence.
But now the other problem is
When I build all files in project -- it says BUILD FAILED. Error is
Undefined identif ... |
Topic: usb interfacing from pic to PC |
nidhimittalhada
Replies: 15
Views: 42290
|
Forum: General CCS C Discussion Posted: Sun Oct 03, 2010 2:30 am Subject: usb interfacing from pic to PC |
#include "18F4550.h"
#fuses HSPLL, NOWDT, NOPROTECT, NOLVP, NODEBUG, USBDIV, PLL5, CPUDIV1, VREGEN
#use delay(clock=48000000)
#include <usb.c>
void main()
{
int8 n ... |
Topic: usb interfacing from pic to PC |
nidhimittalhada
Replies: 15
Views: 42290
|
Forum: General CCS C Discussion Posted: Sat Oct 02, 2010 4:53 am Subject: usb interfacing from pic to PC |
I have pic development board
http://www.rhydolabz.com/index.php?main_page=product_info&cPath=99_101&products_id=297
in which I give power to board through usb port from PC.
Now I want ... |
Topic: PIC - ICD - |
nidhimittalhada
Replies: 3
Views: 4831
|
Forum: General CCS C Discussion Posted: Thu Sep 30, 2010 11:20 am Subject: PIC - ICD - |
Hi
I have rhydolabs 18F4550 Development board
This one
http://www.rhydolabz.com/index.php?main_page=product_info&cPath=99_101&products_id=297
It has RJ45 port mentioned in data sheet as ... |
Topic: PIC18F4550 External eeprom i2c interfacing problem |
nidhimittalhada
Replies: 6
Views: 16860
|
Forum: General CCS C Discussion Posted: Tue Sep 14, 2010 11:04 pm Subject: PIC18F4550 External eeprom i2c interfacing problem |
Look closely at the CCS 2404.c, and the eeprom data sheet.
You will see some critical differences between your code and CCS.
Look at this figure in the eeprom data sheet:
Quote:
FIGURE 8-2: RANDOM ... |
Topic: PIC18F4550 External eeprom i2c interfacing problem |
nidhimittalhada
Replies: 6
Views: 16860
|
Forum: General CCS C Discussion Posted: Tue Sep 14, 2010 3:02 am Subject: i2c eeprom behaves unpredictably |
Hi
Thanks a lot for ur comments they were really helpful.
In most PICs, internal eeprom has a different command protocol than
external eeprom. It's not the same interface. The CCS functions are
... |
Topic: PIC18F4550 External eeprom i2c interfacing problem |
nidhimittalhada
Replies: 6
Views: 16860
|
Forum: General CCS C Discussion Posted: Sun Sep 12, 2010 10:25 am Subject: INTERNAL EEPROM |
Hi I have tested this program for internal eeprom and its working fine.
void main()
{
int8 data;
init_lcd();
write_eeprom(1,'A');
data=read_eeprom( ... |
Topic: PIC18F4550 External eeprom i2c interfacing problem |
nidhimittalhada
Replies: 6
Views: 16860
|
Forum: General CCS C Discussion Posted: Sun Sep 12, 2010 10:05 am Subject: acknowledgment chking |
while(ack=i2c_write(0xA2));
Hi i have added the acknowledgment check as shown. Its not coming out of while loop. I have read the data sheet completely and followed it step by step. What can be t ... |
Topic: RS232 communication PIC18f4550 -- putc sending corrupt data |
nidhimittalhada
Replies: 17
Views: 35867
|
Forum: General CCS C Discussion Posted: Fri Sep 10, 2010 10:30 am Subject: Default Fuses |
YESSSS i saw .LST file
IT automatically adds up this line.
which i guess is creating 48 MHz
#fuses HSPLL, NOWDT, PLL2, CPUDIV2, USBDIV, NOXINST
BUT NOW one other doubt...
On Board 20 MHz ... |
Topic: RS232 communication PIC18f4550 -- putc sending corrupt data |
nidhimittalhada
Replies: 17
Views: 35867
|
Forum: General CCS C Discussion Posted: Fri Sep 10, 2010 10:01 am Subject: No need of FUSES |
My board
http://www.rhydolabz.com/index.php?main_page=product_info&cPath=99_101&products_id=297
says
On Board 20 MHz Crystal Oscillator.
Supports Up to 48 MHz Operation.
#include & ... |
Topic: PIC18F4550 External eeprom i2c interfacing problem |
nidhimittalhada
Replies: 6
Views: 16860
|
Forum: General CCS C Discussion Posted: Fri Sep 10, 2010 9:51 am Subject: PIC18F4550 External eeprom i2c interfacing problem |
Hi all
I am a newbie just learning to communicate to ext eeprom.
my spec is
PIC18F4550 ...EEPROM is 24C04 is 4K EEPROM ...I2C interfacing .....
#include<18F4550.h>
#use delay(cloc ... |
|